LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices

Reply
 
Search this Thread
Old 05-19-2004, 08:04 PM   #1
Ahad
LQ Newbie
 
Registered: May 2004
Location: Arlington, TX
Distribution: trying out slackware, debian, redhat, gentoo, and mandrake
Posts: 13

Rep: Reputation: 0
Root drive not appending correctly in Gentoo/XP Dualboot


Hi, I'm dualbooting WinXP and Gentoo - I configured and compiled gentoo correctly (or so I believe.. I followed the handbook completely) and I can boot into Windows, but when I attempt to boot into gentoo, I get this wierd root drive error on the gentoo boot.

Apparently my grub.conf file isn't configured correctly. The error message I get when I (attempt) to boot is something toward the effect of
"Append correct root=" which I don't understand.

My partition scheme:
hda1 - WinXP (40GB)
hda2 - Linux Boot (32MB) - /mnt/gentoo/boot
hda3 - Linux Swap (1024MB)
hda4 - Gentoo Linux (60GB i think) - /mnt/gentoo

my grub.conf file:
default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux 2.6.5-r1
root (hd0,3)
kernel /kernel-2.6.5-gentoo-r1 root=/dev/hda4 vga=792
title=Windows XP
rootnoverify (hd0,0)
chainloader +1

Am I mounting my root incorrectly or do I need root= to be root="/dev/hda4" or something?

According to the handbook, that's exactly how it should be. My kernel's fine, my root's fine, everything I've checked against is correct. And I can boot into Windows, so that's always a plus.

Anyone have any ideas or past experience?
 
Old 05-19-2004, 09:25 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,530

Rep: Reputation: 178Reputation: 178
"splashimage=(hd0,0)/grub/splash.xpm.gz"

One problem is that you say that the splashimage is on your Windows partition. It is probably:

splashimage=(hd0,1)/grub/splash.xpm.gz

Although it is conceivable that it could be:

splashimage=(hd0,3)/grub/splash.xpm.gz

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Last edited by jailbait; 05-19-2004 at 09:26 PM.
 
Old 05-19-2004, 09:44 PM   #3
Ahad
LQ Newbie
 
Registered: May 2004
Location: Arlington, TX
Distribution: trying out slackware, debian, redhat, gentoo, and mandrake
Posts: 13

Original Poster
Rep: Reputation: 0
Oh, right, sorry, that was just a typo, it's (hd0,1) (my /boot partition)

But what's with the wierd "Append correct root=" message?

I'm going to try and boot it again and write down the error so I can be more specific.
 
Old 05-19-2004, 09:52 PM   #4
Ahad
LQ Newbie
 
Registered: May 2004
Location: Arlington, TX
Distribution: trying out slackware, debian, redhat, gentoo, and mandrake
Posts: 13

Original Poster
Rep: Reputation: 0
The specific error occurs after I select 'b' to boot the Gentoo Linux partition. It begins to compile/extract several screens of files, then comes across this particular message and stops:

Quote:
VFS: Cannot open root device "hda4" or hda4
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on hda4
 
Old 05-19-2004, 10:12 PM   #5
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,530

Rep: Reputation: 178Reputation: 178
You may need an initrd statement. Initrd is optional depending on how your kernel is set up. Look in your /boot directory for an initrd file. Here is your grub.conf with my initrd added:

default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux 2.6.5-r1
root (hd0,3)
kernel /kernel-2.6.5-gentoo-r1 root=/dev/hda4 vga=792
initrd /boot/initrd-2.4.22-1.2115.nptl.img
title=Windows XP
rootnoverify (hd0,0)
chainloader +1

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 05-19-2004, 10:31 PM   #6
Ahad
LQ Newbie
 
Registered: May 2004
Location: Arlington, TX
Distribution: trying out slackware, debian, redhat, gentoo, and mandrake
Posts: 13

Original Poster
Rep: Reputation: 0
I tried that just now and it didn't work - besides, I didn't use the genkern option, I customized my kernel.

