<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><br></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><blockquote style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Alex Carver" &lt;agcarver+ale@acarver.net&gt;<br><b>To: </b>ale@ale.org<br><b>Sent: </b>Thursday, June 16, 2016 3:52:08 PM<br><b>Subject: </b>Re: [ale] USB "duplicate" drive issue on CentOS<br></blockquote></div><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;">If you use a udev rule then the device name *won't* change (or you can<br>avoid needing to care). &nbsp;You identify the device based on its bus and<br>device IDs (which are fixed) and the udev rule will put it in the same<br>spot every time.<br><br>Here's an example using serial ports but concept is the same:<br>ACTION=="add",KERNEL=="ttyUSB*",SUBSYSTEMS=="usb",KERNELS=="1-1.3.1.4:1.0",SYMLINK+="dymo"<br>ACTION=="add",KERNEL=="ttyUSB*",SUBSYSTEMS=="usb",KERNELS=="1-1.3.1.3:1.0",SYMLINK+="supra"<br><br>If the USB-serial adapter is plugged into the same port (or present at<br>boot) it's going to get the same symlink every time.<br><br></blockquote><div><br></div><div>Not if you have a few hundred of the same chip. &nbsp;The only thing that will save me there is unique serial number. &nbsp;Vendors do not guarantee that.</div><div><br data-mce-bogus="1"></div><div>That is for USB serial though.</div><div><br data-mce-bogus="1"></div></div></div></body></html>