Click to See Complete Forum and Search --> : Lilo errors


prince_kenshi
03-30-2001, 03:26 PM
I can't seem to find any documentation talking about when /boot is not a seperate partition. I have been using a boot disk all this time and I'm trying to switch to Lilo. I have changed the file as I like but when I run lilo, it gives me a fatal error saying /boot is a directory. Well I already knew that and don't see what the problem is. Here's my lilo.conf file:


root=/dev/hdb4
boot=/boot
# This file was created automatically by liloconfig
#
# run dpkg-reconfigure lilo if you want to change the way this operates
install=/boot/boot-menu.b
delay=50
vga=normal
lba32
read-only
image=/boot/bzImage
label=linux
image=/boot/vmlinuz-2.2.18pre21
label=old_linux
other=/dev/hda1
label=windows
table=/dev/hda

bdg1983
03-30-2001, 03:53 PM
Seems to be 'boot=/boot'.

I think it should be 'boot=/dev/hda'.

Linuxcool
03-30-2001, 06:49 PM
Yep, mdwatts is right that the ' boot = ' line should say ' boot = /dev/hda '. The ' boot = ' line tells lilo where to install its own loader. After you edit the line, run lilo to update its files.

prince_kenshi
03-30-2001, 07:22 PM
Ah, I see. I thought boot pointed to where my /boot directory was, in this case a folder (rather than a seperate partition). I've changed it and it seems to work now. I can't reset to check it though until my download finishes in a few hours. Arigato.

bdl
03-30-2001, 08:45 PM
the 'boot' line has to point to either the master drive (e.g. /dev/hda) or the partition you want to install LILO on. For example, if you use the line


boot=/dev/hda

...LILO will install itself to the MBR on /dev/hda, therefore controlling the boot process on that drive.

If you use the line...

boot=/dev/hda1 #where hda1 is your '/' (root) or '/boot' partition

...it will install on that partition only, thereby giving control over to the other OS (if any on your system); best to do this with BSD or NT / Win2K systems, where you want the other bootloaders to load Linux. Dont forget to rerun 'lilo'...


Luck...