LWN.net Logo

User-friendly disk names

User-friendly disk names

Posted Jun 30, 2011 8:32 UTC (Thu) by zdzichu (subscriber, #17118)
In reply to: User-friendly disk names by giraffedata
Parent article: User-friendly disk names

But udev helps you to map sdX to real hardware:

# ls -lR /dev/disk/by-* | grep sdc1
lrwxrwxrwx. 1 root root 10 06-22 09:36 ata-ST3250820AS_6QE0XHAV-part1 -> ../../sdc1
lrwxrwxrwx. 1 root root 10 06-22 09:36 scsi-SATA_ST3250820AS_6QE0XHAV-part1 -> ../../sdc1
lrwxrwxrwx. 1 root root 10 06-22 09:36 pci-0000:00:1f.2-scsi-3:0:0:0-part1 -> ../../sdc1
lrwxrwxrwx. 1 root root 10 06-22 09:36 4e11c761-2597-4b20-8e86-b9eac0a665d0 -> ../../sdc1

I'm sure there is some "udevadm info" invocation which will do the same and even provice more info.


(Log in to post comments)

User-friendly disk names

Posted Nov 13, 2011 14:26 UTC (Sun) by Baylink (subscriber, #755) [Link]

Yeah, but only if you *get* a /dev/sdx name. I'm playing with Open-iSCSI for the first time, on Suse, under Xen, and I can only get it to do that for the first two mounts; after /dev/sdb, I don't get a device anymore. I assume there's some knob I haven't found yet, but the doco on Open-I is kinda thin on the ground...

This planning treads much the same ground as the best writeup I found on the topic:

http://www.idevelopment.info/data/Unix/Linux/LINUX_Connec...

and indeed, that gent's userspace approach may well belie the arguments of those who say this needs to be kernel-side, all by itself.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds