On Wednesday 12 October 2005 16:01, Etay Meiri wrote:
> Hi,
>
> I'm unable to get the swap file working with uml (2.6.13-bs2).
> I created a 512Mb file using dd and formatted it using 'mkswap ./swap'.
> I start uml with the command:

> vmlinux mem=128m ubd0d=root_fs.fc4 ubd1d=swap
> eth0=tuntap,,,10.10.20.6<http://10.10.20.6>
> I've got 8 devices under /dev/ubd and only /dev/ubd/0 seems to be working
> and used for the root partition.
> I see the following messages during the boot:
> .
> .
> [42949373.340000] ubda: unknown partition table
> [42949373.340000] ubdb: unknown partition table
That's normal, as there's no partition table on /dev/ubd0 (or let's call 
it /dev/ubda, it's the same thing). You normally mount /dev/hda1, 
not /dev/hda, but mount /dev/ubda, not /dev/ubda1.
> .
> .
> Enabling swap space: swapon: /dev/ubd/1: No such device or address [FAILED]

> Any idea?
Check the minor number. It should be 16, but there are around root_fs with 
number 1 (which was correct when UBD didn't support partitions). This would 
explain everything in your setup.
-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade

        

        
                
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to