Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

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.