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

1

2 Answers 2

2

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

2
  • Fyi hal is being deprecated
    – ScottZ
    Nov 9, 2010 at 9:48
  • What's the new kid in town then? I need something like hal.
    – dierre
    Nov 9, 2010 at 12:48
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

1
  • 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, 2010 at 23:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .