Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installing LILO
#1
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?
Reply
#2

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.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)