LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Thread Tools
Old 05-16-2008, 12:43 PM   #1
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Lenny
Posts: 1,212
Thanked: 5
root=UUID= parameter in GRUB?


[Log in to get rid of this advertisement]
I have been use to "root=/dev/hdX" type of parameter in the GRUB menu. But now a days I see in Ubuntu that they have something like root=UUID=<a-very-large-number>. What does that mean? Where does it come from? Can I replace my "root=/dev/hdX" parameter with "root=UUID=<number>" on other Linux systems like Debian?

Thanks
kushalkoolwal is offline     Reply With Quote
Old 05-16-2008, 01:33 PM   #2
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 330
Thanked: 6
UUID means Universally Unique Identifier

Basically, it is the label that was assigned to the partition when it was created by the installer.

root=/dev/hdX *MAY* still work, but it is recommended to use labels instead.
x_terminat_or_3 is offline     Reply With Quote
Old 05-16-2008, 02:37 PM   #3
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Lenny
Posts: 1,212
Thanked: 5

Original Poster
Quote:
Originally Posted by x_terminat_or_3 View Post
UUID means Universally Unique Identifier

Basically, it is the label that was assigned to the partition when it was created by the installer.

root=/dev/hdX *MAY* still work, but it is recommended to use labels instead.
Thanks for the info. But how do you actually get it work? How do i find my UUID? and also is UUID going to replace the /dev/hd* in future in Linux in general?
kushalkoolwal is offline     Reply With Quote
Old 05-16-2008, 02:49 PM   #4
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 330
Thanked: 6
To find the label of the partition,

type in

Code:
e2label /dev/hd*
Replace the * with the appropriate device letter and partition number

No, Linux is still going to use /dev/hd* (or /dev/sd*)

But some distros, like Fedora have switched from using /dev/hd* to using /dev/sd* for all PATA/SATA drives. If your grub references the devices by that name, you wouldn't be able to boot.

You can even mount partitions by their label, example mount LABEL=/home /home would work (provided you have a partition on your system labeled '/home')

Last edited by x_terminat_or_3; 05-16-2008 at 02:51 PM.. Reason: Syntax error: expected ')' after '/home' ;)
x_terminat_or_3 is offline     Reply With Quote
Old 05-18-2008, 01:52 AM   #5
warrenc5
LQ Newbie
 
Registered: Apr 2008
Posts: 2
Thanked: 0
Hello, I have started using this with the rootwait option, for booting from a usb disk.

Depending on the order the disks are detected by the bios and linux addressing by /dev/sda has no meaning anymore.

The UUID is actually the UUID of the ext2/3 filesystem, which you can see if you use dumpe2fs /dev/sda | grep UUID.

also remember to update your /etc/fstab file.

I have had no success with yaird and root=UUID yaird just seems to translate it to /dev/sdX.
warrenc5 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
How to get kernel to recognize "root=LABEL=foo" parameter? TSquaredF Slackware 16 Yesterday 03:58 PM
Two partitions are sharing one UUID. hpladd Linux - Hardware 1 07-28-2007 05:17 PM
linux bash - how to use a dynamic parameter in shell parameter expansion expression nickleus Linux - General 2 08-21-2006 05:54 AM
GRUB parameter to stop AGP module from loading ZakuSage Linux - Software 1 03-05-2006 02:59 PM
Uuid hansi umayangan Linux - General 2 03-14-2005 05:57 AM


All times are GMT -5. The time now is 09:32 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration