LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
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
 
LinkBack Search this Thread
Old 05-16-2008, 11:43 AM   #1
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,242

Rep: Reputation: 48
root=UUID= parameter in GRUB?


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
 
Old 05-16-2008, 12:33 PM   #2
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 341

Rep: Reputation: 34
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.
 
Old 05-16-2008, 01:37 PM   #3
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,242

Original Poster
Rep: Reputation: 48
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?
 
Old 05-16-2008, 01:49 PM   #4
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 341

Rep: Reputation: 34
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 01:51 PM. Reason: Syntax error: expected ')' after '/home' ;)
 
Old 05-18-2008, 12:52 AM   #5
warrenc5
LQ Newbie
 
Registered: Apr 2008
Posts: 2

Rep: Reputation: 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.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get kernel to recognize "root=LABEL=foo" parameter? TSquaredF Slackware 16 11-07-2009 02:58 PM
Two partitions are sharing one UUID. hpladd Linux - Hardware 1 07-28-2007 04:17 PM
linux bash - how to use a dynamic parameter in shell parameter expansion expression nickleus Linux - General 2 08-21-2006 04:54 AM
GRUB parameter to stop AGP module from loading ZakuSage Linux - Software 1 03-05-2006 01:59 PM
Uuid hansi umayangan Linux - General 2 03-14-2005 04:57 AM


All times are GMT -5. The time now is 03:36 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
Open Source Consulting | Domain Registration