View previous topic :: View next topic |
Author |
Message |
dr.nil n00b
Joined: 18 Jul 2007 Posts: 47
|
Posted: Thu Jul 05, 2012 9:46 am Post subject: [Solved] USB disk always gets new device name |
|
|
I only noticed yesterday that any USB device I plug in gets a new device name - sdb, sdc, sdd etc. After a reboot the cycle starts over at sdc (sda and sdb are the fixed disks in my machine).
I feel that this behaviour is not expected but have no clue what's wrong or how to fix it. I'm suspecting udev but my /etc/udev/rules.d looks pretty innocent. Unlike for e.g. network cards, no persistent rules seem to be added.
Help!
Last edited by dr.nil on Thu Jul 05, 2012 1:01 pm; edited 1 time in total |
|
Back to top |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
Posted: Thu Jul 05, 2012 10:04 am Post subject: |
|
|
That is the normal behavior. This is why I mount my USB backup disk by its volume label; from my /etc/fstab:
Code: | /dev/disk/by-label/backup /mnt/backupext4 noatime,nodiratime,noauto 0 0 |
You can also use /dev/disk/by-uuid/<UUID> for stronger uniqueness.
You can also create udev rules to have persistent naming for devices.
More here _________________ Personal overlay | Simple backup scheme |
|
Back to top |
|
|
dr.nil n00b
Joined: 18 Jul 2007 Posts: 47
|
Posted: Thu Jul 05, 2012 11:12 am Post subject: |
|
|
Thanks for the info. I went with udev rules and everything looks OK now. |
|
Back to top |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
|
Back to top |
|
|
|