Click to See Complete Forum and Search --> : corrupted MBR


cabbagedriver
04-15-2001, 01:23 AM
I have a Red Hat 7 installation with LILO located in the MBR. I've had problems booting this machine, actually it stopped booting entirely. When I tried to boot it, LILO got to about LI and stopped running. Fortunately, I have LILO on a floppy and am able to boot using that. Does anyone know a way to fix the corrupted MBR, reinstall LILO in there, all without messing up my current installation? Advice will be greatly appreciated.

prince_kenshi
04-15-2001, 01:29 AM
Go to a command prompt as root and type "lilo" (without the quotes). But I think when it only says Li, it's another problem.

Bills_a_bub
04-15-2001, 02:01 AM
cabbagedriver,

From /usr/share/doc/lilo/README:
LI The first stage boot loader was able to load the second stage boot
loader, but has failed to execute it. This can either be caused by a
geometry mismatch or by moving /boot/boot.b without running the map
installer.


Insert a line with the word 'lba32' in your lilo.conf file, prior to your drive images.

boot=/dev/hda2
map=/boot/map
install=/boot/boot.b
append="mem=128M"
prompt
timeout=50
message=/boot/message
lba32
default=linux

image=/boot/vmlinuz-2.4.1b
label=linux
read-only
root=/dev/hda2

image=/boot/vmlinuz-2.2.16-22
label=old
read-only
root=/dev/hda2

other=/dev/hda1
label=dos

HTH!

XxMaCaBrExX
04-15-2001, 02:48 AM
Set that hard drive to LBA moce in your BIOS. :D