LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-06-2011, 05:03 AM   #1
noony123
Member
 
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, 05:46 AM   #2
rizzy
Member
 
Registered: Mar 2004
Distribution: Debian
Posts: 285

Rep: Reputation: 69
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:
http://linux-sxs.org/administration/grub-cmd.html

Last edited by rizzy; 03-06-2011 at 05:51 AM.
 
1 members found this post helpful.
Old 03-07-2011, 06:42 AM   #3
bsat
Member
 
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.
 
  


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
[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 04:02 PM
how to edit grub.conf from grub shell during booting pashaikh Linux - Security 1 06-27-2006 05:01 AM
edit grub.conf Geminias Linux - Newbie 9 01-08-2006 09:41 AM
Edit the Grub.conf reply2vinay Linux - Hardware 1 07-26-2005 09:38 AM
How to edit grub.conf? zeroz52 Linux - Newbie 27 03-02-2005 12:58 PM

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

All times are GMT -5. The time now is 07:46 AM.

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