LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 04-07-2005, 07:54 PM   #1
pablowablo
Member
 
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:
Code:
/dev/hda1 windows

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

In grub I did this:

1. Wrote the appropriate grub.conf

Code:
default 0
timeout 30
splashimage=(hd1,0)/grub/splash.xpm.gz

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)
makeactive
chainloader +1
2. in grub prompt:
root (hd1,0)
setup (hd1) //install it on mbr of second drive


[/code]

When I do this I can't boot into windows


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

Code:
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" 

image=/boot/kernel-2.6.11-gentoo-r3
  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


other=/dev/hda1
  label=windows
 
Old 04-07-2005, 08:23 PM   #2
visaris
Member
 
Registered: Dec 2004
Distribution: gentoo
Posts: 190

Rep: Reputation: 30
Your grub line:
Code:
rootnoverify (hd0,1)
Should read:
Code:
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
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

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


Reply


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


All times are GMT -5. The time now is 06:00 PM.

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