Link to home
Start Free TrialLog in
Avatar of Jorpho
Jorpho

asked on

Uninstalling LILO

I am quite disappointed that Mandrake Linux setup didn't give me the option of not installing a bootloader (unlike Red Hat).

Is the best way to get rid of LILO fdisk /mbr, or is there a better way?
Avatar of mlinford
mlinford

You looking to install something else like grub?
Avatar of Jorpho

ASKER

No, I just find Lilo to be too intrusive.  I really don't mind using a bootdisk when I want to run Mandrake.

(There's no other way to boot off of logical partitions, is there?)
Well I assume then that you are otherwise loading windows?
If that is the case, fixmbr is most likely the best path, if you trust your MBR to windows.

Personally, I dont trust windows, nor do I *ever* let it mess with my mbr.  I wont let it touch my partitions except when it initially installs (there is a reason why people recomend installing windows first.  linux is good at spoting other os's on other partitions.  Windows is not.  Its quite good at messing things up).  

I would remove the linux partition from LILO (leaving the windows partition only) and then set the wait time to zero so it quickly loads into windows.

All of this can be done very easily by editing hte lilo.conf file in /etc/lilo.conf.  Then run lilo and it should add the windows partition only and you're set.  I think there is also a config program (liloconfig) that you can load, although im not sure if thats in mandrake.

If someday you give up windows you can then change it back.

If for some reason you decide that you don't want LILO anymore then boot up to a windows boot floppy or the like and run the command 'FDISK /MBR' and your MBR will be 'fixed' to boot to windows.
windows xp has the recovery console (when you boot from the insall cd).

This console has a function called fixmbr which has saved me many times.  I also disagree that I would rather not have mandrake not install the bootloader.  I usually switch hardrive order in the bios or use the bootdisk.
Avatar of Jorpho

ASKER

Unfortunately, I do not have Windows XP.  

Perhaps someone can suggest a nice, quick Windows MBR manager of some sort?  It does occur to me that it is convenient to be able to boot from logical partitions.
If you don't have XP the best way that I know of to get rid of LILO is fdisk /mbr.  You might look through the boot managers here:
http://www.tucows.com/boot95_default.html 
and see if there are any to your liking.
Avatar of Jorpho

ASKER

Actually, those are all shareware.

By "MBR manager", I mean, is there a utility out there that can save and restore the MBR to and from files on the hard drive?
The only thing that I know of that would be capable of doing something like that is the linux utility dd.  dd can be used to make raw images of disks and individual sectors.  If you wanted to copy your mbr into a file you should try something like 'dd if=/dev/hda of=my_mbr bs=512 count=1'.  This should copy the first 512 bytes of /dev/hda (your mbr) to the files my_mbr.  If you wanted to write that back to the mbr you would use 'dd if=my_mbr of=/dev/hda bs=512 seek=0'.  Be very very very very very careful with this as it is quite possible that you could totally destroy your mbr (or other data) in the process (you could use fdisk /mbr if necessary, but I wouldn't want to rely on that).  I have not actually tested this but it is theoretically valid, again be careful.
ASKER CERTIFIED SOLUTION
Avatar of Gns
Gns

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
.... and AFAIK ntldr (still) needs read this from a file... Look for the Linux+NT-Loader mini-HOWTO on http://www.tldp.org ...

-- Glenn