[lfs-support] [lfs-book] Only few things in /dev after execute udev_retry

Bruce Dubbs bruce.dubbs at gmail.com
Wed Feb 1 12:54:32 PST 2012


xinglp wrote:
> I'm using SVN-20120130, kernel 3.2.2 udev-180
> 
> I add "ls -al /dev &>> /var/log/infodev.log" to the end of
> /etc/rc.d/rcS.d/S50udev_retry,
> and got the below infomation:
> 
> total 5
> drwxr-xr-x  5 root root      300 Feb  2  2012 .
> drwxr-xr-x 21 root root      480 Feb  2 03:11 ..
> drwxr-xr-x  2 root root       60 Feb  2  2012 char
> lrwxrwxrwx  1 root root       13 Feb  2  2012 fd -> /proc/self/fd
> crw-rw-rw-  1 root root  10, 229 Feb  2  2012 fuse
> -rw-r--r--  1 root root       37 Feb  2  2012 kmsg
> c---------  1 root root  10, 237 Feb  2  2012 loop-control
> drwxr-xr-x  2 root root       60 Feb  2  2012 mapper
> crw-rw-rw-  1 root root   1,   3 Feb  2  2012 null
> c---------  1 root root 108,   0 Feb  2  2012 ppp
> drwxr-xr-x  2 root root        0 Feb  2  2012 pts
> lrwxrwxrwx  1 root root        8 Feb  2  2012 shm -> /run/shm
> lrwxrwxrwx  1 root root       15 Feb  2  2012 stderr -> /proc/self/fd/2
> lrwxrwxrwx  1 root root       15 Feb  2  2012 stdin -> /proc/self/fd/0
> lrwxrwxrwx  1 root root       15 Feb  2  2012 stdout -> /proc/self/fd/1
> 
> And /etc/rc.d/init.d/{random,sshd} unable to start. Where am I wrong?

Wrong list.  Moving to lfs-support for now.

I'm still back at udev version 173.  I'm about to start checking out the 
current lfs -dev version.  In any case I made a slight variation to your 
instruction:

ls -alR /dev &>> /run/infodev.log

I get the listing below, edited for length.

I've got no idea why you don't get other devices, but It's curious that 
you can write to /var/log without any disk devices.  Are you trying to 
use LVM and an initramfs?  If so, you need to take this to blfs-support.

   -- Bruce


