I've had Yggdrasil fall-94 Plug-and-Play Linux running on a P90
machine smoothly for more than 6 months. I've got LILO installed
on the hard disk (540MB). The lilo.conf file is set-up to boot
linux (/dev/hda2) or, if interrupted in the boot line, msdos (/dev/hda1).
I normally boot linux from the HD and DOS from a floppy, though.
The other day, my son turned off the system while looping in a DOS game
and damged LILO (how is it possible from DOS?). He claimed he booted DOS from
the hard drive (LILO boot line) because the game would not run (lack of
enough memory) if booted from the floppy.
I've tried everything in "Running Linux", as well as in the
Yggdrasil documentation but could not manage to make
LILO run as before. It now reboots directly (and only) into DOS.
I've rebooted Linux using the Yggdrasil floppy and the CD (does not
reboot without the CD), mounted /dev/hda2 (Linux partition) and the files
appear to be undamaged (checked them with fsck).
The only hint of a problem is that, when running lilo
from /mnt/sbin (HD) or from /sbin (CD), I get the following error message:
open_bsect open /dev/sda: No such device
My lilo.conf does not use /dev/sda
Recopying lilo from the CD hasn't solved anything.
Here is my lilo.conf (disregard typos, it used to work nicely)
timeout = 100
prompt
install = /boot/boot.b
boot = /dev/hda2
vga = normal
ramdisk = 0
root = current
map = /boot/map
message = /boot/boot.message
image = /vmlinux
label = linux
other = /dev/hda1
table /dev/hda
label = msdos
other = /dev/hda2
unsafe
other = /dev/hda3
unsafe
other = /dev/hda4
unsafe
My hard drive is partioned as follows:
hda1: DOS approx. 100 MB (active)
hda2: Linux native approx. 400 MB
hda3: Swap space approx. 26 MB
If I deactivate the DOS partition LILO starts rebooting in
Linux, from the HD, but stops at
LIL-
indicating a mapping problem (I suspect because I toggled the activation flag).
Is there a way of recovering LILO without having to reinstall Linux?
I hate to back-up 350 MB and to patch up all initial problems.
Thanx in advance,
Sorin
P.S. Please also send e-mail when you reply to this post.