Bug#561551: grub-pc: fails to boot with "no such partition" after upgrade from grub1

luke rarrum at gmail.com
Fri Dec 18 05:11:03 UTC 2009


Package: grub-pc
Version: 1.98~20091210-1
Severity: important


During an apt-get upgrade, it installed the new grub and updated the old
one to default into chaining into the new one.  It looks like the new one
just doesn't work:

Booting 'Chainload into GRUB 2'

root (hd0,1)
 Filesystem type is ext2fs, partition type is 0x83
kernel /boot/grub/core.img
 [Multiboot-kludge, loadaddr=0x100000, text-and-data=0x6451, bss=0x0, entry=0
x10027c]

Welcome to GRUB!

Entrering rescue mode...
error: no such partition
grub rescue>

And at this point I can type (though it's ignoring the keyboard layout
 so I can't type anything useful very easilly).

For now I can get around this by just picking not to chain into grub 2
from the menu every time I boot up...


-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/isw_bcdfbcagcb_Safe2 / ext3 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/mapper/isw_bcdfbcagcb_Safe1 /win/c fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096 0 0
/dev/mapper/isw_bcdfbcagcb_Fast1 /win/e fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/sda
(hd1)	/dev/sdb
*********************** END /boot/grub/device.map

*********************** BEGIN /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 ###
set default=0
insmod ext2
set root=(/dev/mapper/isw_bcdfbcagcb_Safe2)
search --no-floppy --fs-uuid --set a74949f5-877a-43bb-8d93-815b02947e16
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
set locale_dir=/boot/grub/locale
set lang=
insmod gettext 
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, with Linux 2.6.30-2-686" {
	insmod ext2
	set root=(/dev/mapper/isw_bcdfbcagcb_Safe2)
	search --no-floppy --fs-uuid --set a74949f5-877a-43bb-8d93-815b02947e16
	linux	/boot/vmlinuz-2.6.30-2-686 root=/dev/mapper/isw_bcdfbcagcb_Safe2 ro expert quiet
	initrd	/boot/initrd.img-2.6.30-2-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.30-2-686 (recovery mode)" {
	insmod ext2
	set root=(/dev/mapper/isw_bcdfbcagcb_Safe2)
	search --no-floppy --fs-uuid --set a74949f5-877a-43bb-8d93-815b02947e16
	linux	/boot/vmlinuz-2.6.30-2-686 root=/dev/mapper/isw_bcdfbcagcb_Safe2 ro single expert
	initrd	/boot/initrd.img-2.6.30-2-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.30-1-686" {
	insmod ext2
	set root=(/dev/mapper/isw_bcdfbcagcb_Safe2)
	search --no-floppy --fs-uuid --set a74949f5-877a-43bb-8d93-815b02947e16
	linux	/boot/vmlinuz-2.6.30-1-686 root=/dev/mapper/isw_bcdfbcagcb_Safe2 ro expert quiet
	initrd	/boot/initrd.img-2.6.30-1-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.30-1-686 (recovery mode)" {
	insmod ext2
	set root=(/dev/mapper/isw_bcdfbcagcb_Safe2)
	search --no-floppy --fs-uuid --set a74949f5-877a-43bb-8d93-815b02947e16
	linux	/boot/vmlinuz-2.6.30-1-686 root=/dev/mapper/isw_bcdfbcagcb_Safe2 ro single expert
	initrd	/boot/initrd.img-2.6.30-1-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.29-2-686" {
	insmod ext2
	set root=(/dev/mapper/isw_bcdfbcagcb_Safe2)
	search --no-floppy --fs-uuid --set a74949f5-877a-43bb-8d93-815b02947e16
	linux	/boot/vmlinuz-2.6.29-2-686 root=/dev/mapper/isw_bcdfbcagcb_Safe2 ro expert quiet
	initrd	/boot/initrd.img-2.6.29-2-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.29-2-686 (recovery mode)" {
	insmod ext2
	set root=(/dev/mapper/isw_bcdfbcagcb_Safe2)
	search --no-floppy --fs-uuid --set a74949f5-877a-43bb-8d93-815b02947e16
	linux	/boot/vmlinuz-2.6.29-2-686 root=/dev/mapper/isw_bcdfbcagcb_Safe2 ro single expert
	initrd	/boot/initrd.img-2.6.29-2-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.29-1-686" {
	insmod ext2
	set root=(/dev/mapper/isw_bcdfbcagcb_Safe2)
	search --no-floppy --fs-uuid --set a74949f5-877a-43bb-8d93-815b02947e16
	linux	/boot/vmlinuz-2.6.29-1-686 root=/dev/mapper/isw_bcdfbcagcb_Safe2 ro expert quiet
	initrd	/boot/initrd.img-2.6.29-1-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.29-1-686 (recovery mode)" {
	insmod ext2
	set root=(/dev/mapper/isw_bcdfbcagcb_Safe2)
	search --no-floppy --fs-uuid --set a74949f5-877a-43bb-8d93-815b02947e16
	linux	/boot/vmlinuz-2.6.29-1-686 root=/dev/mapper/isw_bcdfbcagcb_Safe2 ro single expert
	initrd	/boot/initrd.img-2.6.29-1-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.26.5" {
	insmod ext2
	set root=(/dev/mapper/isw_bcdfbcagcb_Safe2)
	search --no-floppy --fs-uuid --set a74949f5-877a-43bb-8d93-815b02947e16
	linux	/boot/vmlinuz-2.6.26.5 root=/dev/mapper/isw_bcdfbcagcb_Safe2 ro expert quiet
	initrd	/boot/initrd.img-2.6.26.5
}
menuentry "Debian GNU/Linux, with Linux 2.6.26.5 (recovery mode)" {
	insmod ext2
	set root=(/dev/mapper/isw_bcdfbcagcb_Safe2)
	search --no-floppy --fs-uuid --set a74949f5-877a-43bb-8d93-815b02947e16
	linux	/boot/vmlinuz-2.6.26.5 root=/dev/mapper/isw_bcdfbcagcb_Safe2 ro single expert
	initrd	/boot/initrd.img-2.6.26.5
}
menuentry "Debian GNU/Linux, with Linux 2.6.26.2" {
	insmod ext2
	set root=(/dev/mapper/isw_bcdfbcagcb_Safe2)
	search --no-floppy --fs-uuid --set a74949f5-877a-43bb-8d93-815b02947e16
	linux	/boot/vmlinuz-2.6.26.2 root=/dev/mapper/isw_bcdfbcagcb_Safe2 ro expert quiet
	initrd	/boot/initrd.img-2.6.26.2
}
menuentry "Debian GNU/Linux, with Linux 2.6.26.2 (recovery mode)" {
	insmod ext2
	set root=(/dev/mapper/isw_bcdfbcagcb_Safe2)
	search --no-floppy --fs-uuid --set a74949f5-877a-43bb-8d93-815b02947e16
	linux	/boot/vmlinuz-2.6.26.2 root=/dev/mapper/isw_bcdfbcagcb_Safe2 ro single expert
	initrd	/boot/initrd.img-2.6.26.2
}
menuentry "Debian GNU/Linux, with Linux 2.6.26-2-686" {
	insmod ext2
	set root=(/dev/mapper/isw_bcdfbcagcb_Safe2)
	search --no-floppy --fs-uuid --set a74949f5-877a-43bb-8d93-815b02947e16
	linux	/boot/vmlinuz-2.6.26-2-686 root=/dev/mapper/isw_bcdfbcagcb_Safe2 ro expert quiet
	initrd	/boot/initrd.img-2.6.26-2-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.26-2-686 (recovery mode)" {
	insmod ext2
	set root=(/dev/mapper/isw_bcdfbcagcb_Safe2)
	search --no-floppy --fs-uuid --set a74949f5-877a-43bb-8d93-815b02947e16
	linux	/boot/vmlinuz-2.6.26-2-686 root=/dev/mapper/isw_bcdfbcagcb_Safe2 ro single expert
	initrd	/boot/initrd.img-2.6.26-2-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.26-1-686" {
	insmod ext2
	set root=(/dev/mapper/isw_bcdfbcagcb_Safe2)
	search --no-floppy --fs-uuid --set a74949f5-877a-43bb-8d93-815b02947e16
	linux	/boot/vmlinuz-2.6.26-1-686 root=/dev/mapper/isw_bcdfbcagcb_Safe2 ro expert quiet
	initrd	/boot/initrd.img-2.6.26-1-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.26-1-686 (recovery mode)" {
	insmod ext2
	set root=(/dev/mapper/isw_bcdfbcagcb_Safe2)
	search --no-floppy --fs-uuid --set a74949f5-877a-43bb-8d93-815b02947e16
	linux	/boot/vmlinuz-2.6.26-1-686 root=/dev/mapper/isw_bcdfbcagcb_Safe2 ro single expert
	initrd	/boot/initrd.img-2.6.26-1-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.25-2-686" {
	insmod ext2
	set root=(/dev/mapper/isw_bcdfbcagcb_Safe2)
	search --no-floppy --fs-uuid --set a74949f5-877a-43bb-8d93-815b02947e16
	linux	/boot/vmlinuz-2.6.25-2-686 root=/dev/mapper/isw_bcdfbcagcb_Safe2 ro expert quiet
	initrd	/boot/initrd.img-2.6.25-2-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.25-2-686 (recovery mode)" {
	insmod ext2
	set root=(/dev/mapper/isw_bcdfbcagcb_Safe2)
	search --no-floppy --fs-uuid --set a74949f5-877a-43bb-8d93-815b02947e16
	linux	/boot/vmlinuz-2.6.25-2-686 root=/dev/mapper/isw_bcdfbcagcb_Safe2 ro single expert
	initrd	/boot/initrd.img-2.6.25-2-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.22-3-686" {
	insmod ext2
	set root=(/dev/mapper/isw_bcdfbcagcb_Safe2)
	search --no-floppy --fs-uuid --set a74949f5-877a-43bb-8d93-815b02947e16
	linux	/boot/vmlinuz-2.6.22-3-686 root=/dev/mapper/isw_bcdfbcagcb_Safe2 ro expert quiet
	initrd	/boot/initrd.img-2.6.22-3-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.22-3-686 (recovery mode)" {
	insmod ext2
	set root=(/dev/mapper/isw_bcdfbcagcb_Safe2)
	search --no-floppy --fs-uuid --set a74949f5-877a-43bb-8d93-815b02947e16
	linux	/boot/vmlinuz-2.6.22-3-686 root=/dev/mapper/isw_bcdfbcagcb_Safe2 ro single expert
	initrd	/boot/initrd.img-2.6.22-3-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.18-6-686" {
	insmod ext2
	set root=(/dev/mapper/isw_bcdfbcagcb_Safe2)
	search --no-floppy --fs-uuid --set a74949f5-877a-43bb-8d93-815b02947e16
	linux	/boot/vmlinuz-2.6.18-6-686 root=/dev/mapper/isw_bcdfbcagcb_Safe2 ro expert quiet
	initrd	/boot/initrd.img-2.6.18-6-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.18-6-686 (recovery mode)" {
	insmod ext2
	set root=(/dev/mapper/isw_bcdfbcagcb_Safe2)
	search --no-floppy --fs-uuid --set a74949f5-877a-43bb-8d93-815b02947e16
	linux	/boot/vmlinuz-2.6.18-6-686 root=/dev/mapper/isw_bcdfbcagcb_Safe2 ro single expert
	initrd	/boot/initrd.img-2.6.18-6-686
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/mapper/isw_bcdfbcagcb_Safe1)" {
	insmod ntfs
	set root=(/dev/mapper/isw_bcdfbcagcb_Safe1)
	search --no-floppy --fs-uuid --set 8014513714513180
	drivemap -s (hd0) ${root}
	chainloader +1
}
### 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 ###
*********************** END /boot/grub/grub.cfg

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-2-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]    1.5.28          Debian configuration management sy
ii  grub-common              1.98~20091210-1 GRand Unified Bootloader, version 
ii  libc6                    2.10.2-2        GNU C Library: Shared libraries
ii  ucf                      3.0025          Update Configuration File: preserv

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
pn  desktop-base                  <none>     (no description available)

-- debconf information:
  grub2/kfreebsd_cmdline:
* grub2/linux_cmdline: expert
* grub-pc/chainload_from_menu.lst: true
  grub-pc/kopt_extracted: true
  grub-pc/postrm_purge_boot_grub: false
  grub2/kfreebsd_cmdline_default: quiet
* grub2/linux_cmdline_default: quiet
  grub-pc/install_devices:





More information about the Pkg-grub-devel mailing list