LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-05-2010, 02:52 PM   #1
jesses93
LQ Newbie
 
Registered: Oct 2008
Distribution: Arch linux
Posts: 5

Rep: Reputation: 0
fstab sdxx or uuid or ...


What would be the best way list disk and partitions in the fstab file?
 
Old 01-05-2010, 03:02 PM   #2
will177
LQ Newbie
 
Registered: Nov 2009
Location: London
Distribution: Ubuntu
Posts: 11

Rep: Reputation: 4
uuid is the newer method and better in my opinion in case you ever add disks or move disks around from computer to computer (it just makes it easier to know which disk and partition is which as they don't always appear as the same sda, sdb order.)

Here is a command that you run as root (or sudo) that might help
(it tells you the uuid for the partition /dev/sdb1):

vol_id --uuid /dev/sdb1


And in /etc/fstab I have

# /dev/sdb1 (100GB)
UUID=ace0e658-81d4-43a3-98c7-46ec689f999f /home ext3 defaults 0 2


Finally, you might want to reboot after updating your fstab file to make sure
that the links that list disk partitions by-uuid are all there.

e.g.
ls -lah /dev/disk/by-uuid


See also:
http://ubuntuforums.org/showthread.php?t=283131

HTH

Last edited by will177; 01-05-2010 at 03:04 PM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LABEL versus UUID in fstab and menu.lst eldiener Linux - General 7 01-03-2010 11:38 PM
after copying partition, how to deal with fstab when it references by UUID ? lumix Linux - Newbie 5 12-09-2008 09:59 PM
UUID, grub, and fstab radiodee1 Debian 4 09-16-2008 05:56 AM
How to clone HD when using UUID in fstab? Frank64 Linux - General 5 03-09-2008 02:17 PM
UUID: wrong values in Ubuntu /etc/fstab files grautu Ubuntu 7 05-05-2007 04:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:16 PM.

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
Open Source Consulting | Domain Registration