Re: [SLUG] Which /dev/sd* device is which

From: Eben King (eben01@verizon.net)
Date: Thu Oct 08 2009 - 15:38:55 EDT


On Thu, 8 Oct 2009, Paul M Foster wrote:

> You now how externally connected drives and such, connected by USB show
> up as /dev/sda, /dev/sdb, etc? Is there a program somewhere in Linux
> which maps out what devices end up as /dev/sdX? lsusb gives voluminous
> details, but doesn't appear to give me a clue whether a device will end
> up as /dev/sda or /dev/sdg or what. Currently, if I plug an external USB
> hard drive in, I have to attempt to mount each /dev/sdX device until I
> find the one I just mounted.

If you've labeled all your partitions, then

ls -l /dev/disk/by-label/

should do it.

-- 
-eben   QebWenE01R@vTerYizUonI.nOetP   royalty.mine.nu:81

Hi! I'm a .sig virus! Copy me to your .sig!

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 13:46:44 EDT