View previous topic :: View next topic |
Author |
Message |
jstreed n00b
Joined: 15 Aug 2004 Posts: 3 Location: Atlanta, GA
|
Posted: Sun Aug 15, 2004 3:07 am Post subject: Grub Setup, kernel panic. |
|
|
I've almost got Gentoo 2004.2 up and running on my desktop. However, I'm running into this error upon booting the kernel. I know I have to be missing something simple here. Any help is greatly appreciated!
VFS: Cannot open root device "sda5" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on unknown-block(0,0)
Here's my fstab:
/dev/sda6 /boot ext2 defaults 1 2
/dev/sda5 / xfs noatime 0 1
/dev/sda7 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom auto noauto, user 0 0
/dev/fd0 /mnt/floppy auto noauto,user 0 0
Here's a copy of my grub.conf file:
default 1
timeout 15
splashimage=(hd0,5)/grub/splash.xpm.gz ( this works fine)
root (hd0,5)
kernel /kernel-2.6.7-gentoo root=/dev/sda5
#Dual boot information (booting windows works fine as well)
title=Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1
Thanks in advance,
jstreed |
|
Back to top |
|
|
Corona688 Veteran
Joined: 10 Jan 2004 Posts: 1204
|
Posted: Sun Aug 15, 2004 3:34 am Post subject: |
|
|
Have you got the driver for your hard drive controller compiled into the kernel? What is your hard drive controller? _________________ Petition for Better 64-bit ATI Drivers - Sign Here
http://www.petitiononline.com/atipet/petition.html |
|
Back to top |
|
|
jstreed n00b
Joined: 15 Aug 2004 Posts: 3 Location: Atlanta, GA
|
Posted: Sun Aug 15, 2004 4:46 am Post subject: |
|
|
I have the promise controller built into my motherboard. It's worked for every other version of Linux I've installed, and didn't have any problems when installing off the livecd. I'm pretty sure I selected promise support for the kernel, but I'll double check just in case. |
|
Back to top |
|
|
Corona688 Veteran
Joined: 10 Jan 2004 Posts: 1204
|
Posted: Sun Aug 15, 2004 5:34 pm Post subject: |
|
|
Remember, it has to be compiled right into the kernel [*], not must a module [M]. If it's a module, it needs to access the hard-drive to load the driver, kind of a catch-22. _________________ Petition for Better 64-bit ATI Drivers - Sign Here
http://www.petitiononline.com/atipet/petition.html |
|
Back to top |
|
|
get sirius Guru
Joined: 27 Apr 2002 Posts: 316 Location: Madison, WI
|
Posted: Sun Aug 15, 2004 11:28 pm Post subject: |
|
|
Did you copy your kernel to /boot as "kernel-2.6.7-gentoo," or as "bzImage"? In either case, your grub.conf is not saying where to find the kernel.
You need something like: root (hd0,5), kernel (hd0,5)/boot/kernel-2.6.7-gentoo root=/dev/sda5 [or substitute "bzImage" for "kernel-2.6.7-gentoo" as the case may be]. |
|
Back to top |
|
|
dlm1065 Tux's lil' helper
Joined: 18 Apr 2004 Posts: 103
|
Posted: Thu Aug 19, 2004 5:46 pm Post subject: Re: Grub Setup, kernel panic. |
|
|
jstreed wrote: | I've almost got Gentoo 2004.2 up and running on my desktop. However, I'm running into this error upon booting the kernel. I know I have to be missing something simple here. Any help is greatly appreciated!
VFS: Cannot open root device "sda5" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on unknown-block(0,0)
Here's my fstab:
/dev/sda6 /boot ext2 defaults 1 2
/dev/sda5 / xfs noatime 0 1
/dev/sda7 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom auto noauto, user 0 0
/dev/fd0 /mnt/floppy auto noauto,user 0 0
Here's a copy of my grub.conf file:
default 1
timeout 15
splashimage=(hd0,5)/grub/splash.xpm.gz ( this works fine)
root (hd0,5)
kernel /kernel-2.6.7-gentoo root=/dev/sda5
#Dual boot information (booting windows works fine as well)
title=Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1
Thanks in advance,
jstreed |
I posted here about a kernel panic. I
https://forums.gentoo.org/viewtopic.php?t=204856
In my edit notice I talk about one version that the device naming to sda didn't happen I wonder if you aren't running into that here. I definitely know that version was very screwed up so I immediately ended up pulling done another stage 1 and redoing it.
I am not possitive which release it was but I know which it wasn't it wasn't 2.6.8 nor was it 2.6.7-r11.
Note I thnk 2.6.8 uses a newer gcc than the others so it is really well worth having it as to me it seemed to crank out things a little quicker |
|
Back to top |
|
|
greedyfly n00b
Joined: 22 Aug 2004 Posts: 54
|
Posted: Sun Aug 22, 2004 11:17 am Post subject: |
|
|
i don't know why it matters, but it did for me. Make sure msdos fs is compiled into your kernel. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|