Click to See Complete Forum and Search --> : How to get rid of lilo bootloader...?


leibrockt
04-26-2002, 06:07 PM
I had linux for a while, but since I had modem and sound card problems, I deleted Linux. (I'm going to buy new cards in about a month...)

How do I get rid of the lilo bootloader?

All that I have now is Windows 98...

Thanks.

Linuxcool
04-26-2002, 06:21 PM
To remove lilo from the mbr, run the msdos command fdisk /mbr. You'll need a win98 emergency or win98 install floppy to do it.

leibrockt
04-26-2002, 08:02 PM
Hey, thanks it actually worked.

What does the command "fdisk /mbr" tell the computer to do? I've never heard of it before...

(I've been using computers about 12 years too.)
:cool:

2damncommon
04-26-2002, 10:52 PM
What does the command "fdisk /mbr" tell the computer to do?

It brainwashes your computer into believing that MS Windows XX is the one true OS.
Really.

Linuxcool
04-26-2002, 10:58 PM
You're welcome. :)

The /mbr option of the fdisk command restores the Master Boot Record of the hard drive. It's an undocumented option. The MBR contains the program that boots the OS's on the drive.

When lilo was installed, it wrote over the MBR. So, when you removed linux, the lilo boot code remained. You can restore the MBR using lilo, but you must do it before you remove linux. The command /sbin/lilo -u is supposed to restore the MBR from a copy it make of the MBR before it wrote over it. The MBR also contains the partition table and what's called the ' magic number '. Which is either ' 55AA ' or ' AA55 '. I've seen it both ways.

[ 26 April 2002: Message edited by: Linuxcool ]