On Sun, 17 Jul 2016 03:56:36 +0100
Ken Moffat <zarniwh...@ntlworld.com> wrote:

> But then I unmounted that drive and inserted another.  And suddenly
> the new one had become /dev/sdd1.  I then reinserted the original
> external drive instead, and it too was now sdd1.  I've now moved on
> to backing up some other stuff to a third external drive - still
> sdd1, but I bet at some point an external drive will be sde1 again.
> 
> Just when I thought I understood device naming 8-|
> 
> ĸen

Hello Ken,

For external disks, creating a persistent udev rule for them would seem to be a 
good idea.

Perhaps something along the lines of:

BUS="usb",KERNEL="sd*",SYSFS{idProduct}="6830",NAME="%k",SYMLINK="usbdisk"

Change the idProduct variable for the drive(s) in question.

Another idea is to use the current UUID, or create your own custom UUID, and 
use the UUID variable for the udev rule.
Reference tune2fs for that option.

In the past, I have noticed the kernel, especially for USB external drives, 
would keep incrementing the sd* device name.
It is also troublesome when a drive decides to disconnect itself from the bus 
and then reconnect that it'll get a new device name.

Sincerely,
William Harrington
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to