Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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).

share|improve this question
up vote 2 down vote accepted

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

share|improve this answer
lshal. Thank you. I was going insane. – dierre Nov 8 '10 at 23:01
Fyi hal is being deprecated – ScottZ Nov 9 '10 at 9:48
What's the new kid in town then? I need something like hal. – dierre Nov 9 '10 at 12:48

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

share|improve this answer
thanks but it was "lshal". Usually you can do "lshw -C disk -C volume" but it's not useful to my purpouse. – dierre Nov 8 '10 at 23:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.