From: "Richard Fish" <[EMAIL PROTECTED]> Subject: Re: [gentoo-user] udev.rules: Two "removeable" SATA-hds...how to map to /dev ??? Date: Fri, 4 Aug 2006 10:28:38 -0700
> 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 > Hi Richard, sorry, may be this is again a very nooby question, but... Where is that file ("60-persistent-storage.rules") ? "locate" doesn't locate that file on my system... Beside that: Great hack! Sounds like a real solution! Thanks a lot! Keep booting ! mcc -- gentoo-user@gentoo.org mailing list