Click to See Complete Forum and Search --> : Windows98 overwote LILO
Kevin
04-02-2000, 12:04 AM
I had windows98 and Redhat linux 6.1 running in harmony for a while but then i had to reinstall windows98 and it overwrote LILO and now i dont know how to get back into linux and get LILO back, someone help!
Thanks
geekd
04-03-2000, 03:18 AM
did you make an emergency boot disk when you installed red hat?
just boot off of it, and run (as root) /sbin/lilo and you should be good...
-geekd
furrycat
04-03-2000, 04:26 AM
Boot from the RedHat CD and choose "expert" install. When asked, say you'd like to upgrade your existing system. Switch to virtual terminal 4, or is it 2, I forget (which you might not be able to do until you've chosen your keyboard and install media settings) where you'll have a shell.
Mount your root partition (let's say it's on /dev/hdb1 for the sake of argument) on /mnt and if necessary your /usr partition (in /mnt/usr).
mount /dev/hdb1 /mnt
mount /dev/hdb6 /mnt/usr
Then you can change the root directory, as it were, to /mnt viz:
/mnt/usr/sbin/chroot /mnt /bin/bash
You now have a shell on your root partition, so you can do
/sbin/lilo
and you're back in business.
Notes:
1) you could just do it in one step:
/mnt/usr/sbin/chroot /mnt /sbin/lilo
2) RedHat please note: chroot should be on the root partition. chroot should be on the install disk (or CD). chroot should be statically linked. On RedHat it is none of those things.
Oops, I forgot: make sure you unmount your partitions before rebooting. Exit the shell and then:
umount /mnt/usr
umount /mnt
reboot
[This message has been edited by furrycat (edited 04-03-2000).]
[This message has been edited by furrycat (edited 09-17-2000).]