Restoring boot loader after windows installation
If you install Windows on a computer that has Linux and the (Grub) bootloader already installed, you will see that the Linux bootloader has been overwritten during the Windows installation process. To recover, do:
- Boot from your favourite Linux rescue CD / Knoppix distribution/ Other Linux live CD
- If you forgot your harddisk lay-out, do
fdisk /dev/hda and do '
p', to print the partition table. Exit with '
the boot partition to be on
and the root on
. Of course, your
may be located on your root partition too, in which case you just leave out the associated steps below.
- Create a mountpoint, let's say
- Mount your partition:
mount /dev/hda6 /mnt/root.
- Change root
chroot /mnt/root. If you have
/boot on a separate partition, do
mount /dev/hda7 /boot
That should be all!
03:40PM May 27, 2007
by Zeger Hendrikse in Linux |