Derek, First, you don't need the ubd* devices on the host. They're useless in this context. Second, you need to boot the UML instance by specifying the ubd devices. For example, the following might be an acceptable permutation of your command:
/root/uml/linux-2.6.12.3/linux ubd0=/backup/Slackware-10.1.ext2-795 eth0=tuntap,,,207.230.28.10 mem=64M umid=795 This should get you pointed in the right direction. Additional "drives" can be specified with additional "ubd" devices (i.e., "ubd0=/root_filesystem ubd1=/data_file_1 ubd2=/data_file_2"). The file you reference for device "ubd0" will automatically become your "root". This can be accessed with major 98 minor 0. So, you'll need devices similar to the following on your UML filesystem: brw-rw---- 1 root disk 98, 0 Oct 1 08:23 /dev/ubda brw-rw---- 1 root disk 98, 1 Oct 1 08:23 /dev/ubda1 brw-rw---- 1 root disk 98, 2 Oct 1 08:23 /dev/ubda2 brw-rw---- 1 root disk 98, 3 Oct 1 08:23 /dev/ubda3 brw-rw---- 1 root disk 98, 4 Oct 1 08:23 /dev/ubda4 brw-rw---- 1 root disk 98, 16 Oct 1 08:23 /dev/ubdb brw-rw---- 1 root disk 98, 17 Oct 1 08:23 /dev/ubdb1 brw-rw---- 1 root disk 98, 18 Oct 1 08:23 /dev/ubdb2 brw-rw---- 1 root disk 98, 19 Oct 1 08:23 /dev/ubdb3 brw-rw---- 1 root disk 98, 20 Oct 1 08:23 /dev/ubdb4 Note that I specified "ubd0" on the command line when launching the UML. However, I will need to refer to this device inside the UML as '/dev/ubda' since I created the block device with the 'ubda' name. Also, should you choose to create a partition table on the image (when building your own filesystem), you may then need to use the '/dev/ubda[1-15]' devices. Otherwise, you will need to refer to your file systems (inside the UML) with the '/dev/ubd[a-h]' devices. Good luck! Tony -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Derek R. Meiresonne Sent: Friday, October 07, 2005 11:38 AM To: Brock, Anthony - NET Cc: user-mode-linux-user@lists.sourceforge.net; [EMAIL PROTECTED] Subject: Re: [uml-user] Over 16 UBD devices... OK guys; I am trying to concat both of what you guys have said... 1) On Host: brw-r--r-- 1 root root 98, 1 Oct 7 12:52 /dev/ubd0p1 2) On UML: brw-r--r-- 1 root root 98, 1 Oct 7 12:52 /dev/ubd0p1 3) /root/uml/linux-2.6.12.3/linux root=98:1 98:1=/backup/Slackware-10.1.ext2-795 eth0=tuntap,,,207.230.28.10 mem=64M umid=795 It dies with: Failed to open 'root_fs', errno = 2 VFS: Cannot open root device "98:1" or unknown-block(98,1) Please append a correct "root=" boot option Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(98,1) <6>Stopping all CPUs...done What am I doing wrong? Derek R. Meiresonne eTecc Communications, Inc. www.eTecc.com Brock, Anthony - NET wrote: > Okay, just noticed a BIG mistake. The "mknod -m 0660 /dev/ubd1p1 b 98 1" > should be "mknod -m 0660 /dev/ubd1p1 b 98 17". I hope this is vaguely > related to what you're asking... > > Tony > > >>-----Original Message----- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On >>Behalf Of Brock, Anthony - NET >>Sent: Friday, October 07, 2005 11:19 AM >>To: user-mode-linux-user@lists.sourceforge.net >>Subject: RE: [uml-user] Over 16 UBD devices... >> >>Derek, >> >>I haven't done this with the actual root filesystem. I have done this >>with "data" filesystems. However, I would suspect something like the >>following (typing from memory, so take with a grain of salt): >> >>./linux ubd0s=/path/to/currentimage ubd1s=/path/to/partitioned/image >>[other options] -s >> [boot into single-user mode] >># fdisk /dev/ubd1 >> [create your partition table and save it] >># mount -o remount,rw / >># mknod -m 0660 /dev/ubd1p1 b 98 1 >># mount /dev/ubd1p1 /mnt >># for dir in `ls |egrep -v 'lost+found|mnt'` do cp -a $dir /mnt/; done >># umount /mnt >># shutdown -h now >> >>Then give it a try with something like: >> >>./linux ubd0s=/path/to/partitioned/image [other options] >> >>The key is creating an image with a partition table. This should also >>eliminate the following warnings at boot: >> >> ubda: unknown partition table >> ubdb: unknown partition table >> >>Let us know how it goes! >> >>Tony >> >> >> >>>-----Original Message----- >>>From: [EMAIL PROTECTED] >>>[mailto:[EMAIL PROTECTED] On >>>Behalf Of Derek R. Meiresonne >>>Sent: Friday, October 07, 2005 11:05 AM >>>To: user-mode-linux-user@lists.sourceforge.net >>>Subject: [uml-user] Over 16 UBD devices... >>> >>>How can I use over 16 UBD devices? I have read in the mailing >>>lists that >>>you can create partitions: >>> >>>brw-r--r-- 1 root root 98, 1 Oct 7 12:52 /dev/ubd0p1 >>> >>>However; I cannot mount the above device while UML is booting. Can >>>someone provide me with some direction? >>>-- >>>Derek R. Meiresonne >>> >>> >>>------------------------------------------------------- >>>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-user mailing list >>>User-mode-linux-user@lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user >>> >> >> >>------------------------------------------------------- >>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-user mailing list >>User-mode-linux-user@lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user >> > > > > ------------------------------------------------------- > 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-user mailing list > User-mode-linux-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user ------------------------------------------------------- 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-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user ------------------------------------------------------- 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-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user