PDA

View Full Version : lilo problem



tw
09-08-2004, 08:25 PM
I just got a new computer, and partitioned hda1 for windows, hda2 for linux. I installed debian on hda2 (which installed lilo and created a lilo.conf that boots directly into it). I then installed windows xp pro on hda1. After I installed windows it boots directly into windows. I would like to set lilo up so I can choose between them.

I booted into the cd and typed lilo,
It asks me to edit the /etc/lilo.conf, and ive know idea what to put there.
There is already a lilo.conf in hda2, so I added:

other=/dev/hda2
label=Windows

at the end and left the rest unchanged. I then ran:

lilo -C /mnt/hda2/etc/lilo.conf

And it says:

Fatal: /boot/map~ Read only file system.

I would try using some more options on lilo, but I really dont want to mess up anything. Can anyone give me some easy to follow instructions to set lilo up after booting from the knoppix cd? Im real confused by it and I cant find a tutorial anywhere.

UnderScore
09-09-2004, 02:46 AM
Check out the lilo manpage. It shows that the -r root-directory argument makes lilo chroot to the directory specified. What is happening is that lilo is trying to write to the knoppix CDR which is the boot device. The CDR is showing the root / , /boot & /etc as read-only. By using the -r option, you can tell it to ignore the existing / off the CD and use /mnt/hda2 as the new root.
I hope this helps.
James

pulsar
09-09-2004, 09:25 AM
The easiest way to configure a dual boot system is to start with the install of WinXP and Knoppix after that (in my opinion). This way you automatically obtain the option in lilo for booting one of the two operating systems. No configuring of lilo is needed this way (remember it when you have to set a dual boot again in future).

shah
09-09-2004, 09:41 AM
How to booting linux using ntloader:
http://www.prosig.com/protor/kbase/NT-Linux-boot.html
:D

baldyeti
09-09-2004, 10:51 AM
other=/dev/hda2
label=Windows

at the end and left the rest unchanged. I then ran:

lilo -C /mnt/hda2/etc/lilo.conf

That's inconsistent, since you've told us that hda1 holds windows. Boot with "knoppix 2 noswap", "mount /mnt/hda2", "mcedit /mnt/hda2/lilo.conf", make sure you specify hda1 in the "other" section for windows, "lilo -v -r /mnt/hda2". Pay attention to possible error messages, then run cfdisk and make sure hda2 is the (only) partition marked active/bootable. On reboot lilo will have two entries for linux and windows.

The alternative, as shah suggested, is to copy your hda2 boot sector and add an entry for it to c:\boot.ini.