Disk troubles - which disk is that - solved

David Timms dtimms at iinet.net.au
Sun Jul 1 22:07:21 UTC 2012


On 01/07/12 23:47, Joseph L. Casale wrote:
>> Also, I seen sd 2:0:0:0: as the disk label, how would you convert that
>> to /dev/sdN disk ?
>
> Its the sys interface :)
>
> Start with this:
>
> ls -al /sys/bus/scsi/drivers/sd/2\:0\:0\:0/block
----
bash-4.2$ ls -la /sys/bus/scsi/drivers/sd/2\:0\:0\:0/block/
total 0
drwxr-xr-x.  3 root root 0 Jul  2 07:36 .
drwxr-xr-x.  8 root root 0 Jul  2 07:36 ..
drwxr-xr-x. 15 root root 0 Jul  2 07:36 sdc
----
Easy when you know how ! Now to find some hd space to back up to while 
performing minor desk replacement surgery.

Thanks.


More information about the users mailing list