I guess udev should walk through /sys/devices and create all device nodes, including ubd device nodes. But I note that from uml-test:/var/log/message: start_udev: Starting udev:  failed. Could it be /sys not mounted as sysfs? uml-test has /sys directory but not mounted as sysfs. I don't know how to mount it as sysfs. This is the etc/fstab for uml-test:

# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/ubd/0      /               ext2    defaults 1 1
/proc           /proc           proc    defaults
devpts          /dev/pts        devpts  mode=0622 0 0
/dev/ubd/1      none            swap    sw

If udev can't create all device nodes but no devfs mounted, then device nodes can't be created and rootfs has no device nodes to mount to, that's why I have to pass 'devfs=mount'.

But I can bootstrap Debian 3.0r2 and SlackWare 10.1 using same uml kernel without 'devfs=mount'. Why is that?


On 12/30/05, Blaisorblade <blaisorblade@yahoo.it> wrote:
On Friday 30 December 2005 05:37, Xinhuan Zheng wrote:
> I've bootstrapped uml host 'uml-test', which is downloaded from
> www.stearns.org/uml-root/, root_fs.fc-3-base.pristine.20050605.bz2 . I have
> to use 'devfs=mount' to make it, otherwise, I'll get 'Unable to open
> initial console' error. Here is my set-up to build uml:
> Host Kernel:
> Skas: skas-2.6.11-v8.2
> guest: uml-2.6.11-bs4
> uml utils: 20040406
> Distribution: Fedora Core 3
> Uml kernel is built with DEVFS_FS enabled.
> I'm using ska patched host kernel, uml kernel, root_fs, as shown above. I
> followed the root_fs notes as posted.  But
> uml host won't boot WITHOUT adding 'devfs=mount'. I don't understand why.
> According to uml Documentation, DEVFS_FS is OBSELETE already. Can someone
> advise it? Thanks very much!

DevFS has disappeared starting from 2.6.13/14 IIRC.

The problem is the root_fs. You must update its content to use non-DevFS names
in /etc/inittab and /etc/fstab, possibly /etc/securetty (or such) and you
must create ubd nodes in /dev (normal names are /dev/ubda - /dev/ubdh).
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)

Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB