Share your knowledge at the LQ Wiki.
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 04-07-2005, 07:54 PM   #1
Registered: Apr 2004
Posts: 131

Rep: Reputation: 15
Equivalent of this lilo conf to grub?

Hello I'm trying to dual boot Gentoo with Win XP. I can't get it to work on grub but I was succesful in LILO. Here's the scenario, Win XP is on my first drive (/dev/hda) and linux is on my seconf (/dev/hdb)

here's the complete layout:
/dev/hda1 windows

/dev/hdb1 /boot
/dev/hdb2 swap
/dev/hdb3 /

In grub I did this:

1. Wrote the appropriate grub.conf

default 0
timeout 30

title=Gentoo Linux 2.6.11-r3
root (hd1,0)
kernel /kernel-2.6.11-gentoo-r3 root=/dev/hdb3

title=Windows XP
rootnoverify (hd0,1)
chainloader +1
2. in grub prompt:
root (hd1,0)
setup (hd1) //install it on mbr of second drive


When I do this I can't boot into windows

On lilo however having just this lilo.conf works perfect!

root=/dev/hdb             # Install LILO in the MBR
prompt                    # Give the user the chance to select another section
timeout=50                # Wait 5 (five) seconds before booting the default 
default=gentoo            # When the timeout has passed, boot the "gentoo" 

  label=gentoo            # Name we give to this section
  read-only               # Start with a read-only root. Do not alter!
  root=/dev/hdb3          # Location of the root filesystem

Old 04-07-2005, 08:23 PM   #2
Registered: Dec 2004
Distribution: gentoo
Posts: 190

Rep: Reputation: 30
Your grub line:
rootnoverify (hd0,1)
Should read:
rootnoverify (hd0,0)
The partition output starts counting at "1". hda1, hda2, etc. While the grub numbers start counting at 0. (hd0,0), (hd0,1), (hd0,2), etc.
Old 04-07-2005, 08:23 PM   #3
Gentoo Developer
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
try rootnoverify (hd0,0)


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
the "default" ( as we have in grub.conf ) option of lilo.conf ??? b0nd Linux - Newbie 4 09-14-2005 05:51 AM
Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix. SonicGT Debian 2 08-21-2005 01:15 PM
lilo.conf and lilo.conf.anaconda difference blackzone Linux - General 1 07-06-2004 03:15 AM
create lilo.conf or grub.conf through commands newpenguin Linux - Software 1 11-28-2003 08:22 PM
lilo.conf and grub.conf no read access shanenin Linux - Software 1 10-02-2003 03:53 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:53 PM.

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