Bug#707653: Grub 2.00-14 broken upgrade

Erich Schubert erich at debian.org
Mon May 13 19:16:49 UTC 2013


Package: grub-pc
Version: 2.00-14
Followup-For: Bug #707653

Hi,
I believe I was bitten by the same bug. At least I have the same symptoms:
grub in rescue mode, unable to load even the normal module.

I tried grub-install and upgrade-grub, but they did *not* resolve the issue
for me. I now tried "dpkg-reconfigure grub-pc" as suggested. Judging from
"tar --compare" with my backup, the files in boot/grub/i386-pc were touched
but not changed, so most likely my next boot still will not work.
But maybe the boot sector was now updated.

For recovery, I had to create a USB boot stick with grub, which would allow
me to boot the system again. Note that I use cryptroot, so maybe it also is
related to the RAID bug report.

One thing that strikes me as odd:
search --no-floppy --fs-uuid --set=root 07D6-0A0F

This number is the output of:
> grub-probe -d -t fs_uuid /dev/sda1
whereas
> tune2fs -l /dev/sda1
reports the UUID 03422ef5-491c-4b05-b0fe-0a22e04e0fd0

So maybe grub has problems with my partition table / mtab?
OTOH, it doesn't actually get that far, it fails to load the normal
module already...

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/9d4d069c-cff2-4568-bcbd-5b0a187b1dda / ext3 rw,noatime,errors=remount-ro,barrier=1,data=ordered 0 0
/dev/sda1 /boot ext2 rw,noatime,errors=continue 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/disk/by-id/ata-Hitachi_HTS721060G9SA00_MPCCN8Y3H28ZGL
*********************** END /boot/grub/device.map

*********************** BEGIN /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
  load_env
fi
set default="0"

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

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 load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod fat
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  07D6-0A0F
else
  search --no-floppy --fs-uuid --set=root 07D6-0A0F
fi
    font="/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=de_DE
  insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod fat
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  07D6-0A0F
else
  search --no-floppy --fs-uuid --set=root 07D6-0A0F
fi
insmod png
if background_image /grub/.background_cache.png; then
  set color_normal=white/black
  set color_highlight=black/white
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-9d4d069c-cff2-4568-bcbd-5b0a187b1dda' {
	load_video
	insmod gzio
	insmod part_msdos
	insmod fat
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  07D6-0A0F
	else
	  search --no-floppy --fs-uuid --set=root 07D6-0A0F
	fi
	echo	'Linux 3.8-1-686-pae wird geladen …'
	linux	/vmlinuz-3.8-1-686-pae root=UUID=9d4d069c-cff2-4568-bcbd-5b0a187b1dda ro vga=ext i915.modeset=1 i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 quiet resume=/dev/mapper/cryptswap
	echo	'Initiale Ramdisk wird geladen …'
	initrd	/initrd.img-3.8-1-686-pae
}
submenu 'Erweiterte Optionen für Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-9d4d069c-cff2-4568-bcbd-5b0a187b1dda' {
	menuentry 'Debian GNU/Linux, mit Linux 3.8-1-686-pae' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8-1-686-pae-advanced-9d4d069c-cff2-4568-bcbd-5b0a187b1dda' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod fat
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  07D6-0A0F
		else
		  search --no-floppy --fs-uuid --set=root 07D6-0A0F
		fi
		echo	'Linux 3.8-1-686-pae wird geladen …'
		linux	/vmlinuz-3.8-1-686-pae root=UUID=9d4d069c-cff2-4568-bcbd-5b0a187b1dda ro vga=ext i915.modeset=1 i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 quiet resume=/dev/mapper/cryptswap
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/initrd.img-3.8-1-686-pae
	}
	menuentry 'Debian GNU/Linux, mit Linux 3.8-1-686-pae (Wiederherstellungsmodus)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8-1-686-pae-recovery-9d4d069c-cff2-4568-bcbd-5b0a187b1dda' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod fat
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  07D6-0A0F
		else
		  search --no-floppy --fs-uuid --set=root 07D6-0A0F
		fi
		echo	'Linux 3.8-1-686-pae wird geladen …'
		linux	/vmlinuz-3.8-1-686-pae root=UUID=9d4d069c-cff2-4568-bcbd-5b0a187b1dda ro single vga=ext i915.modeset=1 i915.i915_enable_rc6=1 i915.i915_enable_fbc=1
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/initrd.img-3.8-1-686-pae
	}
	menuentry 'Debian GNU/Linux, mit Linux 3.2.0-4-686-pae' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.2.0-4-686-pae-advanced-9d4d069c-cff2-4568-bcbd-5b0a187b1dda' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod fat
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  07D6-0A0F
		else
		  search --no-floppy --fs-uuid --set=root 07D6-0A0F
		fi
		echo	'Linux 3.2.0-4-686-pae wird geladen …'
		linux	/vmlinuz-3.2.0-4-686-pae root=UUID=9d4d069c-cff2-4568-bcbd-5b0a187b1dda ro vga=ext i915.modeset=1 i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 quiet resume=/dev/mapper/cryptswap
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/initrd.img-3.2.0-4-686-pae
	}
	menuentry 'Debian GNU/Linux, mit Linux 3.2.0-4-686-pae (Wiederherstellungsmodus)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.2.0-4-686-pae-recovery-9d4d069c-cff2-4568-bcbd-5b0a187b1dda' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod fat
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  07D6-0A0F
		else
		  search --no-floppy --fs-uuid --set=root 07D6-0A0F
		fi
		echo	'Linux 3.2.0-4-686-pae wird geladen …'
		linux	/vmlinuz-3.2.0-4-686-pae root=UUID=9d4d069c-cff2-4568-bcbd-5b0a187b1dda ro single vga=ext i915.modeset=1 i915.i915_enable_rc6=1 i915.i915_enable_fbc=1
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/initrd.img-3.2.0-4-686-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 fat
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  07D6-0A0F
	else
	  search --no-floppy --fs-uuid --set=root 07D6-0A0F
	fi
	linux16	/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod part_msdos
	insmod fat
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  07D6-0A0F
	else
	  search --no-floppy --fs-uuid --set=root 07D6-0A0F
	fi
	linux16	/memtest86+.bin console=ttyS0,115200n8
}
menuentry "Memory test (memtest86+, experimental multiboot)" {
	insmod part_msdos
	insmod fat
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  07D6-0A0F
	else
	  search --no-floppy --fs-uuid --set=root 07D6-0A0F
	fi
	multiboot	/memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200, experimental multiboot)" {
	insmod part_msdos
	insmod fat
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  07D6-0A0F
	else
	  search --no-floppy --fs-uuid --set=root 07D6-0A0F
	fi
	multiboot	/memtest86+_multiboot.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/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### 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  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
*********************** END /boot/grub/grub.cfg

*********************** BEGIN /proc/mdstat
cat: /proc/mdstat: No such file or directory
*********************** END /proc/mdstat

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 May 13 20:38 ata-HL-DT-STCD-RW_DVD-ROM_GCC-4244N -> ../../sr0
lrwxrwxrwx 1 root root  9 May 13 20:46 ata-Hitachi_HTS721060G9SA00_MPCCN8Y3H28ZGL -> ../../sda
lrwxrwxrwx 1 root root 10 May 13 20:38 ata-Hitachi_HTS721060G9SA00_MPCCN8Y3H28ZGL-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 May 13 20:38 ata-Hitachi_HTS721060G9SA00_MPCCN8Y3H28ZGL-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 May 13 20:38 ata-Hitachi_HTS721060G9SA00_MPCCN8Y3H28ZGL-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 May 13 20:38 dm-name-cryptroot -> ../../dm-0
lrwxrwxrwx 1 root root 10 May 13 20:38 dm-name-cryptswap -> ../../dm-1
lrwxrwxrwx 1 root root 10 May 13 20:38 dm-uuid-CRYPT-LUKS1-6731f2b9b054446eac0c471f5b07c939-cryptroot -> ../../dm-0
lrwxrwxrwx 1 root root 10 May 13 20:38 dm-uuid-CRYPT-PLAIN-cryptswap -> ../../dm-1
lrwxrwxrwx 1 root root  9 May 13 20:46 scsi-SATA_Hitachi_HTS7210_MPCCN8Y3H28ZGL -> ../../sda
lrwxrwxrwx 1 root root 10 May 13 20:38 scsi-SATA_Hitachi_HTS7210_MPCCN8Y3H28ZGL-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 May 13 20:38 scsi-SATA_Hitachi_HTS7210_MPCCN8Y3H28ZGL-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 May 13 20:38 scsi-SATA_Hitachi_HTS7210_MPCCN8Y3H28ZGL-part3 -> ../../sda3
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 May 13 20:38 03422ef5-491c-4b05-b0fe-0a22e04e0fd0 -> ../../sda1
lrwxrwxrwx 1 root root 10 May 13 20:38 4b3f176e-2485-447f-90d5-20dfb7e1c2d2 -> ../../dm-1
lrwxrwxrwx 1 root root 10 May 13 20:38 6731f2b9-b054-446e-ac0c-471f5b07c939 -> ../../sda2
lrwxrwxrwx 1 root root 10 May 13 20:38 9d4d069c-cff2-4568-bcbd-5b0a187b1dda -> ../../dm-0
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.8-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]  1.5.50
ii  grub-common            2.00-14
ii  grub-pc-bin            2.00-14
ii  grub2-common           2.00-14
ii  ucf                    3.0025+nmu3

grub-pc recommends no packages.

grub-pc suggests no packages.

-- debconf information:
  grub2/kfreebsd_cmdline:
  grub2/device_map_regenerated:
* grub2/linux_cmdline: vga=ext i915.modeset=1 i915.i915_enable_rc6=1 i915.i915_enable_fbc=1
  grub-pc/install_devices_empty: false
  grub-pc/install_devices_failed: false
* grub-pc/chainload_from_menu.lst: true
  grub-pc/kopt_extracted: false
* grub-pc/install_devices: /dev/disk/by-id/ata-Hitachi_HTS721060G9SA00_MPCCN8Y3H28ZGL
  grub-pc/postrm_purge_boot_grub: false
  grub-pc/install_devices_failed_upgrade: true
  grub-pc/disk_description:
  grub2/kfreebsd_cmdline_default: quiet
  grub-pc/partition_description:
  grub-pc/install_devices_disks_changed:
* grub2/linux_cmdline_default: quiet resume=/dev/mapper/cryptswap
  grub-pc/mixed_legacy_and_grub2: true



More information about the Pkg-grub-devel mailing list