View previous topic :: View next topic |
Author |
Message |
Red Knuckles n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 12 Jan 2007 Posts: 32 Location: Colorado, USA
|
Posted: Thu Aug 16, 2007 11:05 pm Post subject: kernel-2.6.22-gentoo-r3 won't boot SOLVED! |
|
|
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? Or did genkernel do something wrong? Is this a bug? Did I use ' correctly in this post? Do I possibly need to purge gentoo-sources and remove some files and reinstall and configure kernel?
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. ![Mr. Green :mrgreen:](images/smiles/icon_mrgreen.gif) _________________ 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 |
|
![](templates/gentoo/images/spacer.gif) |
rsa4046 l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/70975142742fabeb8612b0.jpg)
Joined: 07 Feb 2005 Posts: 660 Location: The Big H, a bit SSW
|
Posted: Thu Aug 16, 2007 11:46 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Red Knuckles n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 12 Jan 2007 Posts: 32 Location: Colorado, USA
|
Posted: Sat Aug 18, 2007 12:55 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Red Knuckles n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 12 Jan 2007 Posts: 32 Location: Colorado, USA
|
Posted: Sat Aug 18, 2007 3:19 pm Post subject: |
|
|
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. ![Very Happy :D](images/smiles/icon_biggrin.gif) _________________ Gentoo 2007.0 AMD64:AMD64 X2 4800+:4x1GB DDR2 800:GeForce 6150 256MB:ASUS M2NPV-VM:2x320GB |
|
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
|
|