[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Something never understood: see USB storage in CLI & mc



Ron Leach composed on 2016-05-18 12:14 (UTC+0100):

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.

It didn't here either. Writing when I did, hours after I should have gone to bed, I got flustered when lsscsi was not installed and had to install it, then forgot about even trying lsblk (as Brian answered later), which is actually the better alternative, and didn't write a logically complete answer. Output from lsscsi doesn't include partition information, so mounting based upon its literal output will fail unless the USB device is unpartitioned.
--
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/


Reply to: