PDA

View Full Version : [ubuntu] After upgrade, kernel problem (won't boot)



musicnotes
April 29th, 2011, 07:49 PM
Upgraded to 11.04 from 10.10.
Here's what I'm seeing.
__________________________________________

GNU GRUB version 1.99~rc1-13ubuntu3

2.6.38-8-generic
2.6.38-8-generic recovery mode
previous linux versions
memtest
another memtest
my Windows installation
__________________________________________

If I boot it using 2.6.38-8-generic, I get a black screen.
If I boot it using 2.6.38-8-generic recovery mode, I get this:
http://musicmaker.fastmail.fm/kernelpanic.jpg

If I boot it from the newest previous version:
2.6.35-28-generic
... it boots properly, which is what enabled me to write this post.

I've got to head out now, but any clues as to what's wrong (and how to fix it) would be appreciated.
If you need more information, please let me know what you need (and, preferably, how to obtain it).


Thanks,
musicnotes

YaAqoB
April 29th, 2011, 08:13 PM
I have the EXACT same issue. When I loaded the previous version it booted the first time but now after rebooting I just get an error about the Power_Mode timing out.
I thought I would just blow it all away and install from scratch but if I boot from the new Install CD I just get white lines of code scrolling non stop so quickly that I can't read any of it.

MAFoElffen
April 29th, 2011, 08:29 PM
What does the grub2 menu entries say for the current kernel boot and for the previous kernel boot? (start to finish...not just the kernel boot line)

KegHead
April 29th, 2011, 08:32 PM
Hi!

If you can;

sudo apt-get update

sudo apt-get install linux-image -f


(Updates kernel)

KegHead

MAFoElffen
April 29th, 2011, 08:34 PM
I have the EXACT same issue. When I loaded the previous version it booted the first time but now after rebooting I just get an error about the Power_Mode timing out.
I thought I would just blow it all away and install from scratch but if I boot from the new Install CD I just get white lines of code scrolling non stop so quickly that I can't read any of it.
On lines that have scrolled by... it is in what is still considered a "terminal." You should be able to review them by pressing <ctrl><alt><Page up> to see the previous screens and <ctrl><alt><page down> to go down a page at a time... Unfornutely, you can only review what is last in the buffer (before it pushes out what is overflowed) or back to where it last cleared the screen.

YaAqoB
April 29th, 2011, 10:31 PM
Thanks for your replies.

Ubuntu, with Linux 2.6.38-8 generic
Ubuntu, with Linux 2.6.38-8-generic (recovery mode)

Previous Linux versions:

Ubuntu, with Linux 2.6.35-28 generic
Ubuntu, with Linux 2.6.35-28-generic (recovery mode)

As for the lines that scroll by, it never stops so I can't review them sorry. I've had it scrolling for over half an hour now.
The parts that don't change are as follows:
[ 0.060003] [<c1.......>] ? then it all changes so fast I can't make it out.
I can't get it to boot in any mode or any version of the kernel sorry so I can't run the apt-get command.

MAFoElffen
April 29th, 2011, 10:45 PM
Thanks for your replies.

Ubuntu, with Linux 2.6.38-8 generic
Ubuntu, with Linux 2.6.38-8-generic (recovery mode)

Previous Linux versions:

Ubuntu, with Linux 2.6.35-28 generic
Ubuntu, with Linux 2.6.35-28-generic (recovery mode)

As for the lines that scroll by, it never stops so I can't review them sorry. I've had it scrolling for over half an hour now.
The parts that don't change are as follows:
[ 0.060003] [<c1.......>] ? then it all changes so fast I can't make it out.
I can't get it to boot in any mode or any version of the kernel sorry so I can't run the apt-get command.LOL
Okay... What I meant was the grubmenu entries instead of the menu tiles. An easier way for you might be to post your /boot/grub/grub.cfg file such as this:


#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(/dev/sdb,msdos3)'
search --no-floppy --fs-uuid --set=root 32939def-1f4a-4134-9b56-bed2319a9216
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(/dev/sdb,msdos3)'
search --no-floppy --fs-uuid --set=root 32939def-1f4a-4134-9b56-bed2319a9216
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 2.6.38-8-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sdb,msdos3)'
search --no-floppy --fs-uuid --set=root 32939def-1f4a-4134-9b56-bed2319a9216
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=32939def-1f4a-4134-9b56-bed2319a9216 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-8-generic
}
menuentry 'Ubuntu, with Linux 2.6.38-8-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sdb,msdos3)'
search --no-floppy --fs-uuid --set=root 32939def-1f4a-4134-9b56-bed2319a9216
echo 'Loading Linux 2.6.38-8-generic ...'
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=32939def-1f4a-4134-9b56-bed2319a9216 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-8-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 2.6.35-28-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sdb,msdos3)'
search --no-floppy --fs-uuid --set=root 32939def-1f4a-4134-9b56-bed2319a9216
linux /boot/vmlinuz-2.6.35-28-generic root=UUID=32939def-1f4a-4134-9b56-bed2319a9216 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.35-28-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-28-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sdb,msdos3)'
search --no-floppy --fs-uuid --set=root 32939def-1f4a-4134-9b56-bed2319a9216
echo 'Loading Linux 2.6.35-28-generic ...'
linux /boot/vmlinuz-2.6.35-28-generic root=UUID=32939def-1f4a-4134-9b56-bed2319a9216 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-28-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sdb,msdos3)'
search --no-floppy --fs-uuid --set=root 32939def-1f4a-4134-9b56-bed2319a9216
linux /boot/vmlinuz-2.6.32-25-generic root=UUID=32939def-1f4a-4134-9b56-bed2319a9216 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.32-25-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-25-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sdb,msdos3)'
search --no-floppy --fs-uuid --set=root 32939def-1f4a-4134-9b56-bed2319a9216
echo 'Loading Linux 2.6.32-25-generic ...'
linux /boot/vmlinuz-2.6.32-25-generic root=UUID=32939def-1f4a-4134-9b56-bed2319a9216 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-25-generic
}
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(/dev/sdb,msdos3)'
search --no-floppy --fs-uuid --set=root 32939def-1f4a-4134-9b56-bed2319a9216
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(/dev/sdb,msdos3)'
search --no-floppy --fs-uuid --set=root 32939def-1f4a-4134-9b56-bed2319a9216
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sda1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root E85C16665C163034
chainloader +1
}
menuentry "Windows 7 (loader) (on /dev/sdb1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(/dev/sdb,msdos1)'
search --no-floppy --fs-uuid --set=root 40E0BF86E0BF80A8
chainloader +1
}
menuentry "Ubuntu, with Linux 2.6.32-21-server (on /dev/sdc1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(/dev/sdc,msdos1)'
search --no-floppy --fs-uuid --set=root fdf5c6ae-a958-43ac-b65b-373e87cb3340
linux /boot/vmlinuz-2.6.32-21-server root=UUID=fdf5c6ae-a958-43ac-b65b-373e87cb3340 ro quiet
initrd /boot/initrd.img-2.6.32-21-server
}
menuentry "Ubuntu, with Linux 2.6.32-21-server (recovery mode) (on /dev/sdc1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(/dev/sdc,msdos1)'
search --no-floppy --fs-uuid --set=root fdf5c6ae-a958-43ac-b65b-373e87cb3340
linux /boot/vmlinuz-2.6.32-21-server root=UUID=fdf5c6ae-a958-43ac-b65b-373e87cb3340 ro single
initrd /boot/initrd.img-2.6.32-21-server
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
#
## This chainloads OpenSolaris'es Grub Menu ##
## from Ubuntu's Grub2 Menu ##
## Working with Ubuntu 10.04.beta2 ##
## Had to change 'hd2 to hd2 as root for 10.04.1 ##
#
menuentry "OpenSolaris 2010.03 dev_snv_134 64bit" {
set root='(hd1,2)'
chainloader +1
}
## End of OpenSolaris chainload section ##
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
I'd ask you to run the script in my sig and post the results, but you aren't going to be able to without booting up a kernel. Becuase of that, "tell me" how you have things laid out disk and partition wise...

