This is really tricky.
First thing is to reinstall lilo, with one only option, meaning it would launch directly into linux.
Secondly you will have to get the first 512kb of data from your masterbootrecord, assuming this is where you installed lilo. This is done like this:
Code:
dd if=/dev/hda of=/bootsect.lnx bs=512 count=1
In this example I assume that lilo is installed on /dev/hda.
This creates the file bootsect.lnx in the root of your filesystem.
You need to copy this file into your C: drive, through a floppy or whatever.
Then you need to edit C:\boot.ini
My file looks like this:
Code:
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professional" /fastdetect
In the bottom of this file add the following:
Code:
C:\BOOTSECT.LNX="Linux"
Then you can safely remove lilo, and now be able to access linux from your windows boot loader.