Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel-2.6.22-gentoo-r3 won't boot SOLVED!
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
Red Knuckles
n00b
n00b


Joined: 12 Jan 2007
Posts: 32
Location: Colorado, USA

PostPosted: Thu Aug 16, 2007 11:05 pm    Post subject: kernel-2.6.22-gentoo-r3 won't boot SOLVED! Reply with quote

I just did a kernel upgrade using genkernel and the new kernel won't boot. I THINK this is a kernel problem not a grub problem because the old kernel, installed and configured the same way with identical '/boot/grub/menu.lst' settings, still boots fine. Here's how I do a kernel upgrade:

Code:
# eix-sync
# emerge genkernel gentoo-sources
# eselect kernel list
# eselect kernel set x [where x=# of desired new kernel in list]
# zcat /proc/config.gz > /usr/src/linux/config
# genkernel --kernel-config=/usr/src/linux/config --menuconfig --bootloader=grub --gensplash=splash.xpm.gz all
# modules-rebuild rebuild


Then add 'vga=791 splash=verbose,theme:splash.xpm.gz CONSOLE=/dev/tty1 quiet' to newly created [by genkernel] entry in 'boot/grub/menu.lst'. This latest time [never happened before and I'm on my 3rd kernel update] when I reboot into the new kernel grub gives:

Booting 'Gentoo Linux (2.6.22-gentoo-r3)

root (hd0,0)
Filesystem is ext2fs, partition type 0x83
Kernel /boot/vmlinuz-2.6.22-gentoo-r3 root=/dev/hda3
Error 15: File not found


Here's '/boot/grub/menu.lst':

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

title=Gentoo Linux (2.6.22-gentoo-r3)
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-gentoo-r3 vga=791 splash=verbose,theme:splash.xpm.gz CONSOLE=/dev/tty1 quiet                                                        root=/dev/hda3

title=Gentoo Linux (2.6.22-gentoo-r2)
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-gentoo-r2 vga=791 splash=verbose,theme:splash.xpm.gz CONSOLE=/dev/tty1 quiet root=/dev/hda3


I think this means grub isn't recognizing my root partition or isn't recognizing the newly installed kernel version. I'm wondering what have I done wrong? :oops: Or did genkernel do something wrong? 8O Is this a bug? Did I use '
Code:
correctly in this post? :?: Do I possibly need to purge gentoo-sources and remove some files and reinstall and configure kernel? 8O

I've been using Linux for 3 to 4 years but this is my 2nd week in Gentoo so I recognize I have a lot to learn here. From what I've seen so far this is a GREAT distro for REALLY learning Linux and when you get you're own install set you'll have a lean,mean, high performance, and stable distro. :D :mrgreen:
_________________
Gentoo 2007.0 AMD64:AMD64 X2 4800+:4x1GB DDR2 800:GeForce 6150 256MB:ASUS M2NPV-VM:2x320GB


Last edited by Red Knuckles on Sat Aug 25, 2007 4:56 pm; edited 2 times in total
Back to top
View user's profile Send private message
rsa4046
l33t
l33t


Joined: 07 Feb 2005
Posts: 660
Location: The Big H, a bit SSW

PostPosted: Thu Aug 16, 2007 11:46 pm    Post subject: Reply with quote

This usually means grub just can't find the file. Are you absolutely certain the kernel image
Code:
vmlinuz-2.6.22-gentoo-r3
is actually in /boot ? Boot the working kernel, mount /dev/hda1 and verify the actual filename spelling versus the grub entry.
_________________
I love gentoo, but I am certainly no guru, despite what it says above.
Back to top
View user's profile Send private message
Red Knuckles
n00b
n00b


Joined: 12 Jan 2007
Posts: 32
Location: Colorado, USA

PostPosted: Sat Aug 18, 2007 12:55 pm    Post subject: Reply with quote

rsa4046 wrote:
This usually means grub just can't find the file. Are you absolutely certain the kernel image
Code:
vmlinuz-2.6.22-gentoo-r3
is actually in /boot ? Boot the working kernel, mount /dev/hda1 and verify the actual filename spelling versus the grub entry.


I'm not sure exactly how to verify. Here's /boot which is /dev/hda1:

Code:

boot # ls
System.map                                    initramfs-genkernel-x86_64-2.6.20-gentoo-r8
System.map-2.6.22-gentoo-r2                   initramfs-genkernel-x86_64-2.6.21-gentoo-r4
System.map-genkernel-x86_64-2.6.20-gentoo-r8  initramfs-genkernel-x86_64-2.6.22-gentoo-r2
System.map-genkernel-x86_64-2.6.21-gentoo-r4  initramfs-genkernel-x86_64-2.6.22-gentoo-r3
System.map-genkernel-x86_64-2.6.22-gentoo-r2  kernel
System.map-genkernel-x86_64-2.6.22-gentoo-r3  kernel-genkernel-x86_64-2.6.20-gentoo-r8
System.map.old                                kernel-genkernel-x86_64-2.6.21-gentoo-r4
boot                                          kernel-genkernel-x86_64-2.6.22-gentoo-r2
config                                        kernel-genkernel-x86_64-2.6.22-gentoo-r3
config-2.6.22-gentoo-r2                       lost+found
config.old                                    vmlinuz
grub                                          vmlinuz-2.6.22-gentoo-r2


Of the 4 listed kernels only '2.6.22-gentoo-r2' will boot. So if I'm configuring new kernel with genkernel as described above why would I not be creating a new 'vmlinuz' as well? I must be missing something. A new kernel revision is out today, '2.6.22-gentoo-r4. I'm going to go to handbook and see if I can figure out how to remove redundant kernels and then update to the latest one. I don't see a need for more than 2 anyway.
_________________
Gentoo 2007.0 AMD64:AMD64 X2 4800+:4x1GB DDR2 800:GeForce 6150 256MB:ASUS M2NPV-VM:2x320GB


Last edited by Red Knuckles on Sat Aug 18, 2007 3:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
Red Knuckles
n00b
n00b


Joined: 12 Jan 2007
Posts: 32
Location: Colorado, USA

PostPosted: Sat Aug 18, 2007 3:19 pm    Post subject: Reply with quote

Ok, nothing like a little Saturday morning training and education. I wasn't booting in to my genkernel config of '2.6.22-gentoo-r2' in the first place. Obviously at some point I had done a manual config of that kernel [using the Gentoo wiki I remember now] and that was what was booting and why none of the other /boot/grub/menu.lst' entries at that time would boot. Genkernel for some reason kept creating a '/boot/vmlinuz-<kernel version>' entry which won't boot into the genkernel created kernel. The correct entry for me in '/boot/grub/menu.lst' for genkernel kernels is:

Code:

title=Gentoo Linux (2.6.22-gentoo-r4)
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-2.6.22-gentoo-r4 vga=791 splash=verbose,theme:splash.xpm.gz CONSOLE=/dev/tty1 quiet root=/dev/hda3

title=Gentoo Linux (2.6.22-gentoo-r2)
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-2.6.22-gentoo-r2 vga=791 splash=verbose,theme:splash.xpm.gz CONSOLE=/dev/tty1                                          quiet root=/dev/hda3


Now I have 2 bootable kernel versions configured to my specs by genkernel and I also learned how to remove old kernel versions and their redundant files. Got something to work like I want it and eliminated unnecessary files in the process. :D
_________________
Gentoo 2007.0 AMD64:AMD64 X2 4800+:4x1GB DDR2 800:GeForce 6150 256MB:ASUS M2NPV-VM:2x320GB
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