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



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
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