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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-24-2004, 10:42 AM
|
#1
|
LQ Newbie
Registered: Nov 2003
Location: Rochester, NY
Distribution: Gentoo 1.4
Posts: 27
Rep:
|
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.
|
|
|
01-24-2004, 11:00 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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)"
|
|
|
01-24-2004, 11:06 AM
|
#3
|
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032
Rep:
|
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
|
|
|
01-25-2004, 11:48 AM
|
#4
|
LQ Newbie
Registered: Nov 2003
Location: Rochester, NY
Distribution: Gentoo 1.4
Posts: 27
Original Poster
Rep:
|
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!!
|
|
|
01-25-2004, 12:10 PM
|
#5
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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"
|
|
|
01-25-2004, 01:59 PM
|
#6
|
LQ Newbie
Registered: Nov 2003
Location: Rochester, NY
Distribution: Gentoo 1.4
Posts: 27
Original Poster
Rep:
|
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.
|
|
|
01-25-2004, 07:04 PM
|
#7
|
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032
Rep:
|
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
|
|
|
01-26-2004, 02:42 AM
|
#8
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
All times are GMT -5. The time now is 09:29 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|