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
will list them along with all your other disks along with some useful info.