Comment 18 for bug 102332

Revision history for this message
Anders Häggström (hagge) wrote : Re: "ls -l /dev/disk/by-id" does not show all disks

The actual output from scsi_id is as follows:
# /lib/udev/scsi_id -g -x -s /block/sda
ID_VENDOR=ATA
ID_MODEL=ST3320620AS
ID_REVISION=3.AA
ID_SERIAL=1ATA_ST3320620AS_9RV
ID_TYPE=disk
ID_BUS=scsi

And in my opinion it should be:
# /lib/udev/scsi_id -g -x -s /block/sda
ID_VENDOR=ATA
ID_MODEL=ST3320620AS
ID_REVISION=3.AA
ID_SERIAL=9RV01S5H
ID_TYPE=disk
ID_BUS=scsi

When that is corrected the udev rule (/etc/udev/rules.d/65-persistent-storage.rules) should be something similar to this:
KERNEL=="sd*[!0-9]|sr*|dasd*[!0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_MODEL}_$env{ID_SERIAL}"
KERNEL=="sd*[0-9]|dasd*[0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_MODEL}_$env{ID_SERIAL}-part%n"