Skip to contentSkip to conversation

udev 140 and missing /dev/root symlink

DISCUSSION Marco d'Itri 2 participants 2 messages Mar 22, 2009

lore
Share & tools
lore
#0 lore raw

After switching from 125 to 140 I noticed that in some cases (e.g. a freshly installed kvm VM works, but my laptop and the one of another Debian developer does not) the /dev/root symlink is not created anymore.

How can I debug this? I verified that the link is listed in $DEVLINKS captured at boot time by a logger run after all rules:

DEVLINKS='/dev/block/8:4 /dev/disk/by-id/ata-SAMSUNG_HM080II_xxxxxxxxxxxxxx-part4 /dev/disk/by-id/scsi-SATA_SAMSUNG_HM080II_xxxxxxxxxxxxxx-part4 /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0-part4 /dev/disk/by-uuid/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /dev/disk/by-label/root /dev/root'

but is not present in the udev database:

E: DEVLINKS=/dev/block/8:4 /dev/disk/by-id/ata-SAMSUNG_HM080II_xxxxxxxxxxxxxx-part4 /dev/disk/by-id/scsi-SATA_SAMSUNG_HM080II_xxxxxxxxxxxxxx-part4 /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0-part4 /dev/disk/by-uuid/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /dev/disk/by-label/root

/dev/.udev/rules.d/61-dev-root-link.rules exists and looks correct:

ACTION="add", SUBSYSTEM="block", ENV{MAJOR}="8", ENV{MINOR}="4", SYMLINK+="root"

and indeed /dev/root is created if I trigger a new event:

echo add > /sys/block/sda/sda4/uevent

Signature · 2 lines
ciao,
Marco
#1 lore raw
Quoted 9 lines · Marco d'Itri

After switching from 125 to 140 I noticed that in some cases (e.g. a freshly installed kvm VM works, but my laptop and the one of another Debian developer does not) the /dev/root symlink is not created anymore.

How can I debug this? I verified that the link is listed in $DEVLINKS captured at boot time by a logger run after all rules:

DEVLINKS='/dev/block/8:4 /dev/disk/by-id/ata-SAMSUNG_HM080II_xxxxxxxxxxxxxx-part4 /dev/disk/by-id/scsi-SATA_SAMSUNG_HM080II_xxxxxxxxxxxxxx-part4 /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0-part4 /dev/disk/by-uuid/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /dev/disk/by-label/root /dev/root'

Quoted 7 lines

but is not present in the udev database:

E: DEVLINKS=/dev/block/8:4 /dev/disk/by-id/ata-SAMSUNG_HM080II_xxxxxxxxxxxxxx-part4 /dev/disk/by-id/scsi-SATA_SAMSUNG_HM080II_xxxxxxxxxxxxxx-part4 /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0-part4 /dev/disk/by-uuid/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /dev/disk/by-label/root

/dev/.udev/rules.d/61-dev-root-link.rules exists and looks correct:

ACTION="add", SUBSYSTEM="block", ENV{MAJOR}="8", ENV{MINOR}="4", SYMLINK+="root"

Add "change" here? Rules that create links or set a name are almost all wrong, if they do not match on :add" and "change" at the same time.

Kay