LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-02-2004, 01:22 PM   #1
free kevin
LQ Newbie
 
Registered: Aug 2004
Location: Slovenia
Distribution: Mandrake 10.0
Posts: 4

Rep: Reputation: 0
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?

Can someone tell me how do I do that...
 
Old 08-02-2004, 01:34 PM   #2
linuxlastslonge
Member
 
Registered: Jun 2002
Location: Franklin, IN
Distribution: Debian, CentOS, Mac OS X
Posts: 158

Rep: Reputation: 30
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!!!!!!!!!



 
Old 08-02-2004, 01:59 PM   #3
free kevin
LQ Newbie
 
Registered: Aug 2004
Location: Slovenia
Distribution: Mandrake 10.0
Posts: 4

Original Poster
Rep: Reputation: 0
One more question... how do you create a boot disk under linux?
 
Old 08-02-2004, 02:13 PM   #4
linuxlastslonge
Member
 
Registered: Jun 2002
Location: Franklin, IN
Distribution: Debian, CentOS, Mac OS X
Posts: 158

Rep: Reputation: 30
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!!!!!!!!!!




 
Old 08-02-2004, 03:07 PM   #5
free kevin
LQ Newbie
 
Registered: Aug 2004
Location: Slovenia
Distribution: Mandrake 10.0
Posts: 4

Original Poster
Rep: Reputation: 0
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!!!

Last edited by free kevin; 08-02-2004 at 03:09 PM.
 
Old 08-02-2004, 03:14 PM   #6
linuxlastslonge
Member
 
Registered: Jun 2002
Location: Franklin, IN
Distribution: Debian, CentOS, Mac OS X
Posts: 158

Rep: Reputation: 30
Smile

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





 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows 2000 Bootloader vs. Mandriva LILO Bootloader Dregnan Mandriva 7 12-03-2007 09:55 PM
Reinstalling LILO? moosegoose Slackware 5 11-11-2005 02:35 PM
How can I disable the grub bootloader and enable the lilo bootloader? abefroman Linux - General 1 08-06-2005 08:53 AM
Reinstalling the bootloader evilmonkey Linux - Software 2 12-10-2004 12:13 PM
SuSE 9.0 Pro: Reinstalling the bootloader on MBR ihsus Linux - Newbie 10 03-25-2004 09:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration