PDA

View Full Version : [ubuntu] No boot after upgrade



haffi67
May 21st, 2011, 12:57 AM
I just upgraded my Ubuntu server from 10.10 to 11.04 and now it won't boot. I don't even get the grub menu, just a grub> console. I've looked at some other threads with similar problems but haven't found a solution yet, I'm not even able to start any kernel. I've run the boot info script and the result can be found here: http://pastebin.com/SSzWNQRF

Dutch70
May 21st, 2011, 01:13 AM
I'm no expert, but I don't see anything wrong with your boot script. Have you tried to purge & reinstall grub2 from the live cd?
HOWTO: Purge and Reinstall Grub2 from the Live CD (http://ubuntuforums.org/showthread.php?t=1581099)

You will probably get more people to look at your boot script by copying the part of the page you linked to that is under "RAW Paste Data" at the bottom of the page.
Be sure to paste it between [CODE]&[ /CODE] tags by using the # symbol in the toolbar.
If you don't use the code tags, you'll lose the formatting.

Hedgehog1
May 21st, 2011, 03:10 AM
Script output:


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: swap
Boot sector type: -
Boot sector info:

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

Drive: sda __________________________________________________ ___________________

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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 624,852,991 624,850,944 83 Linux
/dev/sda2 624,855,038 625,141,759 286,722 5 Extended
/dev/sda5 624,855,040 625,141,759 286,720 82 Linux swap / Solaris


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/sda1 a6e6ec79-d60b-432a-a8fd-3fbab40f8832 ext4
/dev/sda5 e3cf2b54-45ad-4103-96d1-e72797587271 swap

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

Device Mount_Point Type Options

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


=========================== 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 a6e6ec79-d60b-432a-a8fd-3fbab40f8832
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/sda,msdos1)'
search --no-floppy --fs-uuid --set=root a6e6ec79-d60b-432a-a8fd-3fbab40f8832
set locale_dir=($root)/boot/grub/locale
set lang=C
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=2
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
### 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-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 a6e6ec79-d60b-432a-a8fd-3fbab40f8832
linux /boot/vmlinuz-2.6.38-8-generic-pae root=UUID=a6e6ec79-d60b-432a-a8fd-3fbab40f8832 ro quiet
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 a6e6ec79-d60b-432a-a8fd-3fbab40f8832
echo 'Loading Linux 2.6.38-8-generic-pae ...'
linux /boot/vmlinuz-2.6.38-8-generic-pae root=UUID=a6e6ec79-d60b-432a-a8fd-3fbab40f8832 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-8-generic-pae
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 2.6.35-22-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 a6e6ec79-d60b-432a-a8fd-3fbab40f8832
linux /boot/vmlinuz-2.6.35-22-generic-pae root=UUID=a6e6ec79-d60b-432a-a8fd-3fbab40f8832 ro quiet
initrd /boot/initrd.img-2.6.35-22-generic-pae
}
menuentry 'Ubuntu, with Linux 2.6.35-22-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 a6e6ec79-d60b-432a-a8fd-3fbab40f8832
echo 'Loading Linux 2.6.35-22-generic-pae ...'
linux /boot/vmlinuz-2.6.35-22-generic-pae root=UUID=a6e6ec79-d60b-432a-a8fd-3fbab40f8832 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-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 a6e6ec79-d60b-432a-a8fd-3fbab40f8832
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 a6e6ec79-d60b-432a-a8fd-3fbab40f8832
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### 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
# / was on /dev/sda1 during installation
UUID=a6e6ec79-d60b-432a-a8fd-3fbab40f8832 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=e3cf2b54-45ad-4103-96d1-e72797587271 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
#UUID=b50c9eb5-2ffc-44eb-a55c-fc54c6c8439b /media/video ext3 defaults 0 0
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

126.139968872 = 135.441760256 boot/grub/core.img 1
134.262702942 = 144.163479552 boot/grub/grub.cfg 1
233.628330231 = 250.856509440 boot/initrd.img-2.6.35-22-generic-pae 2
75.700393677 = 81.282678784 boot/initrd.img-2.6.38-8-generic-pae 2
126.130096436 = 135.431159808 boot/vmlinuz-2.6.35-22-generic-pae 1
233.614685059 = 250.841858048 boot/vmlinuz-2.6.38-8-generic-pae 1
75.700393677 = 81.282678784 initrd.img 2
233.628330231 = 250.856509440 initrd.img.old 2
233.614685059 = 250.841858048 vmlinuz 1
126.130096436 = 135.431159808 vmlinuz.old 1

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

Unknown BootLoader on sda2

00000000 b9 df 11 d8 f0 f5 ec d8 7a 39 a6 ab 92 44 ae 12 |........z9...D..|
00000010 b7 4b a7 1a 11 c2 fa f9 b4 16 cc 97 8a 5a 03 4c |.K...........Z.L|
00000020 5c 1e fb 90 2b 70 cb 3f ed 1a 26 c5 4d 43 49 c6 |\...+p.?..&.MCI.|
00000030 44 45 21 64 91 b5 83 2c ae e2 9d c3 5d db 94 ef |DE!d...,....]...|
00000040 87 1a 67 91 ab f8 7b a8 ce de 6a b9 83 6b 1a 82 |..g...{...j..k..|
00000050 ad 7e 7f ab dc e4 9b 5b de 60 ca 0b 4c fe b7 a0 |.~.....[.`..L...|
00000060 33 a0 cf f1 ff 4e 71 44 0c a9 cf 9f 73 4f f4 67 |3....NqD....sO.g|
00000070 22 f5 99 ee c5 f4 7e be 48 a1 44 7a 91 0a 4e 77 |".....~.H.Dz..Nw|
00000080 0d e5 ff 25 6b f5 04 92 c2 c6 fc b8 b5 95 0c 26 |...%k..........&|
00000090 cb b5 9a cf be c2 5d 0f 4c c0 d2 14 c6 21 4f d3 |......].L....!O.|
000000a0 6a 03 a3 fa c1 b1 74 bf d2 90 c3 6b ef 8b b5 ac |j.....t....k....|
000000b0 08 d0 7a 2f 58 ce 43 45 1f 39 04 99 be 1b ab 62 |..z/X.CE.9.....b|
000000c0 f3 51 46 ac 93 ae 69 27 da 7b cc f7 da fe 95 45 |.QF...i'.{.....E|
000000d0 43 14 42 47 fa 8d 3f 78 25 b2 32 f3 66 87 b4 e4 |C.BG..?x%.2.f...|
000000e0 d4 aa c4 41 33 d9 a9 b0 3e f4 c4 cd ec ba f5 f3 |...A3...>.......|
000000f0 32 d4 f2 8c 4a fe 09 9f cd c7 6f 32 0e 64 01 d9 |2...J.....o2.d..|
00000100 c6 1d 2e 51 c5 57 39 4a 22 1d cc 1e b7 28 ce ab |...Q.W9J"....(..|
00000110 d9 26 7e d5 35 98 28 65 89 35 51 2a 66 83 15 ae |.&~.5.(e.5Q*f...|
00000120 89 99 f4 1b ed 87 ab 92 b8 e0 af 9c 93 e5 f8 6b |...............k|
00000130 8a a8 77 e1 94 66 85 08 d0 ee bc 6e 76 fa 68 cb |..w..f.....nv.h.|
00000140 c7 2e f9 1e a6 c3 3a a3 3a 08 4e 92 27 3a 98 cf |......:.:.N.':..|
00000150 93 b2 c4 49 a4 a6 0e 84 24 be a8 3c 38 5e 0c fe |...I....$..<8^..|
00000160 3e 4f dd d6 df 12 fb f5 76 a6 60 e9 86 6e d5 ee |>O......v.`..n..|
00000170 19 89 ef 32 49 63 f1 6c 44 63 53 3f 7f 5e a9 06 |...2Ic.lDcS?.^..|
00000180 e9 58 34 92 66 e8 7c d7 b5 40 9b 15 00 71 74 51 |.X4.f.|..@...qtQ|
00000190 94 5a d6 69 fe 2b 6f 64 0c 37 79 c5 a5 06 cb 08 |.Z.i.+od.7y.....|
000001a0 31 97 4f 13 cd 10 75 d3 1e 33 18 6a e4 97 73 78 |1.O...u..3.j..sx|
000001b0 46 cb 2a 2f 97 0c 07 ef 29 3c 85 d1 66 08 00 fe |F.*/....)<..f...|
000001c0 ff ff 82 fe ff ff 02 00 00 00 00 60 04 00 00 00 |...........`....|
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

Hedgehog1
May 21st, 2011, 03:12 AM
Dutch70 appears to be right on target.

Please boot from the LiveCD/LiveUSB you install from, select 'TRY' and in the terminal:


sudo mount /dev/sda1 /mnt


sudo grub-install --root-directory=/mnt /dev/sda


The Hedge

:KS