View Full Version : lilo wont install to harddisk

06-15-2003, 08:19 AM
I have both windows XP (hda1) and Linux (hda5) running on my laptop. I would like to install lilo on hda5 and use NT loader to boot into either OS. I have boot of the laptop using Knoppix CD, however when I try to install lilo onto /dev/hda5, I have receive the following error:

Fatal: create /boot/map~: Read-only file system

I have search through the forum along with other site to no avail. Any help would be appreciated.

P.S. I have mounted the file system and have no problem read/write to it.

mount /dev/hda5 /mnt/hda5



Thanks in advance

06-16-2003, 03:32 AM
A little more information on my progress so far. I have created:

Run the following command:

lilo -v -r /mnt/hda5

NOW, I have received the following error:

Fatal: raid_setup: stat("/dev/hda5")

Not sure what this error is referring to, I have no raid setup on the laptop. It just a simple single drive with two partion.

Anyone with any suggestion?

Ryan White
07-02-2003, 09:49 PM
I had the exact same problem.

It turned out to be that my lilo.conf was munged and didn't have a initrd option in it.

What I did is add:
to my /vmlinuz block of my lilo.conf.

ALSO when I was trying to fix my lilo.conf from a debian boot disk I read there was some problem with running lilo in chroot.

So I mounted the broken partitions to /target and did a chroot to /target and ran lilo and it fixed everything.

Hopefully this will help someone!!