Re: Something never understood: see USB storage in CLI & mc
On Wed 18 May 2016 at 12:14:00 +0100, Ron Leach wrote:
> On 18/05/2016 10:40, Felix Miata wrote:
> >Ron Leach composed on 2016-05-18 10:30 (UTC+0100):
> >>I'd be grateful for any advice on where to find the physical device to
> >>use in a mount command.
> >
> ># lsscsi
> >...
> >[9:0:0:0] disk FLASH Drive SM_USB20 1100 /dev/sdg...
> >
> ># blkid /dev/sdg
> >
> ># mount -t auto (or the type reported by blkid)
>
> Felix, thank you for the (very) prompt reply. It didn't quite work, for me.
>
> wheezy2:/home/ron# lsscsi
> bash: lsscsi: command not found
> wheezy2:/home/ron# lsusb
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 001 Device 004: ID 0781:a7c1 SanDisk Corp.
>
> As you see, lsscsi does not seem to exist on his machine. One alternative
> I've used in other usb contexts, lsusb, sees the device, but without a
> /dev/sd...
>
> Another reply suggested using dmesg output, which I'll try now - and reply
> to in a moment.
You have to install lsscsi to use it. However, what is on every Debian
system is the utils-linux package and it has lsblk.
At its simplest:
brian@desktop:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
fd0 2:0 1 4K 0 disk
sda 8:0 0 149.1G 0 disk
├─sda1 8:1 0 16.8G 0 part /
├─sda2 8:2 0 5.6G 0 part /var
├─sda3 8:3 0 1.9G 0 part [SWAP]
└─sda4 8:4 0 124.9G 0 part /home
sdb 8:16 1 964M 0 disk
├─sdb1 8:17 1 315M 0 part
└─sdb2 8:18 1 320K 0 part
sr0 11:0 1 1024M 0 rom
sr1 11:1 1 466.7M 0 rom
Or:
brian@desktop:~$ lsblk -S
NAME HCTL TYPE VENDOR MODEL REV TRAN
sda 0:0:0:0 disk ATA SAMSUNG HD160JJ 0-33 sata
sdb 47:0:0:0 disk PEAK III Flash Drive 0.00 usb
sr0 3:0:0:0 rom MATSHITA CD-ROM CR-587 7S13 ata
sr1 4:0:0:0 rom PIONEER DVD-RW DVR-110 1.22 ata
Reply to: