[ale] USB "duplicate" drive issue on CentOS
Alex Carver
agcarver+ale at acarver.net
Thu Jun 16 20:06:44 EDT 2016
Yes, this was an example of udev but not for serial specifically. I
just didn't have hard drive udev rules handy, only some serial rules.
However, these devices I'm using do not have unique serial numbers which
is why I'm working with them via their bus number.
On 2016-06-16 15:48, Chris Fowler wrote:
>
>
> --------------------------------------------------------------------------------
>
> *From: *"Alex Carver" <agcarver+ale at acarver.net>
> *To: *ale at ale.org
> *Sent: *Thursday, June 16, 2016 3:52:08 PM
> *Subject: *Re: [ale] USB "duplicate" drive issue on CentOS
>
> If you use a udev rule then the device name *won't* change (or you can
> avoid needing to care). You identify the device based on its bus and
> device IDs (which are fixed) and the udev rule will put it in the same
> spot every time.
>
> Here's an example using serial ports but concept is the same:
> ACTION=="add",KERNEL=="ttyUSB*",SUBSYSTEMS=="usb",KERNELS=="1-1.3.1.4:1.0",SYMLINK+="dymo"
> ACTION=="add",KERNEL=="ttyUSB*",SUBSYSTEMS=="usb",KERNELS=="1-1.3.1.3:1.0",SYMLINK+="supra"
>
> If the USB-serial adapter is plugged into the same port (or present at
> boot) it's going to get the same symlink every time.
>
>
> Not if you have a few hundred of the same chip. The only thing that will save
> me there is unique serial number. Vendors do not guarantee that.
>
> That is for USB serial though.
More information about the Ale
mailing list