drwxr-xr-x 13 root root        3720 Feb  1 14:41 .
drwxr-xr-x 23 root root        4096 Jan 29 22:15 ..
drwxr-xr-x  2 root root        1060 Feb  1 14:41 block
drwxr-xr-x  2 root root         120 Feb  1 14:41 bsg
drwxr-xr-x  3 root root          60 Feb  1 14:41 bus
lrwxrwxrwx  1 root root           3 Feb  1 14:41 cdrom -> sr0
lrwxrwxrwx  1 root root           3 Feb  1 14:41 cdrw -> sr0
drwxr-xr-x  2 root root        2900 Feb  1 14:41 char
crw-------  1 root root      5,   1 Feb  1 14:41 console
lrwxrwxrwx  1 root root          11 Feb  1 14:41 core -> /proc/kcore
drwxr-xr-x  4 root root         100 Feb  1 14:41 cpu
crw-------  1 root root     10,  62 Feb  1 14:41 cpu_dma_latency
drwxr-xr-x  6 root root         120 Feb  1 14:41 disk
lrwxrwxrwx  1 root root           3 Feb  1 14:41 dvd -> sr0
lrwxrwxrwx  1 root root           3 Feb  1 14:41 dvdrw -> sr0
lrwxrwxrwx  1 root root          13 Feb  1 14:41 fd -> /proc/self/fd
crw-rw-rw-  1 root root      1,   7 Feb  1 14:41 full
crw-------  1 root root    251,   0 Feb  1 14:41 hidraw0
crw-------  1 root root    251,   1 Feb  1 14:41 hidraw1
crw-------  1 root root     10, 228 Feb  1 14:41 hpet
drwxr-xr-x  4 root root         200 Feb  1 14:41 input
crw-r-----  1 root kmem      1,   2 Feb  1 14:41 kmem
crw-------  1 root root      1,  11 Feb  1 14:41 kmsg
crw-rw----  1 root kvm      10, 232 Feb  1 14:41 kvm
brw-rw----  1 root disk      7,   0 Feb  1 14:41 loop0
..
brw-rw----  1 root disk      7,   7 Feb  1 14:41 loop7
drwxr-xr-x  2 root root          60 Feb  1 14:41 mapper
crw-------  1 root root     10, 227 Feb  1 14:41 mcelog
brw-rw----  1 root disk      9,   0 Feb  1 14:41 md0
crw-r-----  1 root kmem      1,   1 Feb  1 14:41 mem
drwxr-xr-x  2 root root          60 Feb  1 14:41 net
crw-------  1 root root     10,  61 Feb  1 14:41 network_latency
crw-------  1 root root     10,  60 Feb  1 14:41 network_throughput
crw-rw-rw-  1 root root      1,   3 Feb  1 14:41 null
crw-r-----  1 root kmem     10, 144 Feb  1 14:41 nvram
crw-------  1 root root      1,  12 Feb  1 14:41 oldmem
crw-r-----  1 root kmem      1,   4 Feb  1 14:41 port
crw-rw-rw-  1 root tty       5,   2 Feb  1 14:41 ptmx
drwxr-xr-x  2 root root           0 Feb  1 14:41 pts
brw-rw----  1 root disk      1,   0 Feb  1 14:41 ram0
..
brw-rw----  1 root disk      1,  15 Feb  1 14:41 ram15
crw-rw-rw-  1 root root      1,   8 Feb  1 14:41 random
lrwxrwxrwx  1 root root           4 Feb  1 14:42 rtc -> rtc0
crw-r--r--  1 root root    254,   0 Feb  1 14:42 rtc0
lrwxrwxrwx  1 root root           3 Feb  1 14:41 scd0 -> sr0
brw-rw----  1 root disk      8,   0 Feb  1 14:41 sda
brw-rw----  1 root disk      8,   1 Feb  1 14:41 sda1
..
brw-rw----  1 root disk    259,   1 Feb  1 14:41 sda17
brw-rw----  1 root disk      8,  16 Feb  1 14:41 sdb
brw-rw----  1 root disk      8,  17 Feb  1 14:41 sdb1
brw-rw----  1 root disk      8,  19 Feb  1 14:41 sdb3
brw-rw----  1 root disk      8,  20 Feb  1 14:41 sdb4
brw-rw----  1 root disk      8,  21 Feb  1 14:41 sdb5
brw-rw----  1 root disk      8,  32 Feb  1 14:41 sdc
brw-rw----  1 root disk      8,  33 Feb  1 14:41 sdc1
crw-rw----  1 root disk     21,   0 Feb  1 14:41 sg0
crw-rw----  1 root disk     21,   1 Feb  1 14:41 sg1
crw-rw----  1 root disk     21,   2 Feb  1 14:41 sg2
crw-rw----  1 root cdrom    21,   3 Feb  1 14:41 sg3
lrwxrwxrwx  1 root root           8 Feb  1 14:41 shm -> /run/shm
crw-------  1 root root     10, 231 Feb  1 14:41 snapshot
drwxr-xr-x  3 root root         200 Feb  1 14:41 snd
brw-rw----  1 root cdrom    11,   0 Feb  1 14:41 sr0
lrwxrwxrwx  1 root root          15 Feb  1 14:41 stderr -> /proc/self/fd/2
lrwxrwxrwx  1 root root          15 Feb  1 14:41 stdin -> /proc/self/fd/0
lrwxrwxrwx  1 root root          15 Feb  1 14:41 stdout -> /proc/self/fd/1
crw-rw-rw-  1 root tty       5,   0 Feb  1 14:41 tty
crw--w----  1 root tty       4,   0 Feb  1 14:41 tty0
..
crw--w----  1 root tty       4,  63 Feb  1 14:41 tty63
crw-rw----  1 root dialout   4,  64 Feb  1 14:41 ttyS0
crw-rw----  1 root dialout   4,  65 Feb  1 14:41 ttyS1
crw-rw----  1 root dialout   4,  66 Feb  1 14:41 ttyS2
crw-rw----  1 root dialout   4,  67 Feb  1 14:41 ttyS3
crw-rw-rw-  1 root root      1,   9 Feb  1 14:41 urandom
crw-------  1 root root    252,   0 Feb  1 14:41 usbmon0
..
crw-------  1 root root    252,   8 Feb  1 14:41 usbmon8
crw-rw----  1 root tty       7,   0 Feb  1 14:41 vcs
crw-rw----  1 root tty       7,   1 Feb  1 14:41 vcs1
crw-rw----  1 root tty       7, 128 Feb  1 14:41 vcsa
crw-rw----  1 root tty       7, 129 Feb  1 14:41 vcsa1
crw-------  1 root root     10,  63 Feb  1 14:41 vga_arbiter
crw-rw-rw-  1 root root      1,   5 Feb  1 14:41 zero



More information about the lfs-support mailing list