PDA

View Full Version : [ubuntu] Boot problem after routine update



jlovegren
September 29th, 2011, 03:18 PM
I am running Ubuntu 10.4.3 LTS on a netbook.
I recently completed one of the routine updates on the "recommended" list of software.
After restarting, the boot fails, and it goes into
grub rescue>
My problem appears to be different from other similar ones because I
do not have a dual boot system. Only ubuntu is installed on the machine.

Running the Boot info script, I get the following results:

Boot Info Script 0.60 from 17 May 2011


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

=> Grub2 (v1.97-1.98) 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 in partition 1 for /boot/grub.
=> Syslinux MBR (3.61-4.03) is installed in the MBR of /dev/sdd.

sda1: __________________________________________________ ________________________

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

sda2: __________________________________________________ ________________________

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

sda5: __________________________________________________ ________________________

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

sdd1: __________________________________________________ ________________________

File system: vfat
Boot sector type: SYSLINUX 4.01 debian-20100714 ...........>...r>.......E.#....0...~.k...~...f...M.f.f....f..8~....>2}
Boot sector info: Syslinux looks at sector 1440446 of /dev/sdd1 for its
second stage. SYSLINUX is installed in the directory.
According to the info in the boot sector, sdd1 starts
at sector 0. But according to the info from fdisk,
sdd1 starts at sector 63.
Operating System:
Boot files: /syslinux/syslinux.cfg /ldlinux.sys

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

Drive: sda __________________________________________________ ___________________

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 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 * 63 306,616,589 306,616,527 83 Linux
/dev/sda2 306,616,590 312,576,704 5,960,115 5 Extended
/dev/sda5 306,616,653 312,576,704 5,960,052 82 Linux swap / Solaris


Drive: sdd __________________________________________________ ___________________

Disk /dev/sdd: 1967 MB, 1967128576 bytes
255 heads, 63 sectors/track, 239 cylinders, total 3842048 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/sdd1 * 63 3,839,534 3,839,472 b W95 FAT32


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/loop1 746a7f60-23c8-4a2e-a0b1-87bf71a64017 ext3
/dev/sda1 6411a1e1-668e-458a-96f1-6eb787621c27 ext4
/dev/sda5 d7814384-4199-405d-a616-f62e83ab573d swap
/dev/sdd1 7AE4-1394 vfat music

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

Device Mount_Point Type Options

/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sdd1 /cdrom vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437, iocharset=iso8859-1,shortname=mixed,errors=remount-ro)


=========================== 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
}
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-33-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 6411a1e1-668e-458a-96f1-6eb787621c27
linux /boot/vmlinuz-2.6.32-33-generic root=UUID=6411a1e1-668e-458a-96f1-6eb787621c27 ro quiet splash
initrd /boot/initrd.img-2.6.32-33-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-33-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 6411a1e1-668e-458a-96f1-6eb787621c27
echo 'Loading Linux 2.6.32-33-generic ...'
linux /boot/vmlinuz-2.6.32-33-generic root=UUID=6411a1e1-668e-458a-96f1-6eb787621c27 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-33-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-26-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 6411a1e1-668e-458a-96f1-6eb787621c27
linux /boot/vmlinuz-2.6.32-26-generic root=UUID=6411a1e1-668e-458a-96f1-6eb787621c27 ro quiet splash
initrd /boot/initrd.img-2.6.32-26-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-26-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 6411a1e1-668e-458a-96f1-6eb787621c27
echo 'Loading Linux 2.6.32-26-generic ...'
linux /boot/vmlinuz-2.6.32-26-generic root=UUID=6411a1e1-668e-458a-96f1-6eb787621c27 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-26-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 6411a1e1-668e-458a-96f1-6eb787621c27
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=6411a1e1-668e-458a-96f1-6eb787621c27 ro quiet splash
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-24-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 6411a1e1-668e-458a-96f1-6eb787621c27
echo 'Loading Linux 2.6.32-24-generic ...'
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=6411a1e1-668e-458a-96f1-6eb787621c27 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-19-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 6411a1e1-668e-458a-96f1-6eb787621c27
linux /boot/vmlinuz-2.6.31-19-generic root=UUID=6411a1e1-668e-458a-96f1-6eb787621c27 ro quiet splash
initrd /boot/initrd.img-2.6.31-19-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-19-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 6411a1e1-668e-458a-96f1-6eb787621c27
echo 'Loading Linux 2.6.31-19-generic ...'
linux /boot/vmlinuz-2.6.31-19-generic root=UUID=6411a1e1-668e-458a-96f1-6eb787621c27 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.31-19-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-17-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 6411a1e1-668e-458a-96f1-6eb787621c27
linux /boot/vmlinuz-2.6.31-17-generic root=UUID=6411a1e1-668e-458a-96f1-6eb787621c27 ro quiet splash
initrd /boot/initrd.img-2.6.31-17-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-17-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 6411a1e1-668e-458a-96f1-6eb787621c27
echo 'Loading Linux 2.6.31-17-generic ...'
linux /boot/vmlinuz-2.6.31-17-generic root=UUID=6411a1e1-668e-458a-96f1-6eb787621c27 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.31-17-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-16-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 6411a1e1-668e-458a-96f1-6eb787621c27
linux /boot/vmlinuz-2.6.31-16-generic root=UUID=6411a1e1-668e-458a-96f1-6eb787621c27 ro quiet splash
initrd /boot/initrd.img-2.6.31-16-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-16-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 6411a1e1-668e-458a-96f1-6eb787621c27
echo 'Loading Linux 2.6.31-16-generic ...'
linux /boot/vmlinuz-2.6.31-16-generic root=UUID=6411a1e1-668e-458a-96f1-6eb787621c27 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.31-16-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-15-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 6411a1e1-668e-458a-96f1-6eb787621c27
linux /boot/vmlinuz-2.6.31-15-generic root=UUID=6411a1e1-668e-458a-96f1-6eb787621c27 ro quiet splash
initrd /boot/initrd.img-2.6.31-15-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-15-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 6411a1e1-668e-458a-96f1-6eb787621c27
echo 'Loading Linux 2.6.31-15-generic ...'
linux /boot/vmlinuz-2.6.31-15-generic root=UUID=6411a1e1-668e-458a-96f1-6eb787621c27 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.31-15-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-14-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 6411a1e1-668e-458a-96f1-6eb787621c27
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=6411a1e1-668e-458a-96f1-6eb787621c27 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-14-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 6411a1e1-668e-458a-96f1-6eb787621c27
echo 'Loading Linux 2.6.31-14-generic ...'
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=6411a1e1-668e-458a-96f1-6eb787621c27 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.31-14-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 6411a1e1-668e-458a-96f1-6eb787621c27
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 6411a1e1-668e-458a-96f1-6eb787621c27
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=6411a1e1-668e-458a-96f1-6eb787621c27 / ext4 errors=remount-ro,user_xattr 0 1
# swap was on /dev/sda5 during installation
UUID=d7814384-4199-405d-a616-f62e83ab573d none swap sw 0 0
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

11.318828106 = 12.153499136 boot/grub/grub.cfg 2
0.202464581 = 0.217394688 boot/initrd.img-2.6.31-14-generic 1
0.370429516 = 0.397745664 boot/initrd.img-2.6.31-15-generic 1
0.257148266 = 0.276110848 boot/initrd.img-2.6.31-16-generic 2
1.272773266 = 1.366629888 boot/initrd.img-2.6.31-17-generic 2
3.936679363 = 4.226977280 boot/initrd.img-2.6.31-19-generic 2
26.082622051 = 28.006002176 boot/initrd.img-2.6.32-24-generic 1
82.382453442 = 88.457485824 boot/initrd.img-2.6.32-26-generic 1
82.643737316 = 88.738037248 boot/initrd.img-2.6.32-33-generic 1
0.185294628 = 0.198958592 boot/vmlinuz-2.6.31-14-generic 1
0.232173443 = 0.249294336 boot/vmlinuz-2.6.31-15-generic 1
0.671626568 = 0.721153536 boot/vmlinuz-2.6.31-16-generic 1
0.616935253 = 0.662429184 boot/vmlinuz-2.6.31-17-generic 2
1.239985943 = 1.331424768 boot/vmlinuz-2.6.31-19-generic 2
24.106513500 = 25.884171776 boot/vmlinuz-2.6.32-24-generic 1
24.110274792 = 25.888210432 boot/vmlinuz-2.6.32-26-generic 1
82.537257671 = 88.623705600 boot/vmlinuz-2.6.32-33-generic 1
82.643737316 = 88.738037248 initrd.img 1
82.382453442 = 88.457485824 initrd.img.old 1
82.537257671 = 88.623705600 vmlinuz 1
24.110274792 = 25.888210432 vmlinuz.old 1

========================= sdd1/syslinux/syslinux.cfg: ==========================

--------------------------------------------------------------------------------
include menu.cfg
default vesamenu.c32
prompt 0
timeout 50
gfxboot bootlogo
--------------------------------------------------------------------------------

================= sdd1: Location of files loaded by Syslinux: ==================

GiB - GB File Fragment(s)

?? = ?? ldlinux.sys 1
?? = ?? syslinux/syslinux.cfg 1
?? = ?? syslinux/vesamenu.c32 1

============== sdd1: Version of COM32(R) files used by Syslinux: ===============

syslinux/vesamenu.c32 : COM32R module (v3.xx)

========= Devices which don't seem to have a corresponding hard drive: =========

sdb sdc sde

Any help or advice is appreciated.

dino99
September 29th, 2011, 04:42 PM
why this vfat partition ?

how to install:

http://ubuntuforums.org/showpost.php?p=10161428&postcount=2

jlovegren
September 29th, 2011, 05:52 PM
why this vfat partition ?

how to install:

http://ubuntuforums.org/showpost.php?p=10161428&postcount=2

Hi thanks. Ubuntu is installed on sda1. The vfat partition is just
the bootable thumb drive I used to be able to access the filesystem,
so the vfat system shouldn't be the problem, since it is just the boot
I'm using temporarily.

Bucky Ball
September 29th, 2011, 06:01 PM
What happens when you take that USB dongle out, set the bios to boot from the hard drive? Grub rescue error? Can you boot into the recovery partition (second on the grub list)?


sudo grub-update

... might work if you can actually get in to run that command.

jlovegren
September 29th, 2011, 06:49 PM
What happens when you take that USB dongle out, set the bios to boot from the hard drive? Grub rescue error? Can you boot into the recovery partition (second on the grub list)?


sudo grub-update... might work if you can actually get in to run that command.

Hi, when I set the BIOS to boot from the HD, yes, I get the grub rescue error. I think when you ask whether I can boot into the recover partition, you mean can I boot into one of these other partitions in sda?


Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 * 63 306,616,589 306,616,527 83 Linux
/dev/sda2 306,616,590 312,576,704 5,960,115 5 Extended
/dev/sda5 306,616,653 312,576,704 5,960,052 82 Linux swap / Solaris


At least I can't set it to do that through BIOS. As for,


sudo grub-update

you are right to suspect that it won't actually run in the command:


sudo: grub-update: command not found

Thanks.

Bucky Ball
October 1st, 2011, 05:13 AM
Sorry, meant recovery kernel but if you're not booting into the grub menu then that is not possible ...