YaAqoB
April 29th, 2011, 10:58 PM
Sorry.
I have a single HDD and when I installed 10.10 I just told it to use the entire disk so it's partitioned however Ubuntu does it by default.

As for the Grub.conf contents.... There is pages of stuff and I suspect it may be quicker to just reinstall 10.10 then manually type it all out manually in this box using my wifes laptop.

Thanks again for your help so far though.

musicnotes
April 29th, 2011, 11:15 PM
(oops, wrong thread)

musicnotes
April 29th, 2011, 11:16 PM
Hi!

If you can;

sudo apt-get update

sudo apt-get install linux-image -f


(Updates kernel)

KegHead

Hey, KegHead: that worked! Thanks! One question coming at you:

I tried to run sudo apt-get update, it told me I needed to run sudo dpkg --configure -a first. So I did. Then I ran the two that you suggested, and now it boots properly...

... at least, I think it does! Is there a way to check to make sure it is using the correct kernel? (Might it just be using the old one, and not telling me?) Thanks again.

MAFoElffen
April 29th, 2011, 11:19 PM
Sorry.
I have a single HDD and when I installed 10.10 I just told it to use the entire disk so it's partitioned however Ubuntu does it by default.

As for the Grub.conf contents.... There is pages of stuff and I suspect it may be quicker to just reinstall 10.10 then manually type it all out manually in this box using my wifes laptop.

Thanks again for your help so far though.Okay, here's some short cuts to try first--

Reboot > If your Grub menu doesn't normally come up, press the shift key to display your grub menu. > At the Grub menu, hit an arrow down key so the grub menu stays. > Arrow to the menu entry for 11.04 and press the " e " key. > That will display the menu entries for the menu item. Copy down the menu entries to post here.

Press <esc> key which will return you to the menu items. Press the " c " key, which will drop you down to the CLI (grub command line interface). Form the the Grub prompt, type in

grub> root (hd0, then press the <tab> key for autocomplete and tell me the results...

KegHead
April 29th, 2011, 11:24 PM
Hi!

Congrats!

The kernel is correct for your version.

you can always check at...system..admin..monitor.

Also by running the commands it will tell you if you're up to date or download for you.

KegHead

musicnotes
April 29th, 2011, 11:28 PM
Holy thread drift, Batman...
Mind starting a new thread for this new issue?

musicnotes
April 29th, 2011, 11:29 PM
Hi!

Congrats!

The kernel is correct for your version.

you can always check at...system..admin..monitor.

Also by running the commands it will tell you if you're up to date or download for you.

KegHead


Much obliged, KegHead, thanks!

YaAqoB
April 29th, 2011, 11:35 PM
setparams 'Ubuntu, with Linux 2.6.38-8-generic'

recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root f1a5155b-7b6b-4255-bd59-b8bf\548921eb
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=f1a5155b-7b6d-4255-bd\59-b8bf548921eb ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-8-generic

Possible partitions are:

Partition hd0,msdos1: Filesystem type ext2 - Last modification time 2011-04-12 04:31:00 Tuesday, UUID f1a5155b-7b6d-4255-bd59-b8bf548921eb -
Partition start at 2048 - Total size 153229312 sectors
Partition hd0,msdos5: Not a known filesystem - Partition start at 153233408 - Total size 3067904 sectors

:)

Zevaka
May 1st, 2011, 04:41 PM
i experience the problem described by starting post: properly boots with 2.6.35 but boots into blank screen on 2.6.38
iirc, it was this way in ubuntu alpha 3 and beta 1, too

moscao
May 2nd, 2011, 11:40 AM
Hi,

Same here:

Upgrade to Natty from 10.10, kernel 2.6.38-8 won't boot (black screen in normal, and kernel panic in recovery mode), while 2.6.35 works like a charm (like before in 10.10)...

Suggestion of KegHead to fix broken dependencies did not work either...

Googling reveals that many users experience similar issues.

My 2 cents to keep this post alive and hope any fixes, suggestions are given.

BR

cellarboy
August 11th, 2012, 08:26 PM
Thanks, KegHead this worked for me.