LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


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

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


hi,

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, 05:01 AM   #2
SlackDaemon
Member
 
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 05:06 AM.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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