Monday, July 16, 2012
grub fix
This is what I used to do a grub fix.
Boot up using RHEL4 disk.
Type: linux rescue
Hit OK.
Hit OK.
Clicked NO (for networking)
Hit OK.
At prompt, type: chroot /mnt/sysimage
At prompt, type: grub
At prompt, type: find /boot/grub/stage1 or find /grub/stage1
At prompt, type: root (results or previous step)
example: root (hd0,0)
At prompt, type: setup (hd0)
Note: use results from above, I used what mine was as in the example.
At prompt, type: quit
At prompt, type: exit
At prompt, type: exit
Machine will reboot and grub should be fixed. Make sure you remove disk during reboot.
Hope this is helpful.
Boot up using RHEL4 disk.
Type: linux rescue
Hit OK.
Hit OK.
Clicked NO (for networking)
Hit OK.
At prompt, type: chroot /mnt/sysimage
At prompt, type: grub
At prompt, type: find /boot/grub/stage1 or find /grub/stage1
At prompt, type: root (results or previous step)
example: root (hd0,0)
At prompt, type: setup (hd0)
Note: use results from above, I used what mine was as in the example.
At prompt, type: quit
At prompt, type: exit
At prompt, type: exit
Machine will reboot and grub should be fixed. Make sure you remove disk during reboot.
Hope this is helpful.