Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-06-2011, 06:03 AM   #1
Registered: Oct 2010
Posts: 167

Rep: Reputation: 0
Edit grub.conf from grub shell

Hi all.

Under grub.conf i commented out the last line that said initrd=....

Now when i reboot, it gaves me error of kernel panic. I am doing this for my self understanding and on vmware with centos 5. I just want to know, how can i edit the grub.conf file from grub shell ?

I know how to rescue my machine using live/rescue cd, i just want to know how to edit the grub file from grub shell.

Pls guide me
Old 03-06-2011, 06:46 AM   #2
Registered: Mar 2004
Distribution: Debian
Posts: 283

Rep: Reputation: 68
you can't edit text files from grub shell. There is no text editor in grub to do it. Use live CD for that.The commands used in grub shell can be found here:

Last edited by rizzy; 03-06-2011 at 06:51 AM.
1 members found this post helpful.
Old 03-07-2011, 07:42 AM   #3
Registered: Feb 2009
Posts: 347

Rep: Reputation: 72
I am not sure if this will work may be you can try it out.
You can pass the path to initrd on the command line and try it out. i.e.
when you reach the grub menu press e, move to the line having kernel
press e and at the end add initrd=/boot/initrd.img-"version".

This is just an idea, I have not tried this, may be some one can confirm if this will work.


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
[SOLVED] How come I can't edit /boot/grub/grub.conf or /boot/grub/menu.lst in Fedora 14? trien27 Fedora 4 01-22-2011 05:02 PM
how to edit grub.conf from grub shell during booting pashaikh Linux - Security 1 06-27-2006 06:01 AM
edit grub.conf Geminias Linux - Newbie 9 01-08-2006 10:41 AM
Edit the Grub.conf reply2vinay Linux - Hardware 1 07-26-2005 10:38 AM
How to edit grub.conf? zeroz52 Linux - Newbie 27 03-02-2005 01:58 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration