recover the lilo bootloader redhat linux 7.1 using knoppix

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.

  1. Boot from any Live linux cd such as knoppix 
  2. You may not be needing GUI ( start knoppix with runlevel 1 or 2 ) use boot: knoppix 1
  3. use fdisk -l to get the list of partitions.
  4. mount the / partiton. (I found whole the linux on one partition). use “mount /dev/hda4 /mnt/hda4″
  5. chroot /mnt/hda4
  6. lilo -C /etc/lilo.conf
  7. 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.

About anuj

Don't go for looks; they can deceive. Don't go for wealth; even that fades away. Go for someone who makes you smile because it takes only a smile to make a dark day seem bright.
This entry was posted in Linux. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>