Dual booting linux with some other OS may (some day) want to remove the other OS than linux and find it difficult that How do I get bachk the grub loader... so here comes the solution. ....
I chose GRUB here as now a days it's very popular and powerful too.
Boot into the rescue mode using install CD1 by typing "linux rescue" at the boot prompt or chose "Install Rescue mode" for new versions of linux. When it asks you if you want it to find your installation and mount it, let it by selecting "Continue".
Once you get to the sh prompt chroot into you installation with:
CODE
# chroot /mnt/sysimage
If the disk you boot from is /dev/hda then you should be able to reinstall grub with:
CODE
# grub-install /dev/hda
Just remember to exit the chroot'ed shell before you reboot. If you reboot by "Ctrl-Alt-Del" the installer will unmount your partitions. Although it probably wouldn't hurt to try to unmount as many as you can yourself with something like:
CODE
# umount /dev/hd?[1-9]*
Tuesday, July 29, 2008
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment