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

From: Antonio De Leon (aldleonm@gmail.com)
Date: Thu Oct 08 2009 - 20:15:23 EDT


also 'lsscsi -l ' can give you a list

On Thu, Oct 8, 2009 at 3:49 PM, Ron Youvan <ka4inm@tampabay.rr.com> 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.
>>
>
> First:
>
> #!/bin/bash
> # /usr/local/bin/scsi
> # by Ron KA4INM Youvan
> if
> cdrecord -scanbus
> then
> snd doorslam (audible prompt)
> else
> snd error (audible prompt)
> fi
> # END /usr/local/bin/scsi
>
> Will tell you what is detected the on the various scsi and usb controllers
> including all three device values. (controller, device select and which
> slot in multi slot players)
>
> Then:
> A program with a name like SCG is a series of scsi utilities that will
> give you more scsi+usb information including testing the devices responses
> to the scsi commands.
>
> Also studying the log files will reveal what was discovered by the HAL as
> it was plugged in.
> --
> Ron KA4INM - I'm proud to be Chuck's pop!
>
> -----------------------------------------------------------------------
> 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.
>

-- 
Antonio De Leon

----------------------------------------------------------------------- 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:55 EDT