LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-21-2010, 01:11 AM   #1
redhatz_zhao
LQ Newbie
 
Registered: Sep 2009
Posts: 6

Rep: Reputation: 0
how to decide the parameter value of root in grub.conf


After I installed Linux OS(for example:SuSE10,redhat5),the [root] parmeter of [kernel] in created grub.conf seems that sometimes it's defined to device name.sometimes it's defined to Label or sometimes UUID.

So ,I want to know what is that relative to? Hard disk type or OS version or both?

Thanks.
 
Old 07-21-2010, 11:00 AM   #2
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Hi redhatz_zhao,

Quote:
After I installed Linux OS(for example:SuSE10,redhat5),the [root] parmeter of [kernel] in created grub.conf seems that sometimes it's defined to device name.sometimes it's defined to Label or sometimes UUID.

So ,I want to know what is that relative to? Hard disk type or OS version or both?

Thanks.
root argument tells the kernel what device to be used as a root file system.

you can define value as a partition, LABEL or UUID. This value is related root file system.

mostly in redhat system it configured as partition or LABEL
in ubuntu 10.04 it configured as UUID number
in debian lenny it configured as partition

you can use different parameter for root file system. for example if your file system on /dev/sda1 and label is "/"
you can use
Code:
kernel /vmlinuz-2.4.18-0.12-jul2001 ro root=/dev/sda1 ro quite
OR
kernel /vmlinuz-2.4.18-0.12-jul2001 ro root=LABEL=/ ro quite
OR
kernel /vmlinuz-2.4.18-0.12-jul2001 ro root=UUID=uuid number ro quite
whatever option you use it will always point root file system. if your parameter is incorrect then linux wan't boot.

HTH
 
1 members found this post helpful.
Old 07-21-2010, 01:04 PM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Note, however, that using a drive/partition specification requires that you change your GRUB boot configuration file if you change your partitioning, and that using a partition label requires that your boot drive label(s) be unique for your whole drive farm.
 
Old 07-22-2010, 01:37 AM   #4
redhatz_zhao
LQ Newbie
 
Registered: Sep 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Hi Sem007

thanks for your detailed explanation.
Now, what I want to know is what root argument is when installed OS.
on other words,what is initial kernel's options?
the following is rule or experience?Is there offical document that specifes these rules?

thanks.
-----------------------------
mostly in redhat system it configured as partition or LABEL
in ubuntu 10.04 it configured as UUID number
in debian lenny it configured as partition
-----------------------------
Quote:
Originally Posted by sem007 View Post
Hi redhatz_zhao,



root argument tells the kernel what device to be used as a root file system.

you can define value as a partition, LABEL or UUID. This value is related root file system.

mostly in redhat system it configured as partition or LABEL
in ubuntu 10.04 it configured as UUID number
in debian lenny it configured as partition

you can use different parameter for root file system. for example if your file system on /dev/sda1 and label is "/"
you can use
Code:
kernel /vmlinuz-2.4.18-0.12-jul2001 ro root=/dev/sda1 ro quite
OR
kernel /vmlinuz-2.4.18-0.12-jul2001 ro root=LABEL=/ ro quite
OR
kernel /vmlinuz-2.4.18-0.12-jul2001 ro root=UUID=uuid number ro quite
whatever option you use it will always point root file system. if your parameter is incorrect then linux wan't boot.

HTH

Last edited by redhatz_zhao; 07-22-2010 at 01:42 AM.
 
Old 07-22-2010, 01:40 AM   #5
redhatz_zhao
LQ Newbie
 
Registered: Sep 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by PTrenholme View Post
Note, however, that using a drive/partition specification requires that you change your GRUB boot configuration file if you change your partitioning, and that using a partition label requires that your boot drive label(s) be unique for your whole drive farm.
Hi,PTrenholme

thanks for your notation.
 
Old 07-22-2010, 01:55 AM   #6
redhatz_zhao
LQ Newbie
 
Registered: Sep 2009
Posts: 6

Original Poster
Rep: Reputation: 0
[supplementation]

Today,I tried to install SUSE 10.I fount that it seems root argument is decide by editing fstab when creating / partition.
Is the guess right?

but not all the OS's fstab can be customized in installing
 
Old 07-22-2010, 02:53 AM   #7
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Hi

Quote:
thanks for your detailed explanation.
Now, what I want to know is what root argument is when installed OS.
on other words,what is initial kernel's options?
the following is rule or experience?Is there offical document that specifes these rules?

thanks.
-----------------------------
mostly in redhat system it configured as partition or LABEL
in ubuntu 10.04 it configured as UUID number
in debian lenny it configured as partition
-----------------------------
It is based on my experience.You can search their sites for the same.

Quote:
[supplementation]

Today,I tried to install SUSE 10.I fount that it seems root argument is decide by editing fstab when creating / partition.
Is the guess right?

but not all the OS's fstab can be customized in installing
Yes you are right. You can change fstab option (in expert mode)during suse 10 installation.In redhat,ubuntu there is no such option available.

HTH
 
Old 07-26-2010, 10:42 AM   #8
babunix
Member
 
Registered: Jul 2010
Location: India
Distribution: RHEL, Ubuntu
Posts: 35

Rep: Reputation: Disabled
Hello All,

I am new member to this forum.I am searching about grub problem and i found this useful information.

one question about UUID.

How can i find UUID?

Thanks,
 
Old 07-26-2010, 10:46 AM   #9
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Hello Babu Wel-come to LQ,

Use blkid command to find UUID
for exa.
Code:
blkid /dev/sda1
 
Old 07-26-2010, 11:06 AM   #10
babunix
Member
 
Registered: Jul 2010
Location: India
Distribution: RHEL, Ubuntu
Posts: 35

Rep: Reputation: Disabled
thanks sem007
 
Old 07-26-2010, 11:14 AM   #11
djsmiley2k
Member
 
Registered: Feb 2005
Location: Coventry, UK
Distribution: Home: Gentoo x86/amd64, Debian ppc. Work: Ubuntu, SuSe, CentOS
Posts: 343
Blog Entries: 1

Rep: Reputation: 72
Quote:
Originally Posted by sem007 View Post
Code:
kernel /vmlinuz-2.4.18-0.12-jul2001 ro root=/dev/sda1 ro quite
OR
kernel /vmlinuz-2.4.18-0.12-jul2001 ro root=LABEL=/ ro quite
OR
kernel /vmlinuz-2.4.18-0.12-jul2001 ro root=UUID=uuid number ro quite
Not being nit picky but in case anyone who doesn't realise sees this and ends up copying it word for word: It should be `quiet` not `quite`
 
Old 07-26-2010, 12:05 PM   #12
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by babunix View Post
Hello All,

I am new member to this forum.I am searching about grub problem and i found this useful information.

one question about UUID.

How can i find UUID?

Thanks,
If your distribution uses udev (most distributions do so), lots of useful information can be found in the subdirectories of /dev/disk. For example, a ls -l /dev/disk/by-uuid will usually show you the UUIDs of all the disk devices attached you your system.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't open grub.conf/lilo.conf with kate being root cola Slackware 6 09-28-2009 07:26 AM
what is max_load parameter in /etc/xinetd.conf deepak_cucek Linux - Newbie 6 08-20-2009 12:41 AM
parameter /etc/logrotate.conf vikas027 Linux - Server 2 04-16-2009 08:28 AM
root=UUID= parameter in GRUB? kushalkoolwal Ubuntu 4 05-18-2008 12:52 AM
Grub.conf = how to change to root=LABEL=\ Eileen Fedora 6 05-18-2006 01:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:29 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