LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   installing lilo from a live cd on a working computer (http://www.linuxquestions.org/questions/slackware-14/installing-lilo-from-a-live-cd-on-a-working-computer-404660/)

j0ck 01-17-2006 05:58 PM

installing lilo from a live cd on a working computer
 
Hi I have a computer dual booted. xp (just because) and slackware. I and using 2.6.13 and thought for grins i would try 2.6.15. well, I renamed my good kernel and installed the new one. but, appearently I didnt change the lilo.conf file and when it booted it jsut drooled. :(
so I broke out my install cd and booted, mounted the drive and edited lilo.conf. then I went to run lilo and tried the -m opiton. and seemed to wipe lilo completely off my system. now I boot straight to xp like linux isn't installed. I know it is and I like the configuration I have and dont want to loose it. After spending time in the man page for lilo (with no success) and searching the internet and this forum. I have no other choice but to ask how I would do this.
I have had little success on here but I am ever hopeful that some day a problem of mine will be solved on here. unitll then..... well.....
thanks

steve@ez.net 01-17-2006 06:26 PM

I would get access to your Linux boot partition (either via BBC, Knoppix or a rescue CD) and install GRUB. Providing the MBR is locatable you can write a script (easy) and the machine will dual boot.

Another approach is to re-activate LILO. You can do this by accessing the boot partition (see above) and chrooting it after mounting. Then run '/sbin/lilo' at the command line. Exit the rescue mission and you should be able to boot normally to either OS.

tuubaaku 01-17-2006 06:29 PM

well, to get you started you'll probably need to chroot into your actual installation to install. I use grub, and I know that with it you can just chroot into your mounted installation and reinstall it to the mbr. not sure exactly what you have to do with lilo.

mdarby 01-17-2006 06:49 PM

yep, just chroot into the correct root partition, edit lilo, run /sbin/lilo, exit and reboot.

j0ck 01-17-2006 06:50 PM

awsome. the chroot worked. ty


All times are GMT -5. The time now is 12:15 PM.