On 8/4/06, Etaoin Shrdlu <[EMAIL PROTECTED]> wrote:
[Fri Aug 04 11:38:50 [EMAIL PROTECTED] ~]# ls -l /dev/disk/by-id/
[cut]
lrwxrwxrwx 1 root root  9 Jul 20 10:50
ata-Maxtor_6Y080L0_Y2CG9M5E -> ../../hde
lrwxrwxrwx 1 root root  9 Jul 20 10:50
ata-Maxtor_6Y080L0_Y3J1HW3E -> ../../hdg

ARGH!  Thanks Etaoin, I forgot about the by-id mappings.

Meino, take a look at the by-id rules in 60-persistent-storage.rules.
It looks like you can use the ENV{ID_SERIAL} to match SATA drives by
serial.

The strange thing is that udev obviously knows the serial number of each
drive (udevinfo -q all -n /dev/sda *DOES* show the device's serial
number), but it seems that no file under /sys contains this information

It uses the /lib/udev/scsi_id program to read the information directly
from the drive.

/lib/udev/scsi_id -g -s /block/sda -d /dev/sda

-Richard
--
gentoo-user@gentoo.org mailing list

Reply via email to