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"

-- 
"ls -l /dev/disk/by-id" does not show all disks
https://bugs.launchpad.net/bugs/102332
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to