On Thursday 01 September 2005 15:34, Pekka Enberg wrote:
> As per http://user-mode-linux.sourceforge.net/fs.html, I created a new
> filesystem with:

>   dd if=/dev/zero of=secondary bs=1048576 count=16

> I then start UML with the following command:

>   ./linux mem=64M \
>       ubd0=/home/penberg/virtualized/Debian-3.0r2.ext2 \
>       ubd1=/home/penberg/virtualized/secondary

> Where Debian rootfs is taken from here
> http://people.debian.org/~mdz/uml/. After booting, I try to make an
> ext2 filesystem with the following command as root:

>   mkfs.ext2 /dev/ubd1
>
> And I get this error:
>
>   mke2fs 1.27 (8-Mar-2002)
>   mkfs.ext2: No such device or address while trying to determine
> filesystem size.
>
> Am I doing something wrong here or is this a bug in UML? I tracked it
> down to fs/block_dev.c do_open() which returns -ENOXIO for /dev/ubd1.
Please check (the age of filesystem seems the culprit, maybe I've experienced 
this exact problem on that FS) that the minor for /dev/ubd1 is 16, and in 
case recreate the device node (ubd2 would be 32 and so on).

Long time ago there was no partition support in UML so ubd1 had minor 1, but 
that has changed.

> I also tried creating the filesystem in host kernel but then I am
> unable to mount it.
My hypotesis would explain this too.
-- 
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



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to