That explains why the boot procedure stops at the GRUB> prompt since your grub.conf was trashed. If you know how to create one, all you have to do is to boot to the Centos CD/DVD and at the stage when it's about to start installation, hit Ctrl-Alt-F2 to go to the alternative console and try to mount your / and /boot partitions. This way, you can use vim to create a correct grub.conf. E.g., at the shell prompt of the alternative console, do (assuming that your /boot is on /dev/sdb1 and / is on /dev/sdb3),
mkdir foo
mount /dev/sdb3 /foo
mount /dev/sdb1 /foo/boot
vi /foo/boot/grub/grub.conf # create a correct one here
/foo/sbin/grub grub>
root (hd0,0) grub>
setup (hd0) grub>
exit
umount /foo/boot
umount /foo Reboot. Let me know if you need help.
Good luck!
Shing-Shong
well, the 'cat (hd0,0)/grub/grub.conf' got me about 300 ? marks and that was it. i'll be googling all weekend long!
No comments:
Post a Comment