Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installing LILO
How do I go about installing lilo to another partition after it has already been installed in /dev/hda I uninstalled it using lilo -u /dev/hda I am trying to set my computer up to boot linux through the windows boot loader so I need to get lilo on /dev/hdb5. any idea how I go about doing this?

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:



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:

[boot loader]
[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:




Then you can safely remove lilo, and now be able to access linux from your windows boot loader.


Forum Jump:

Users browsing this thread: 1 Guest(s)