From: Blaisorblade <bla...@ya...> - 2005-12-30 15:59:31
|
On Friday 30 December 2005 16:51, Xinhuan Zheng wrote: > 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? Yep - udev requires sysfs. But I didn't suggest using udev - however it would work (i.e. create ubd nodes) however for a recent enough kernel. > 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: See your distro policy - possibly it must be in /etc/fstab, but I don't know. > # 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 However, note that /dev/ubd/0, /dev/ubd/1 are not valid when DevFS is not used. Not at all. You must change them if you want to switch away from DevFS. > If udev can't create all device nodes but no devfs mounted, then device > nodes can't be created Why statically creating them beforehand is not an option? Using udev is a possible (and correct) road, not the only one. > 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? Either they have the device nodes (/dev/ubdXX) or they use udev (I know Debian3.0 doesn't) or they do mount none /dev -t devfs (most likely on Debian). -- 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 |