Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] USB disk always gets new device name
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
dr.nil
n00b
n00b


Joined: 18 Jul 2007
Posts: 47

PostPosted: Thu Jul 05, 2012 9:46 am    Post subject: [Solved] USB disk always gets new device name Reply with quote

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
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Thu Jul 05, 2012 10:04 am    Post subject: Reply with quote

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
View user's profile Send private message
dr.nil
n00b
n00b


Joined: 18 Jul 2007
Posts: 47

PostPosted: Thu Jul 05, 2012 11:12 am    Post subject: Reply with quote

Thanks for the info. I went with udev rules and everything looks OK now.
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Thu Jul 05, 2012 12:03 pm    Post subject: Reply with quote

Great! Please add "[SOLVED]" to the thread title.
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum