Jump to content

Installing LILO


Guest Dasoldier

Recommended Posts

Guest Dasoldier

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?

Link to post
Share on other sites
  • 3 weeks later...
Guest Allan Eising

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]
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:

 

C:\BOOTSECT.LNX="Linux"

 

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

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...