LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Assign one USB-storage device to one device file (https://www.linuxquestions.org/questions/linux-hardware-18/assign-one-usb-storage-device-to-one-device-file-223136/)

Misel 08-27-2004 12:25 PM

Assign one USB-storage device to one device file
 
Hello,

I have several USB-storage devices that I regularly use (camera, cardreaders, usb-discs ...).

They all work fine but they always get a different device-file depending on the order I plug them in.

So how can I make sure that my camere for example is always on /dev/sda, my hard-discs on /dev/sdb and /dev/sdc, no matter when or in which order I plug them into my PC to make it easier to maintain them in /etc/fstab?

Is that even possible at all?

r0b0 08-28-2004 03:52 AM

Yes it is. You need kernel 2.6 and udev.
When you get this working, you can write rules for udev to assign devices to device files. See http://www.reactivated.net/udevrules.php
R.


All times are GMT -5. The time now is 07:09 PM.