LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 03-08-2011, 02:05 PM   #1
dsswift
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, 02:09 PM   #2
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
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, 03:07 PM   #3
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,221

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
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, 01:06 PM   #4
dsswift
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.
 
  


Reply


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 08:00 PM
LXer: Ubuntu derivatives flourish LXer Syndicated Linux News 0 05-13-2010 03:40 PM
Wireless problem. Inconsistent naming of interface arubin Slackware 2 12-20-2009 09:50 AM
Ubuntu vs. derivatives (Fluxbuntu, Xubuntu, etc.) jhsu Ubuntu 5 09-12-2009 08:22 PM
partionner's naming of drives inconsistent during alternate install messing up grub streams &dragonflies Ubuntu 2 10-05-2008 12:22 PM


All times are GMT -5. The time now is 04:43 PM.

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