In new versions of linux grub( grand unified bootloader) works great. If your boot loader is corrupt or over written by dumb microsoft os there are many ways to recover e.g. using your linux boot media.
In case you don’t have any installation media, you can apply the following steps, i tried this method on redhat linux 7.1 of which I had no installation cd/dvd’s.
- Boot from any Live linux cd such as knoppix
- You may not be needing GUI ( start knoppix with runlevel 1 or 2 ) use boot: knoppix 1
- use fdisk -l to get the list of partitions.
- mount the / partiton. (I found whole the linux on one partition). use “mount /dev/hda4 /mnt/hda4″
- chroot /mnt/hda4
- lilo -C /etc/lilo.conf
- lilo -i /dev/hda1
You should not get any error, do the man lilo, and man lilo.conf to resolve any issue/error.
after you are done, press ctrl +d , init 6, take out your knoppix media, you recoverd your old linux.
anuj.