[lug] Kernel reorders SCSI drives.
Zan Lynx
zlynx at acm.org
Mon Oct 30 18:36:38 MST 2006
On Mon, 2006-10-30 at 18:14 -0700, David L. Anselmi wrote:
> I have a 2.6.17 box with 2 SATA drives and 1 USB drive. They used to be
> sd[a-c] respectively. For a while the kernel has been assigning those
> names randomly to the drives.
[snip]
> I would have thought that even with all the fancy udev/hotplug stuff I'd
> still be able to use the usual names but it seems I can't.
>
> To work around this I'm going to rename everything to something new and
> ignore the kernel's idea about names. But it seems unnecessarily clumsy
> to have to update that list any time a new drive is added. Anyone have
> a better way?
My udev (udev-103 but it has done this for a while) automatically
creates some entries like this:
/dev/disk/by-id
/dev/disk/by-label
/dev/disk/by-path
/dev/disk/by-uuid
The full listing looks like:
/dev/disk
/dev/disk/by-label
/dev/disk/by-label/LEXAR_MEDIA
/dev/disk/by-uuid
/dev/disk/by-uuid/0FD6-0C5A
/dev/disk/by-uuid/eeca71d7-e22f-48e6-b500-48dca49d20a4
/dev/disk/by-uuid/fd35277a-8dc7-4afe-8257-fda61b757344
/dev/disk/by-uuid/b35cd254-b64b-4432-b882-f4bdb0c36498
/dev/disk/by-path
/dev/disk/by-path/pci-0.0-ide-0:0-part1
/dev/disk/by-path/pci-0000:00:08.0-ide-0:0-part1
/dev/disk/by-path/pci-0000:00:08.0-ide-0:0-part3
/dev/disk/by-path/pci-0000:00:08.0-ide-0:0-part2
/dev/disk/by-path/pci-0000:00:08.0-ide-1:0
/dev/disk/by-path/pci-0000:00:08.0-ide-0:0
/dev/disk/by-path/pci-0.0-ide-0:0
/dev/disk/by-id
/dev/disk/by-id/ata-LEXAR_ATA_FLASH_11046132419799090042-part1
/dev/disk/by-id/ata-HTS721010G9AT00_MPC0L1Y0G71PPD-part1
/dev/disk/by-id/ata-HTS721010G9AT00_MPC0L1Y0G71PPD-part3
/dev/disk/by-id/ata-HTS721010G9AT00_MPC0L1Y0G71PPD-part2
/dev/disk/by-id/ata-HTS721010G9AT00_MPC0L1Y0G71PPD
/dev/disk/by-id/ata-LEXAR_ATA_FLASH_11046132419799090042
Out of all that I am sure there's something useful.
--
Zan Lynx <zlynx at acm.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20061030/879f00d3/attachment.pgp>
More information about the LUG
mailing list