Skip to main content
3 of 4
mentioning need for udev
peterph
  • 31k
  • 2
  • 71
  • 76

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. These links are however created by udev which might not be present in your embedded environment.

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

Jeight
  • 2.6k
  • 3
  • 20
  • 28