Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#574350: grub-pc: boot failure after upgrade to 1.98

4 views
Skip to first unread message

Andres Cimmarusti

unread,
Mar 17, 2010, 10:50:02 AM3/17/10
to
Package: grub-pc
Version: 1.98-1
Severity: grave
Justification: renders package unusable

When I upgraded today to grub 1.98-1 (on two different laptops), I noticed
the following message (apt):

/usr/sbin/grub-setup: error: no mapping exists for `hd0'

Upon restarting the system grub2 went it rescue mode after failing to boot
and showing me this message:

error: the symbol 'grub_env_find' not found

I had to boot off the CD/DVD with the debian installer in rescue mode, mount
root partition and reinstall grub-common and grub-pc (yes, version 1.98-1 worked
with no errors this time). Upon reboot everything worked the way it was supposed
to.

However, for testing I tried reinstalling grub-pc again. Apt showed me the
same error!. So before rebooting, I looked at the file /boot/grub/device.map
which showed:

(hd0) /dev/hda

I changed hda to sda. Then reinstalled again and got no errors, restarted and
everything worked well. There is an error in grub-pc when detecting drives
during the upgrade/installation. Please fix it, as it renders the system
unbootable.


-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/a34090d4-6bd6-45ea-8e76-8aaad107fb24 / ext4 rw,noatime,errors=remount-ro,barrier=1,data=ordered 0 0
/dev/sda6 /home ext4 rw,noatime,barrier=1,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0) /dev/sda
*********************** 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 ###
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
}
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set a34090d4-6bd6-45ea-8e76-8aaad107fb24
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 a34090d4-6bd6-45ea-8e76-8aaad107fb24
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set a34090d4-6bd6-45ea-8e76-8aaad107fb24
insmod png
if background_image /boot/grub/moreblue-orbit-grub.png ; then
set color_normal=black/black
set color_highlight=magenta/black
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, with Linux 2.6.33-2-amd64" --class debian --class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set a34090d4-6bd6-45ea-8e76-8aaad107fb24
echo Loading Linux 2.6.33-2-amd64 ...
linux /boot/vmlinuz-2.6.33-2-amd64 root=UUID=a34090d4-6bd6-45ea-8e76-8aaad107fb24 ro quiet
echo Loading initial ramdisk ...
initrd /boot/initrd.img-2.6.33-2-amd64
}
menuentry "Debian GNU/Linux, with Linux 2.6.33-2-amd64 (recovery mode)" --class debian --class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set a34090d4-6bd6-45ea-8e76-8aaad107fb24
echo Loading Linux 2.6.33-2-amd64 ...
linux /boot/vmlinuz-2.6.33-2-amd64 root=UUID=a34090d4-6bd6-45ea-8e76-8aaad107fb24 ro single
echo Loading initial ramdisk ...
initrd /boot/initrd.img-2.6.33-2-amd64
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-3-amd64" --class debian --class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set a34090d4-6bd6-45ea-8e76-8aaad107fb24
echo Loading Linux 2.6.32-3-amd64 ...
linux /boot/vmlinuz-2.6.32-3-amd64 root=UUID=a34090d4-6bd6-45ea-8e76-8aaad107fb24 ro quiet
echo Loading initial ramdisk ...
initrd /boot/initrd.img-2.6.32-3-amd64
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-3-amd64 (recovery mode)" --class debian --class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set a34090d4-6bd6-45ea-8e76-8aaad107fb24
echo Loading Linux 2.6.32-3-amd64 ...
linux /boot/vmlinuz-2.6.32-3-amd64 root=UUID=a34090d4-6bd6-45ea-8e76-8aaad107fb24 ro single
echo Loading initial ramdisk ...
initrd /boot/initrd.img-2.6.32-3-amd64
}
### END /etc/grub.d/10_linux ###

### 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 ###
*********************** END /boot/grub/grub.cfg

-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.33-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.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.28 Debian configuration management sy
ii grub-common 1.98-1 GRand Unified Bootloader, version
ii libc6 2.10.2-6 Embedded GNU C Library: Shared lib
ii ucf 3.0025 Update Configuration File: preserv

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
ii desktop-base 5.0.5 common files for the Debian Deskto

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

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Colin Watson

unread,
Mar 18, 2010, 12:20:02 PM3/18/10
to
merge 554790 574350
thanks

On Wed, Mar 17, 2010 at 10:34:14AM -0400, Andres Cimmarusti wrote:
> When I upgraded today to grub 1.98-1 (on two different laptops), I noticed
> the following message (apt):
>
> /usr/sbin/grub-setup: error: no mapping exists for `hd0'
>
> Upon restarting the system grub2 went it rescue mode after failing to boot
> and showing me this message:
>
> error: the symbol 'grub_env_find' not found

This is the same as the cluster of bugs described in #554790. I intend
to get this fixed soon, although in some cases it will result in a
debconf question on upgrade when we can't automatically work out the
right answer reliably.

Thanks,

--
Colin Watson [cjwa...@debian.org]

0 new messages