LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   reinstalling lilo bootloader (https://www.linuxquestions.org/questions/linux-newbie-8/reinstalling-lilo-bootloader-212559/)

free kevin 08-02-2004 02:22 PM

reinstalling lilo bootloader
 
I have Mandrake 10.0 already installed and I'm planing to install windows xp on another partition. As good as I know windows, its bootloader will overwrite mbr and it won't give me a chance to load linux. I want to use lilo as my default bootloader.

I know how to add windows to lilo config file, but I don't know how to reinstall lilo into mbr? :confused:

Can someone tell me how do I do that...

linuxlastslonge 08-02-2004 02:34 PM

before installing windows, make a boot disk so you can boot to your linux system. after installing windows, boot into your linux system and simply run lilo.


thanks it!


hope i could help!!!!!!!!!



:Pengy:

free kevin 08-02-2004 02:59 PM

One more question... how do you create a boot disk under linux?

linuxlastslonge 08-02-2004 03:13 PM

not a problem...... umm... ermm.... there are some .img files on your CD (at least with redhat there are). one is labeled bootfloppy.img

if there aren't any images on your cd, then you might have to use a "rescue disk" of some sort...... i believe you can enter rescue mode using your install cd. after entering rescue mode, you will want to do:

Code:

chroot /mnt/sysimage
but before you do anything to your linux system, try that out. if you can't get that work , and/or there are .img file's on the cd, here is how you make a boot floppy. insert a blank or unused floppy into your floppy drive.

enter the directory of the image file using a shell. then, as root, run the following command:

Code:

dd if=./bootfloppy.img of=/dev/fd0
then reboot and test your floppy. with linux, you do not need your floppy after booting, unlike D0S or Windowz. linux does what's called bootstrapping. that means it loads what's necessary to access the hdd then lets the kernel on the hdd bootup and take over.

if you need help or have any other questions, please ask! :)


hope i could help!!!!!!!!!!




:Pengy:

free kevin 08-02-2004 04:07 PM

Quote:

Originally posted by linuxlastslonge

if there aren't any images on your cd, then you might have to use a "rescue disk" of some sort...... i believe you can enter rescue mode using your install cd.
Thats it... there is already a tool to repair bootloader.

Thanks for help!!!

linuxlastslonge 08-02-2004 04:14 PM

not a problem!!! always glad to help. :)
i always enjoy providing professional help on my free time.





:Pengy:


All times are GMT -5. The time now is 03:24 AM.