PDA

View Full Version : lilo wont install to harddisk



dee_tt
06-15-2003, 09:19 AM
Hi,
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

lilo.conf

boot=/dev/hda5
dealy=10
ramdisk=0
root=/dev/hda5
image=vmlinuz
initrd=initrd
label=linux

Thanks in advance

dee_tt
06-16-2003, 04:32 AM
A little more information on my progress so far. I have created:
/mnt/hda5/etc/lilo.conf
/mnt/hda5/dev
/mnt/hda5/boot

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, 10: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:
initrd=/initrd.img
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!!