LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-29-2011, 11:45 AM   #1
anika.ella
Member
 
Registered: Dec 2007
Distribution: Fedora 8
Posts: 64

Rep: Reputation: 15
sda / sdb after boot


I want to automatic mount a ntfs partition after start. I work on fstab, everything seems to be ok, but now something strange is happening: sometimes after boot, when I use fdisk, I find all the partitions as sda, sometims they seems to appear as sdb. Of course, if in fstab I have written sda and they are sdb, they will not be aoutomount...
I am using fedora 14
Any idea why is happening this ? I was expecting that allways the partitions to be sda or sdb.
 
Old 04-29-2011, 11:59 AM   #2
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
This is because with sata,usb etc the disks doesn't have an exact physical position as with old ata.
What you should do is use either UUID or LABEL instead of /dev/sd*
Find your uuid and label:
# ls /dev/disk/by-label
# ls /dev/disk/by-uuid

In /etc/fstab, example:
UUID=4706-0137 /media/sda1 vfat defaults,umask=007,gid=46 0 0
 
  


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
RHEL 6 after boot primary partition shows /dev/sdb instead of /dev/sda vipul_patel Red Hat 1 04-26-2011 10:48 AM
How do I keep sda from changing its name to sdb? kinetic Linux - Hardware 3 06-22-2008 09:01 PM
Just installed F9 on sdb but lost the ability to boot F7 on sda Iltbreg Fedora 2 06-09-2008 01:26 PM
Changing sda to sdb mickeyboa Fedora 4 04-21-2008 01:22 AM
sda or sdb? stevest SUSE / openSUSE 7 12-18-2007 12:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:23 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration