-   Linux - Security (
-   -   how to edit grub.conf from grub shell during booting (

pashaikh 06-27-2006 05:04 AM

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..

SlackDaemon 06-27-2006 06:01 AM

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.

All times are GMT -5. The time now is 10:32 AM.