PDA

View Full Version : [ubuntu] Ubuntu 11.04 Won't boot after update



arena001
July 14th, 2011, 09:40 AM
Hello Friends.

Yesterday I got updated Ubuntu With Update Manager. Everything was OK until I rebooted the system so that update can tack effect. When I rebooted It's stuck in the middle of something. (No GUI). I tried recovery mode but same thing. Then I tried Previous version and it worked fine. Now I can boot into system but each time I need to select previous version. I googled a lot but didn't find a fix for it. I found a script that gives information of boot (boot_info_script060). Following is the output of the script. So guys pls help me. I am quite new to Linux (approx 2 months or so)


Boot Info Script 0.60 from 17 May 2011


============================= Boot Info Summary: ===============================

=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (,msdos1)/boot/grub on this drive.

sda1: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 11.04
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda2: __________________________________________________ ________________________

File system: Extended Partition
Boot sector type: Unknown
Boot sector info:

sda5: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: According to the info in the boot sector, sda5 starts
at sector 818. But according to the info from fdisk,
sda5 starts at sector 115527680.
Operating System:
Boot files:

sda3: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: According to the info in the boot sector, sda3 starts
at sector 209. But according to the info from fdisk,
sda3 starts at sector 73754624.
Operating System:
Boot files:

sda4: __________________________________________________ ________________________

File system: swap
Boot sector type: -
Boot sector info:

============================ Drive/Partition Info: =============================

Drive: sda __________________________________________________ ___________________

Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders, total 156250000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 * 2,048 64,452,607 64,450,560 83 Linux
/dev/sda2 115,527,678 156,248,063 40,720,386 5 Extended
/dev/sda5 115,527,680 156,248,063 40,720,384 7 NTFS / exFAT / HPFS
/dev/sda3 73,754,624 115,526,861 41,772,238 7 NTFS / exFAT / HPFS
/dev/sda4 64,452,608 73,752,575 9,299,968 82 Linux swap / Solaris


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/sda1 280d25ce-fa31-4e4d-aec6-ef94299e48d2 ext4
/dev/sda3 B46CC25C6CC2194E ntfs AAA
/dev/sda4 c8f980a5-18f9-4637-895c-e56789106636 swap
/dev/sda5 203CD8763CD84904 ntfs PC-HDD1

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/sda1 / ext4 (rw,errors=remount-ro,commit=0)


=========================== sda1/boot/grub/grub.cfg: ===========================

--------------------------------------------------------------------------------
#
# 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/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 280d25ce-fa31-4e4d-aec6-ef94299e48d2
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1024x768
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 280d25ce-fa31-4e4d-aec6-ef94299e48d2
set locale_dir=($root)/boot/grub/locale
set lang=en_IN
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-10-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 280d25ce-fa31-4e4d-aec6-ef94299e48d2
linux /boot/vmlinuz-2.6.38-10-generic-pae root=UUID=280d25ce-fa31-4e4d-aec6-ef94299e48d2 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-10-generic-pae
}
menuentry 'Ubuntu, with Linux 2.6.38-10-generic-pae (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/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 280d25ce-fa31-4e4d-aec6-ef94299e48d2
echo 'Loading Linux 2.6.38-10-generic-pae ...'
linux /boot/vmlinuz-2.6.38-10-generic-pae root=UUID=280d25ce-fa31-4e4d-aec6-ef94299e48d2 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-10-generic-pae
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 2.6.38-8-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 280d25ce-fa31-4e4d-aec6-ef94299e48d2
linux /boot/vmlinuz-2.6.38-8-generic-pae root=UUID=280d25ce-fa31-4e4d-aec6-ef94299e48d2 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-8-generic-pae
}
menuentry 'Ubuntu, with Linux 2.6.38-8-generic-pae (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/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 280d25ce-fa31-4e4d-aec6-ef94299e48d2
echo 'Loading Linux 2.6.38-8-generic-pae ...'
linux /boot/vmlinuz-2.6.38-8-generic-pae root=UUID=280d25ce-fa31-4e4d-aec6-ef94299e48d2 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-8-generic-pae
}
}
### 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/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 280d25ce-fa31-4e4d-aec6-ef94299e48d2
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 280d25ce-fa31-4e4d-aec6-ef94299e48d2
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-1" ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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.
### 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 ###
--------------------------------------------------------------------------------

=============================== sda1/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
/dev/sda1 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda4 during installation
UUID=c8f980a5-18f9-4637-895c-e56789106636 none swap sw 0 0
--------------------------------------------------------------------------------

=================== sda1: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)

4.135009766 = 4.439932928 boot/grub/core.img 1
21.745567322 = 23.349125120 boot/grub/grub.cfg 1
25.888332367 = 27.797385216 boot/initrd.img-2.6.38-10-generic-pae 2
21.260993958 = 22.828818432 boot/initrd.img-2.6.38-8-generic-pae 2
25.724063873 = 27.621003264 boot/vmlinuz-2.6.38-10-generic-pae 2
0.587341309 = 0.630652928 boot/vmlinuz-2.6.38-8-generic-pae 1
25.888332367 = 27.797385216 initrd.img 2
21.260993958 = 22.828818432 initrd.img.old 2
25.724063873 = 27.621003264 vmlinuz 2
0.587341309 = 0.630652928 vmlinuz.old 1

======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sda2

00000000 80 80 80 81 81 81 80 80 80 80 80 80 80 80 80 80 |................|
00000010 80 7f 80 80 80 81 81 81 81 81 80 80 80 80 81 81 |................|
00000020 81 81 80 81 80 80 80 80 81 81 81 81 80 80 80 7f |................|
00000030 80 80 80 80 80 80 80 80 80 80 80 81 81 81 81 80 |................|
00000040 80 80 80 80 80 80 80 80 80 7f 7f 7f 80 80 80 80 |................|
00000050 80 80 81 81 80 80 80 80 80 80 80 80 80 81 80 80 |................|
00000060 80 80 80 80 80 80 80 80 80 80 80 81 80 80 80 80 |................|
00000070 80 80 80 80 80 80 80 81 80 80 80 81 81 80 80 80 |................|
00000080 80 81 80 80 80 80 80 80 80 80 80 80 81 80 80 80 |................|
00000090 80 80 80 80 80 80 80 80 80 80 81 80 80 80 80 80 |................|
000000a0 7f 80 81 81 81 80 7f 80 80 80 80 80 80 80 80 80 |................|
000000b0 7f 80 80 80 80 80 81 80 80 80 80 80 80 80 80 80 |................|
000000c0 80 80 80 80 80 80 80 80 7f 80 80 80 80 7f 7f 7f |................|
000000d0 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 |................|
*
000000f0 80 80 80 80 80 80 7f 80 80 80 80 80 80 80 80 80 |................|
00000100 80 80 80 80 80 80 80 80 80 80 7f 7f 7f 7f 80 80 |................|
00000110 80 80 80 80 80 80 80 80 80 80 80 80 7f 7f 7f 7f |................|
00000120 80 7f 80 7f 7f 7f 7f 80 80 80 80 80 80 7f 7f 80 |................|
00000130 80 80 80 80 80 80 7f 7f 7f 7f 7f 7f 7f 7f 7f 80 |................|
00000140 7f 7f 7f 7f 80 80 80 80 7f 80 80 80 80 80 80 80 |................|
00000150 7f 7f 80 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f |................|
00000160 7f 7f 7f 7f 7f 7f 7f 7f 80 7e 7f 7f 7e 7d 7f 7e |.........~..~}.~|
00000170 81 7f 80 7e 7c 83 79 81 81 80 80 7f 82 7f 81 81 |...~|.y.........|
00000180 7d 81 75 78 81 84 87 7c 7e 7b 7d 86 83 80 7c 7d |}.ux...|~{}...|}|
00000190 7f 7f 84 82 7f 7d 7d 80 81 7b 7f 7e 7d 80 7c 81 |.....}}..{.~}.|.|
000001a0 7a 80 83 7f 80 7c 80 7e 7e 83 7f 7f 7d 7f 80 7c |z....|.~~...}..||
000001b0 82 81 7f 7e 7f 7f 7f 80 80 80 7f 7f 81 80 00 fe |...~............|
000001c0 ff ff 07 fe ff ff 02 00 00 00 00 58 6d 02 00 00 |...........Xm...|
000001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200


=============================== StdErr Messages: ===============================

unlzma: Decoder error

wayneandjackie
July 18th, 2011, 12:49 PM
Hi,

I have had a similar problem consistently on upgrading to or installing 11.04.

A workaround which has worked for me has been to edit /boot/grub/grub.cfg

I compared the lines under the previous and current versions, and found that the line

initrd /initrd.img-2.6.38-10-generic-pae
was not in the current configuration or its recovery option.

You might need to modify the kernel version and name to match.

Cheers,

Wayne

arena001
July 19th, 2011, 02:24 PM
Hi Wayne,

Thank you for your help. Actuallay my problam was different. After looking at dmesg I come to know the problem is with nvidia drivers. Updating driver was a simple fix for me. :)


Thank You again.