Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-11-2004, 09:01 AM   #1
LQ Newbie
Registered: Dec 2004
Posts: 2

Rep: Reputation: 0
GRUB/LILO won't boot Windows

Hey All,

I'm having trouble with my boot managers, LILO and GRUB. When booting with GRUB, I am offered options of loading Linux or DOS. When I select DOS, the system calls LILO. (Just of clarity let me state that another way -- when I request that GRUB load DOS, it responds by loading LILO). LILO then offers me the options of Linux or DOS. When I select DOS nothing happens.

If I select Linux in either LILO or GRUB, Linux loads successfully.

All worked fine until (out of a stupid desire to become knowledgable) I began to experiment with the LILO options of:

-b ---- Sets the boot device
-D ---- Boots a particular Kernel
-q ---- Queries the boot/map file for names
-s ---- A copy of the MBR or first sector is saved when LILO is rerun

I don't think that I actually got any of these options to work for I failed to offer the correct parameters. But clearly I did something.

The /etc/grub.config and /etc/lilo.conf file were not altered.

Incidentally prior to my screwing things up, if I selected DOS I would get Windows 98 -- which is what I wanted/expected. I was not attempting to run a dual boot Linux/DOS machine. (Well OK, I suppose I was, but I confess I was only pretending to like DOS so I could use Windows )

My lilo.config and grub.config are below:







title Red Hat (2.4.20-8)
root (hd0,1)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /initrd-2.4.20-8.img
title DOS
rootnoverify (hd0,0)
chainloader +1
Old 12-11-2004, 11:01 AM   #2
Registered: Mar 2004
Location: York, UK
Distribution: Ubuntu
Posts: 132

Rep: Reputation: 15
You don't want to use lilo and grub, you want to use one or the other. I'll assume that you want to use grub.

So, your symptoms suggest that you've got grub on /dev/hda, which is the first thing you're seeing when you're starting your computer. Fine, that's how it was when it was working. However, when you select DOS, grub is trying to "chainload" a bootloader from /dev/hda1 (the windows partition). Since lilo appears at this point, it seems you've installed lilo to /dev/hda1. That was a very silly thing to do.

I'd recommend that you try to get the DOS system working using "fdisk /mbr" from your DOS rescue disk or similar. Once that's done, try to rewrite the /dev/hda bootloader using grub-install from your linux rescue disks.
Old 12-11-2004, 11:23 AM   #3
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
well, i think lilo is installed in the bootblock of hda1 , and not in the mbr.
so doing a " fdisk /mbr " will overwrite grub, wich is in the mbr.

to solve it you can use lilo as the bootloader for win.
make your lilo.cong look like this :


boot=dev/hda1 <---- add a 1

other = /dev/hda1
label = windows
table = /dev/hda <-----add this line

then run : #lilo
you should see smth. like " added win "


Last edited by egag; 12-11-2004 at 11:26 AM.
Old 12-13-2004, 02:58 PM   #4
LQ Newbie
Registered: Dec 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks Guys,

Sorry I didn't try either of the solutions, but I'm such a newbie I truly didn't even know how to execute your suggested fixes.

As this was an academic exercise for me, I decide just to reinstall the whole mess (window and linux). I built the machine for linux learning solely, so there is/was no data of value on the machine.
Old 12-13-2004, 04:40 PM   #5
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
thanks for posting back, and i hope all works now.
on second thought i don't think my suggestion would have worked
( sorry )



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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
grub and lilo on MBR with Windows xp blotch Linux - General 6 11-18-2005 09:57 PM
problem using grub/lilo to boot windows with suse 9.1 jcasanue Linux - Distributions 5 07-14-2004 06:58 PM
Boot issues with GRUB and LILO evilregis Linux - General 1 05-16-2004 09:28 PM
no LILO, no GRUB, NO BOOT !!! mioche Linux - Newbie 4 08-25-2003 05:55 AM
can linux boot without lilo or grub? murshed Linux - General 13 06-01-2002 05:39 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration