[ale] USB "duplicate" drive issue on CentOS
Chris Fowler
cfowler at outpostsentinel.com
Thu Jun 16 18:48:37 EDT 2016
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20160616/3233c9d8/attachment.html>
More information about the Ale
mailing list