Skip to main content
1 of 4
Jeight
  • 2.6k
  • 3
  • 20
  • 28

You can do this easily by referencing /dev/disk/by-id/usb-manufacturername_serialnumber. These appear as symbolic links which you can dereference using readlink -e to determine the associated block device.

Or.. Look at the dmesg after connecting the USB device. It should give you the /dev node.

Jeight
  • 2.6k
  • 3
  • 20
  • 28