LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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-02-2012, 02:40 AM   #1
ravi_nandula
Member
 
Registered: Sep 2011
Posts: 81

Rep: Reputation: Disabled
Unhappy Grub Config file


Hi everyone,

Actually I am learning about the grub config.
I restarted my system and pressed ESC and got the grub menu which is having 3 lines as

root (rh0,0)
Kernel /....
initrd /intramfs......

like this.....my question is
If I make changes to the 1st line it is not allowing to boot the system and if I make any changes in the next 2 lines...it is booting and changes are not saved also.....why this is happening????
 
Old 04-02-2012, 02:53 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
you should find the information on grub file on google very easily. I would suggest you go through the docs first. Changing a grub file without understanding it is not a good idea
 
Old 04-02-2012, 06:16 AM   #3
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
The first line sets the root partition, if you change that the system will not find the root partition and will not boot.
The second line sets the kernel image.
The third line starts booting into linux.
And as adviced by chaitanya that first you should get good understanding about grub then you should go for experimenting on it.
 
Old 04-02-2012, 06:38 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
And to add to that, the changes that you make on grub prompt are temporary in nature that affect only the current boot. Those will not be saved. To make the changes permanent, you need to edit grub configuration file. You only edit grub parameters for debugging or troubleshooting purposes like lost root password or kernel panic due to mismatched or wrong root partition.
 
  


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
Parsing a Grub config file: Python vharishankar Programming 8 03-03-2006 11:24 AM
How to rebuild Grub config file rhstudent Linux - Laptop and Netbook 2 02-06-2006 09:46 PM
grub config file not there linuxmandrake Mandriva 1 05-28-2005 03:13 PM
GRUB config file me23 Linux - Newbie 3 07-17-2003 01:02 PM
GRUB. Which config file do I modify? correro Linux - General 14 03-18-2003 11:11 AM

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

All times are GMT -5. The time now is 04: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration