Click to See Complete Forum and Search --> : LILO overwritten


Mike B Best
01-26-2002, 11:27 AM
I was using a dual boot system. I did a windows install and it overwrote lilo (sound familiar?). So not getting worried I pulled out my boot disk, which is corrupted, as it turns out. So not panicing I go to thr RH7.1 install CD. I then try "linux rescue", it says it has mounted my system on /mnt/sysimage. So then I tried going to the sysimage and installing lilo. But it needs a /etc/lilo.conf as when it mounted the path was changed, so I copy the file to /etc/lilo.conf from /mnt/sysimage/etc/lilo.conf and then it needs boot.b so I copy that one, then it says "don't know how to handle device 0x0100". This was probably a stupid thing to try, but as you probably now know I am a newbie.

I had installed the same version of linux on a friends PC, so I grabbed the boot disk and edited the syslinux.cfg file so that it looks to my boot partition (90% sure /dev/hda2), this didn't work either. This is again probably a stupid thing to try.

If anyone knows how I can re-install LILO or just get linux to boot. I would very much appreciate it.

Thanks

Mike Best

demian
01-26-2002, 11:40 AM
When in the rescue system try the following:

lilo -r /mnt/sysimage

This does a chroot to /mnt/sysimage before anything else happens. You might want to go through a test run (lilo -r /mnt/sysimage -t) to see what would happen before you actually install lilo.

Mike B Best
01-26-2002, 12:47 PM
This message is coming from a linux OS, thanks very much for the help demain.