-   Linux - General (
-   -   Changing Grub config at boot to prevent Kernel panic (

neelay1 04-12-2006 02:30 PM

Changing Grub config at boot to prevent Kernel panic
Hi all,
I need to change "sda" to "hda" in my grub conf file. This is because my hard drives are plain IDE and not SCSI. Since I have sda in by grub conf file, the kernel goes into panic mode and reboots after 60 secs when I try to start the machine.
In order to change "sda" to "hda", I boot the machine and hit "e" on the selected kernel. On doing so, I see the following lines-
root (hd0,0)
kernel /vmlinuz-2.4.27 ro root=/dev/sda3 vga=extended panic=30
I then select the second line and hit "e" to edit again. On the Grub Edit line, I change "sda" to "hda" and hit enter to go back to the previous screen. When I boot from this kernel, the changes are not saved and the kernel again goes into panic mode.
Any ideas on what I'm doing wrong here?


neelay1 04-12-2006 03:18 PM

Figured it out...
after making changes to the line, hit 'b' to boot directly from it. Then after the machine boots, goto /boot/grub/grub.conf and change "sda" to "hda".

XavierP 04-13-2006 03:13 PM

Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

All times are GMT -5. The time now is 08:33 PM.