PDA

View Full Version : [ubuntu] 9.10 to 10.4 Upgrade trouble



hwychld
October 19th, 2010, 10:54 PM
I recently attempted to upgrade from 9.10 to 10.4 (on my way to 10.10). I can no longer boot, it hangs immediately, I don't even see any messages from Grub.

My system is a virtual machine (Sun Vbox) on a Dell laptop (host OS is XP). Version 9.10 ran without any trouble and the upgrade process seemed to go without error. When the system restarted is when the trouble started. I made a snapshot of the 9.10 image before the upgrade so I can easily get back, but sometimes things like this are great learning experiences so I would like to debug this.

Below is the results of the Boot Info Script. When booting the 10.4 version never requests a IP address from my DHCP server so it really appears to be hung (as opposed to just being a display problem).

Let me know if there are any useful logfiles I should be checking. From what I can tell it doesn't appear to get far enough to write any files though. One curiosity is the boot/grub/core.img is much smaller now than a very similar 9.10 VM on another host.

Thanks for the help/advice.


Boot Info Script 0.55 dated February 15th, 2010

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

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #1 for /boot/grub.

sda1: __________________________________________________ _______________________

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

sda2: __________________________________________________ _______________________

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

sda5: __________________________________________________ _______________________

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

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders, total 16777216 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x0002fffa

Partition Boot Start End Size Id System

/dev/sda1 * 63 15,952,544 15,952,482 83 Linux
/dev/sda2 15,952,545 16,771,859 819,315 5 Extended
/dev/sda5 15,952,608 16,771,859 819,252 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 c1125637-ac33-404a-9974-faf219180199 ext4
/dev/sda5 cb340ff7-e74b-4cf5-a456-419d217abf92 swap

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

aufs / aufs (rw)
/dev/sr0 /cdrom iso9660 (rw)
/dev/loop0 /rofs squashfs (rw)


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

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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
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
}
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set c1125637-ac33-404a-9974-faf219180199
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set c1125637-ac33-404a-9974-faf219180199
set locale_dir=($root)/boot/grub/locale
set lang=en
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
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set c1125637-ac33-404a-9974-faf219180199
linux /boot/vmlinuz-2.6.32-25-generic root=UUID=c1125637-ac33-404a-9974-faf219180199 ro quiet splash
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
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set c1125637-ac33-404a-9974-faf219180199
echo 'Loading Linux 2.6.32-25-generic ...'
linux /boot/vmlinuz-2.6.32-25-generic root=UUID=c1125637-ac33-404a-9974-faf219180199 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-25-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set c1125637-ac33-404a-9974-faf219180199
linux /boot/vmlinuz-2.6.31-22-generic root=UUID=c1125637-ac33-404a-9974-faf219180199 ro quiet splash
initrd /boot/initrd.img-2.6.31-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set c1125637-ac33-404a-9974-faf219180199
echo 'Loading Linux 2.6.31-22-generic ...'
linux /boot/vmlinuz-2.6.31-22-generic root=UUID=c1125637-ac33-404a-9974-faf219180199 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.31-22-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set c1125637-ac33-404a-9974-faf219180199
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set c1125637-ac33-404a-9974-faf219180199
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -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 ###

=============================== 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 defaults 0 0
# / was on /dev/sda1 during installation
UUID=c1125637-ac33-404a-9974-faf219180199 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=cb340ff7-e74b-4cf5-a456-419d217abf92 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

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


.4GB: boot/grub/core.img
1.0GB: boot/grub/grub.cfg
5.3GB: boot/initrd.img-2.6.31-22-generic
2.2GB: boot/initrd.img-2.6.32-25-generic
3.8GB: boot/vmlinuz-2.6.31-22-generic
5.4GB: boot/vmlinuz-2.6.32-25-generic
2.2GB: initrd.img
5.3GB: initrd.img.old
5.4GB: vmlinuz
3.8GB: vmlinuz.old

hwychld
October 20th, 2010, 12:37 AM
OK, discovered a bit more. By holding the shift key during the boot process I am able to get to GRUB. If I select 2.6.31-22-generic I can get the system to boot (although it behaves a bit squirrelly). I am unable to boot into 2.6.31-25-generic and 2.6.31-25 recovery. The normal 2.6.31-25 just goes blank. The recovery one spews a bunch of stuff and then stops. The last thing it was able to perform was "Checking 'hlt' instruction... OK.". After that it appears to hang.

Any ideas?

hwychld
October 20th, 2010, 07:59 PM
I realize that I am talking to myself but ...

I found that I cannot boot the live CD for 10.04 in my VM, the same thing happens. It is odd that 10.10 live CD does work. Strange.

hwychld
November 20th, 2010, 01:00 AM
Just in case anyone else has this problem I have figured out the answer. The problem was the result of an outdated version of Virtual Box. After upgrading to the most current version the upgrade went without a hitch.