I followed all the streamlines instructions though.

Does it matter that I'm using reiserFS?

I compiled it with support for it's utils, i dunno if that makes a diff or not.
 
Old 05-19-2004, 10:55 PM   #7
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,530

Rep: Reputation: 178Reputation: 178
"I tried that just now and it didn't work "

I am not sure what you mean. Do you have an initrd module in /boot? If so then you must use it. Or do you mean that you tried my initrd name? My initrd name will not work for you in any case.

"Does it matter that I'm using reiserFS?"

If you are not using initrd then you must compile the reiserFS driver as part of the kernel rather than as a loadable module. This is also true of the drivers for your disk model and your IDE chipset.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 05-19-2004, 11:15 PM   #8
Ahad
LQ Newbie
 
Registered: May 2004
Location: Arlington, TX
Distribution: trying out slackware, debian, redhat, gentoo, and mandrake
Posts: 13

Original Poster
Rep: Reputation: 0
Yes, I mean I tried a similar initrd scheme, modified to my kernel name, and it didn't work. I don't have the initrd module, that's why

And yes, I have reiserfs compiled with the kernel, so that _shouldn't_ be the problem, I was just wondering if I needed some special options because of it.
 
Old 05-20-2004, 09:59 PM   #9
Ahad
LQ Newbie
 
Registered: May 2004
Location: Arlington, TX
Distribution: trying out slackware, debian, redhat, gentoo, and mandrake
Posts: 13

Original Poster
Rep: Reputation: 0
Okay, I'm starting to think there's something wrong with either my install or my partition scheme because I deleted all my partitions (aside from windows) and re-created them and re-compiled and went through _every_ step again, following exactly the steps listed, and aside from switching to kernel 2.6 and using gentoo-dev-sources as my kernel compilation, I basically copied the handbook regarding installation.

I used ext2 for /boot and ext3 for /root (as per the handbook) and I still get the exact same error.

I switched to LILO and get the same error (so I know at least I'm consistent in my installs/config files) except the top line now says "VFS: Cannot open root device "304" or hda4" (I assume simply because LILO and GRUB handle device names differently)

What can this be about?

I go through _every_ menuconfig option and tailor it to my specific needs as well, so I know I didn't select something I don't have or not select something I needed.

EDIT:

Oh, and I switched by emerge -C so I think that's how you basically 'uninstall' in linux.

Here's my /etc/lilo.conf:
Code:
boot=/dev/hda
prompt
timeout=50
default=gentoo
vga=792

image=/boot/kernel-2.6.5-gentoo-r1
  label=gentoo
  read-only
  root=/dev/hda4
#append="vga=792"

other=/dev/hda1
  label=windows
I had to comment out the append part because it gave me a 'Fatal' error when I ran /sbin/lilo - something regarding how I couldn't have "vga=792" in a LITERAL - but I have that example directly from the handbook (?)

With LILO I got some other notice as well when I ran /sbin/lilo - something to the effect of how the partition scheme didn't match the one listed in /proc/partition - which I checked in nano and as far as I could tell everything was fine because the sizes matched (though I wouldn't be able to tell you anything since I don't understand too much of the file)

I had proc mounted to /mnt/gentoo/proc - what happened? :/

Last edited by Ahad; 05-20-2004 at 10:06 PM.
 
  


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
Slamd64 Xorg only works correctly as root niztec Linux - General 3 09-21-2005 09:45 PM
How to make Chinese characters display correctly in Gentoo? fossilet Linux - Distributions 4 10-31-2004 08:21 AM
dualboot for winxp and linux but diff hard drive lafarga Linux - Newbie 3 05-06-2004 05:30 AM
Dualboot Slackware and Gentoo darkmage Linux - General 3 08-09-2002 08:18 PM
How to perform appending backup on tape drive. Need urgent help LenkaNguyen Linux - Hardware 2 05-11-2002 08:16 AM


All times are GMT -5. The time now is 10:01 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