Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 06-27-2006, 05:04 AM   #1
LQ Newbie
Registered: Jun 2006
Posts: 1

Rep: Reputation: 0
how to edit grub.conf from grub shell during booting


I have commented the linux boot part in the grub.conf file and now during booting I am not able to see the option in the list.. So how do I boot linux now??? Is there any way to edit the grub.conf file from the grub shell(0.93)????

Thanking you..
Old 06-27-2006, 06:01 AM   #2
Registered: Mar 2006
Distribution: RedHat, Slackware, Experimenting with FreeBSD
Posts: 222

Rep: Reputation: 30
From the grub prompt you'll be able to specify the boot partition, kernel and initrd image to use and bootup Linux. However, you might find it simpler to use the linux install cd to boot to rescue mode and then edit the grub.conf file. The following instructions assume you are using a RedHat or Fedora distribution.

once you have booted with CD 1 of the installation media type the following at the prompt:

linux rescue

answer the questions that follow and specify 'Yes' when the prompt asks whether it should mount the linux installation under /mnt/sysimage.

When you are presented with the shell prompt simply undo the changes you made to grub.conf:

vi /mnt/sysimage/boot/grub/grub.conf

when your finished type 'exit' to reboot.

Last edited by SlackDaemon; 06-27-2006 at 06:06 AM.


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
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
[SOLVED] How to edit grub.conf filosophem Red Hat 4 02-07-2004 04:04 AM
Edit grub.conf NoviceW Linux - General 1 11-11-2003 06:51 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:51 PM.

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
Open Source Consulting | Domain Registration