Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-08-2005, 07:05 AM   #1
Registered: Oct 2001
Location: Shrewsbury, England
Posts: 71

Rep: Reputation: 15
grub and lilo on MBR with Windows xp

Hello All,

I've carefully read a lot of threads about dual booting and the MBR on this forum and still haven't quite got the idea.

I have Windows XP on my first partition and Libranet on the second. Libranet uses Grub amd when I boot up my computer it gives me a choice between the two OS's.

I now want to install Vector on a third partition but Vector uses Lilo. How do I install Vector so as I don't damage the other two? Where do I place Lilo? Can I get a choice of the three OS's on boot-up?

Old 11-08-2005, 08:19 AM   #2
Senior Member
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
LILO and Grub canīt be installed in the MBR parallel.
You should prefer Grub.
Just add the necessary information in /boot/grub/menu.lst to boot Vector as a third OS.
Old 11-08-2005, 11:00 AM   #3
Registered: Oct 2001
Location: Shrewsbury, England
Posts: 71

Original Poster
Rep: Reputation: 15

Thanks for the info. How do I do what you suggest? Do I open a terminal and enter the command before I try to install Vector? Or do it in the middle?
Old 11-08-2005, 04:45 PM   #4
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Install Vector and install lilo to the root partition of Vector; not to the MBR. Once installation is complete, edit /etc/fstab to add the device and mount point for the other Linux OS. Save the file, then mount that partition. Open a terminal window and cd to /mnt/point/boot/grub (where /mnt/point is the mount point you've created) and edit menu.lst ( or /etc/grub.conf for RedHat based distros). The example given below will guide you in making the proper entries for grub to pass the boot process to lilo.

When I installed Knoppix onto hard drive, I had the same problem. My main OS is SuSE (which uses grub), but Knoppix uses lilo. I had quite a time figuring out how to get grub to boot Knoppix.

This is from my /boot/grub/menu.lst; my solution:

title KNOPPIX 3.8
root (hd0,0)
chainloader +1

where (hd0,0) is the grub designation for hda1 (where Knoppix is installed). Chainloader +1 passes the boot process off to lilo to boot Knoppix.

Treat it as you would trying to boot xp. One bootloader starts the process, then hands off to the next bootloader.

Last edited by bigrigdriver; 11-08-2005 at 04:54 PM.
Old 11-09-2005, 01:36 AM   #5
Registered: Oct 2001
Location: Shrewsbury, England
Posts: 71

Original Poster
Rep: Reputation: 15
Hello bigrigdriver,

Thanks for a very detailed reply. I'll give that a try tomorrow and let you know how I get on.

Best wishes,

Old 11-09-2005, 07:13 AM   #6
Registered: Apr 2005
Location: UK
Distribution: Arch Linux 64
Posts: 76

Rep: Reputation: 16
the other option is during installation, it should give you the option to not install lilo -- take that. then when you re-boot, boot into linspire and edit /boot/grub/menu.lst and tell it to boot the vector linux directly.
I added slamd64(slack-based) to my ubuntu(debian based) installation like so:

title Slamd64
root (hd0,4)
kernel /boot/vmlinuz root=/dev/hda5 ro quiet

This is assuming that the vector linux root is on /dev/hda5.

remember; the root (0,4) is the way that grub sees your partitions so it would be:

hda1 = 0,0
hda2 = 0,1
hda3 = 0,2
hda4 = 0,3
hda5 = 0,4

and so on.

a second hard disk mounted as /dev/hdb is recognised in grub with a 1 instead of the zero first.
Old 11-18-2005, 09:57 PM   #7
Registered: Jul 2005
Location: China
Distribution: Mandriva
Posts: 84

Rep: Reputation: 15
GRUB and LILO always conflict with Windows. And GNU GRUB is not so robust, causing many problems during boot.

So try GRUB for DOS please. It is a cross-platform boot loader based on GNU GRUB. The GRUB.EXE can be started from DOS/Win9x; and GRLDR can be started from BOOT.INI of Windows NT/2K/XP/2003; and even more, the GRUB.EXE can be started from LINUX via the KEXEC tool.

By using GRUB.EXE or GRLDR, you don't have to touch your MBR. It is the safest way coexisting with DOS/Windows.

You needn't install GRUB for DOS. Just run GRUB.EXE from DOS, or append a line of "C:\GRLDR=START GRUB" into your BOOT.INI(restart and select the "START GRUB" menu item), that will do.

Download GRUB for DOS here:

There is a fat12grldr.img file with the GRUB for DOS release. You can create a GRUB bootable floppy with this fat12grldr.img file.

Or, you can just copy GRUB.EXE to your DOS floppy and run GRUB.EXE to enter the GRUB environment.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Floppy Booting without Lilo or Grub MBR crazihouse Linux - Newbie 4 02-24-2005 01:12 AM
grub/lilo conflicts in mbr bandofmercy Linux - Newbie 5 09-25-2004 11:54 PM
lilo / grub in MBR? neilcpp Slackware 4 03-28-2004 10:26 AM
restore mbr (in lilo and grub) abs Slackware 5 02-07-2004 02:39 PM
Does lilo/grub have to be in the MBR? wincen Linux - General 9 06-20-2002 07:32 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:49 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration