Ubuntu – How to list all storage devices (thumb drives/external hard drives) that are connected via USB, from the command line

command lineusb

I would like to list ONLY devices connected via usb.

The problem is that Ubuntu seems to see all thumb drives as removable (in /sys/block/*/removable), but it does not see external hard drives the same way.

This is a bit more specific than How to detect an USB device?

Best Answer

If you are looking for the mounted disks, a simple

df

will list them along with all your other disks along with some useful info.