Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Booting new Kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
zirtik
n00b
n00b


Joined: 15 Apr 2011
Posts: 13

PostPosted: Fri Apr 15, 2011 3:03 pm    Post subject: Booting new Kernel Reply with quote

Hi,

I installed Gentoo using the genkernel utility and compiled a fat kernel that includes everything that the live cd contains. So far, I have no problems running Gentoo with this kernel and everything works just fine.

Yesterday, I compiled a light kernel based on my needs to increase the performance of my system and modified grub.conf as follows:

Code:

default 0
timeout 10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo 2.6.24-r5
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.36-gentoo-r8 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3
initrd /boot/initramfs-genkernel-x86-2.6.36-gentoo-r8

title Light Kernel
root (hd0,0)
kernel /boot/kernel-2.6.34-light2 root=/dev/sda3


as instructed in the Gentoo installation handbook. When I try to boot the system with the light kernel, I get a kernel panic error:

Root-NFS: no NFS server address
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "sda3" or unknown-block (2,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
Pid: 1, comm: swapper Not tainted 2.6.37-gentoo-r4 #2

I'm quite puzzled because I have nothing to do with NFS although I included NFS modules in the custom kernel to make sure it is not the issue.

What am I missing here? Is this a grub configuration problem or am I missing a module that must be in the kernel?

Thanks in advance.
Back to top
View user's profile Send private message
Jon Wilder
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2011
Posts: 114
Location: Greenville SC

PostPosted: Fri Apr 15, 2011 3:17 pm    Post subject: Reply with quote

Boot from the CD, mount your root and boot partitions to /mnt/gentoo and /mnt/gentoo/boot respectively, then try changing "root=/dev/sda3" to "root=/dev/hdg3" in /boot/grub/grub.conf. Also, change all of the "sda" entries in /etc/fstab to "hdg" as well.Try that configuration and see what happens when you try to boot to the kernel after making these changes. If that works you'll need to take a look at which SCSI/SATA drivers you compiled into your kernel.

If you're not chroot'ed you'll have to append the /mnt/gentoo to the beginning of those two file paths.
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Fri Apr 15, 2011 4:46 pm    Post subject: Reply with quote

I seriously doubt that changing to sda to hdg will do anything other than make thinks worse. It looks like you missed the driver for you hard drive. Check out http://kernel-seeds.bloodnoc.org/ for instructions on how to find it.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Fri Apr 15, 2011 4:51 pm    Post subject: Reply with quote

penguin swordmaster wrote:
I seriously doubt that changing to sda to hdg will do anything other than make thinks worse. It looks like you missed the driver for you hard drive. Check out http://kernel-seeds.bloodnoc.org/ for instructions on how to find it.


agreed
in fact, newer udev will not even create /dev/hd* device nodes. So this step is pointless (with older udev, it would have been useful at least as a troubleshooting step, but the fear there is that users say 'hey, that works', and never change it until things break down the road)

OP: see the links in my signature, make sure the driver for your hard disk controller is a built-in (e.g. *not* a module, so it should =y and not =m), make sure you've done the file system you use for root as a built-in, not a module. Also, when you're in menuconfig, hit the /forward slash to search, and type in 'CONFIG_IDE'. If you have this enabled, things will break. It should not be enabled at all, even if you use an IDE hard drive. All of the new, correct IDE drivers, are now labeled as PATA drivers, and can be found beneath CONFIG_ATA (if you search for this, it SHOULD be enabled, and this is the only entry from which you should select any HDD drivers)
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23091

PostPosted: Sat Apr 16, 2011 5:09 am    Post subject: Re: Booting new Kernel Reply with quote

zirtik wrote:
I'm quite puzzled because I have nothing to do with NFS although I included NFS modules in the custom kernel to make sure it is not the issue.
If you have support for root on NFS and the kernel is unable to mount root from the hard drive, then it will try various other ways to get a root filesystem. In this case, the failure to mount an NFS root is expected, since that is not how you intend to provide a root filesystem.
Back to top
View user's profile Send private message
zirtik
n00b
n00b


Joined: 15 Apr 2011
Posts: 13

PostPosted: Tue Apr 19, 2011 6:39 pm    Post subject: Reply with quote

Thank you all for the replies. I figured I was missing the SATA drives for my hard drive. I included them in the kernel and successfully booted gentoo with my new kernel.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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