Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 03-08-2011, 03:05 PM   #1
LQ Newbie
Registered: Oct 2010
Location: Oldham
Posts: 2

Rep: Reputation: 0
Inconsistent disk naming on Ubuntu and derivatives

I have a SATA internal hard disk and a USB external hard disk, both with several partitions) plus two USB flash sticks and a multicard reader. When I boot Ubuntu (or any distribution based on it) the internal disk partitions can be /dev/sdan, /dev/sdbn or even on one occasion /dev/sdhn. This caused me some problems with my /etc/fstab file and swap partitions, which I have now largely solved by using disk and swap labels. However I would be interested to know the reason for this
Old 03-08-2011, 03:09 PM   #2
LQ Guru
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
That would depend on how it would be loaded; If your system detects the USB flash drives first, then they will get /dev/sdaX first, then the next device, etc.
Old 03-08-2011, 04:07 PM   #3
Senior Member
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,254

Rep: Reputation: 315Reputation: 315Reputation: 315Reputation: 315
And for this reason arised UUID naming. Look into /dev/disk/by-uuid There are links with fixed names to appropriate disk devices. The system can recognize theses uuids for example in fstab.
Old 03-21-2011, 02:06 PM   #4
LQ Newbie
Registered: Oct 2010
Location: Oldham
Posts: 2

Original Poster
Rep: Reputation: 0
I resolved the problem by using labels(The are less unwieldy then UUIDs). I am just surprised that Ubuntu and its derivatives see a USB drive before an internal drive. Fedora always sees the internal dribe as /dev/sdaN.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Seven Ubuntu Derivatives worth Checking Out LXer Syndicated Linux News 0 07-24-2010 09:00 PM
LXer: Ubuntu derivatives flourish LXer Syndicated Linux News 0 05-13-2010 04:40 PM
Wireless problem. Inconsistent naming of interface arubin Slackware 2 12-20-2009 10:50 AM
Ubuntu vs. derivatives (Fluxbuntu, Xubuntu, etc.) jhsu Ubuntu 5 09-12-2009 09:22 PM
partionner's naming of drives inconsistent during alternate install messing up grub streams &dragonflies Ubuntu 2 10-05-2008 01:22 PM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration