Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running a linux machine (Ubuntu 10.04) inside of an autonomous submarine that has many USB devices attached to it such as cameras, usb->serial devices, etc. Unfortunately, every time the machine boots up my devices seem to get assigned differently. For example, my various USB->serial devices will show up as different /dev/ttyUSB*, and my cameras will show up as different /dev/video*.

Is there some way to force these USB devices to get consistently assigned to the same /dev files?

share|improve this question
up vote 2 down vote accepted

Write udev rules that give each device a known symlink under /dev.

share|improve this answer

The devices send a serial number when they connect that is available for udev rules. But there is already a location, at least on my system, where these are symlinked to the actual device nodes. look in /dev/input/by-id for input devices. You can do similar things for USB serial ports if it's not already there.

share|improve this answer

You must log in to answer this question.

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