0

It's a dumb question. Once I knew this command, I used it two or three months ago but now it seems I can't recall it. I tried to look for it using Google but nothing happened :(

It's a dbus command which send a query to udev or something similar, basically I could do

mysterious_command | grep Storage

and I could see all usb storage drives.

(No, using mount it's not the same because it just gives me mounted partition and not if they are usb storage or whatever...or maybe it can and I didn't know about it).

dierre
  • 145
  • 1
  • 6
  • See: [What's the best way to get info about currently unmounted drives?](http://serverfault.com/questions/190685/whats-the-best-way-to-get-info-about-currently-unmounted-drives) and [How can I find out what hard disks are attached to a Linux box?](http://serverfault.com/questions/5031/how-can-i-find-out-what-hard-disks-are-attached-to-a-linux-box) – Zoredache Nov 08 '10 at 22:37

2 Answers2

2

I think you're looking for either lshal or lsusb.

Roshan
  • 681
  • 5
  • 4
0

Will dmesg or dmidecode get what you are looking for?

I don't have any connected USB media to try this against but dmesg | grep Storage returns:
Initializing USB Mass Storage Driver scsi1 : SCSI emulation for USB Mass Storage devices
scsi2 : SCSI emulation for USB Mass Storage devices
USB Mass Storage support registered

Aaron Copley
  • 12,345
  • 5
  • 46
  • 67
  • thanks but it was "lshal". Usually you can do "lshw -C disk -C volume" but it's not useful to my purpouse. – dierre Nov 08 '10 at 23:02