View previous topic :: View next topic |
Author |
Message |
zirtik n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 15 Apr 2011 Posts: 13
|
Posted: Fri Apr 15, 2011 3:03 pm Post subject: Booting new Kernel |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Jon Wilder Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 04 Apr 2011 Posts: 114 Location: Greenville SC
|
Posted: Fri Apr 15, 2011 3:17 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
The Doctor Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
![](images/avatars/1476831409504021698f994.jpg)
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Fri Apr 15, 2011 4:46 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
cach0rr0 Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/14936637654ee19d6630f96.gif)
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Fri Apr 15, 2011 4:51 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 23091
|
Posted: Sat Apr 16, 2011 5:09 am Post subject: Re: Booting new Kernel |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
zirtik n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 15 Apr 2011 Posts: 13
|
Posted: Tue Apr 19, 2011 6:39 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|