LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-24-2004, 10:42 AM   #1
GoatKing
LQ Newbie
 
Registered: Nov 2003
Location: Rochester, NY
Distribution: Gentoo 1.4
Posts: 27

Rep: Reputation: 15
Dual booting Gentoo and XP using grub


Alright, when I boot my computer it stops at a prompt like this:

GRUB:

I installed WinXP on the primary master hard drive, and Gentoo on the primary slave hard drive. In the Gentoo installation, I decided to go with Grub as a boot loader, and shoved it into the MBR. When telling grub where to install and setup I ran into this, which is probably the problem:

grub> root (hd0,0)
Filesystem type unknown, partition type 0x7
grub> setup (hd0)
Error 17: Cannot mount selected partition

At this point, I figured I should try using grub as a secondary loader begining where Gentoo was installed. I previously had Red Hat 9 where Gentoo was installed, and used GRUB as the loader then, and it worked fine. I figured I'd get to the first (working) instance of grub that would refer to this one at bootup.

grub> root (hd1,0)
Filesystem type is ext2f3, partition type 0x83
grub> setup (hd1,2)
#checking and running blah everything looks successful

Using the Gentoo Live CD I can still get into my newly installed Gentoo kernel and modify boot sectors and loaders, so I still think the problem is fixable. To me, it seems that GRUB gets started when the MBR is consulted at bootup, but since it was never set up, it dies. Does anybody know why my MBR is not mountable?

Boot loaders aren't exactly my cup of tea, so if you have a solution, please walk me through it slowly.

Thanks in advance.

Last edited by GoatKing; 01-24-2004 at 10:46 AM.
 
Old 01-24-2004, 11:00 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
grub is not trying to mount the MBR... that's never possible, as it's not a filesystem... you've just blindly copied the comands in the docs haven't you

1) define the root partition for grub's configuration, i.e. your boot partition "root(hd1,0)" for hdb1 etc...

2) install to MBR "setup(hd0)"
 
Old 01-24-2004, 11:06 AM   #3
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
root (hd0,0) - this should be your /boot partition if you have one, if not it should be your root partition. You said you had Windows XP on your primary master so you're trying to install Grub on that - hd0,0 is the first partition on your first hard drive, and that's the one Grub fails to mount. Review your partition configuration and re-read the Gentoo docs on Grub.

Håkan
 
Old 01-25-2004, 11:48 AM   #4
GoatKing
LQ Newbie
 
Registered: Nov 2003
Location: Rochester, NY
Distribution: Gentoo 1.4
Posts: 27

Original Poster
Rep: Reputation: 15
uhhh

Alright, I reconfigured grub like you said, and I get the pretty splash screen, Gentoo seems to start fine, but booting to windows brings up an error:

root (hd0,0)
Filesystem type unknown, partition type 0x7
chainloader (hd0,1)+1
Error 22: No such partition

Press any key to continue...

Thanks for your help so far!!
 
Old 01-25-2004, 12:10 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
you probably want to use rootnoverify (hd0,0) if xp is on that partition. but why are you then changing to (hd0,1) ? that makes no sense.... just try changing that bit to "chainloader +1"
 
Old 01-25-2004, 01:59 PM   #6
GoatKing
LQ Newbie
 
Registered: Nov 2003
Location: Rochester, NY
Distribution: Gentoo 1.4
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks, the booting problem is fixed!

But now I have another, Gentoo related issue. I tried a different kernel source (ck-sources), but when I try to compile it, it dies in the middle with a compilation error. How should I fix this?

-emerge the source again?
-check out the C code myself?

It seems to me that compilation errors shouldn't happen when compiling kernel, what could cause that? Bad download?

Seriously though, thanks for your help, you saved me a lot of time!!!

Last edited by GoatKing; 01-25-2004 at 02:22 PM.
 
Old 01-25-2004, 07:04 PM   #7
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Although I run Gentoo (as of recently) I am not very familiar with the Gentoo-specific kernel sources. What error message do you get? And did you search the Gentoo forums for the error message? Most questions that usually arise have already been asked and answered there. The search function is really a blessing.

Håkan
 
Old 01-26-2004, 02:42 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
well yes post the actual error messages, we're not psychic. personally i'd say go with the gentoo-dev-sources for a 2.6.1 kernel.
 
  


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
Dual booting slackware and gentoo. landfill Linux - General 8 02-23-2005 05:00 PM
[Gentoo] Grub not booting ?? nr5 Linux - Newbie 3 01-15-2005 06:46 PM
Dual booting WindowsXP and Gentoo - HOW??? black hole sun General 5 08-09-2004 01:45 PM
LILO/GRUB for dual booting Gentoo and Debian. rmanocha Linux - Software 2 02-22-2004 01:23 PM
dual booting winxp/gentoo linux c0nfig Linux - General 2 08-08-2003 04:19 PM


All times are GMT -5. The time now is 10:18 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration