Bug#687320: grub-efi-amd64: Stuck at grub recovery prompt when USB media reader attached
Christian Jacobsen
ragingmind at gmail.com
Tue Sep 11 17:14:33 UTC 2012
Package: grub-efi-amd64
Version: 1.99-22.1
Severity: critical
Justification: breaks the whole system
Dear Maintainer,
With the recent hubbub about UEFI I thought I'd try getting my new system, an
Asus P8H61-M LE/CSM with Core i53450, booting using EFI instead of bios
compatibility mode.
At first I tried to convert my system to uefi boot without reinstalling by
following some guides online, but I was left with a system that wouldn't boot
past just "GRUB" showing the upper left.
With no clue what I did wrong I decided to try Steve's efi test install cd 1
which installed elilo by default. This gave me a booting system for a while,
but I was unhappy with elilo so I tried switching over to grub by adding
/boot/efi to fstab and installing grub-efi-amd64. On rebooting I got "invalid
sector size 65535"
Figuring that I'd fubared my system again I reinstalled using Steve's 3rd CD.
This left my system booting to the same grub recovery prompt and the "invalid
sector size 65535". At this point I searched for the error and found:
http://savannah.gnu.org/bugs/?35382
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/975061
So now I can boot my system, either by opening the case and disconnecting my
card reader before power up OR manually setting the prefix and loading/running
the normal module.
I've tried several variations of running grub-install with and without the card
reader attached, rebooting between tries, and I have also tried manually
setting things in devices.map. So far the only way I can get my system to boot
without intervention is to disconnect the card reader.
This is my first time submitting a bug... please me gentle
Thanks :)
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/aa3909a2-fcc8-4b69-9b32-f6716fdd2e7e / ext4
rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/sda1 /boot/efi vfat
rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=utf8,shortname=mixed,errors
=remount-ro 0 0
/dev/sdb1 /home xfs rw,relatime,attr2,noquota 0 0
*********************** END /proc/mounts
*********************** BEGIN /boot/grub/device.map
(hd0) /dev/disk/by-id/ata-ST340016A_3HS4JDEX
(hd1) /dev/disk/by-id/ata-ST3320613AS_9SZ6H6P4
*********************** 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 [ "${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 {
insmod efi_gop
insmod efi_uga
insmod video_bochs
insmod video_cirrus
}
insmod part_gpt
insmod ext2
set root='(hd5,gpt2)'
search --no-floppy --fs-uuid --set=root aa3909a2-fcc8-4b69-9b32-f6716fdd2e7e
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1440x900x32
load_video
insmod gfxterm
insmod part_gpt
insmod ext2
set root='(hd5,gpt2)'
search --no-floppy --fs-uuid --set=root aa3909a2-fcc8-4b69-9b32-f6716fdd2e7e
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_gpt
insmod ext2
set root='(hd5,gpt2)'
search --no-floppy --fs-uuid --set=root aa3909a2-fcc8-4b69-9b32-f6716fdd2e7e
insmod png
if background_image /usr/share/images/desktop-base/joy-grub.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, with Linux 3.5-trunk-amd64' --class debian --class
gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd5,gpt2)'
search --no-floppy --fs-uuid --set=root
aa3909a2-fcc8-4b69-9b32-f6716fdd2e7e
echo 'Loading Linux 3.5-trunk-amd64 ...'
linux /boot/vmlinuz-3.5-trunk-amd64
root=UUID=aa3909a2-fcc8-4b69-9b32-f6716fdd2e7e ro quiet splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.5-trunk-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.5-trunk-amd64 (recovery mode)'
--class debian --class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd5,gpt2)'
search --no-floppy --fs-uuid --set=root
aa3909a2-fcc8-4b69-9b32-f6716fdd2e7e
echo 'Loading Linux 3.5-trunk-amd64 ...'
linux /boot/vmlinuz-3.5-trunk-amd64
root=UUID=aa3909a2-fcc8-4b69-9b32-f6716fdd2e7e ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.5-trunk-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.2.0-3-amd64' --class debian --class
gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd5,gpt2)'
search --no-floppy --fs-uuid --set=root
aa3909a2-fcc8-4b69-9b32-f6716fdd2e7e
echo 'Loading Linux 3.2.0-3-amd64 ...'
linux /boot/vmlinuz-3.2.0-3-amd64
root=UUID=aa3909a2-fcc8-4b69-9b32-f6716fdd2e7e ro quiet splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-3-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.2.0-3-amd64 (recovery mode)' --class
debian --class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd5,gpt2)'
search --no-floppy --fs-uuid --set=root
aa3909a2-fcc8-4b69-9b32-f6716fdd2e7e
echo 'Loading Linux 3.2.0-3-amd64 ...'
linux /boot/vmlinuz-3.2.0-3-amd64
root=UUID=aa3909a2-fcc8-4b69-9b32-f6716fdd2e7e ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-3-amd64
}
### 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)" {
linux16 /boot/memtest86.bin
}
### END /etc/grub.d/20_memtest86 ###
### 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 ###
### BEGIN /etc/grub.d/41_custom ###
if [ -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 Sep 11 12:19 ata-SONY_DVD_RW_DRU-
810A_815027554810A_U30508 -> ../../sr0
lrwxrwxrwx 1 root root 9 Sep 11 12:19 ata-ST3320613AS_9SZ6H6P4 -> ../../sdb
lrwxrwxrwx 1 root root 10 Sep 11 12:19 ata-ST3320613AS_9SZ6H6P4-part1 ->
.../../sdb1
lrwxrwxrwx 1 root root 9 Sep 11 12:19 ata-ST340016A_3HS4JDEX -> ../../sda
lrwxrwxrwx 1 root root 10 Sep 11 12:19 ata-ST340016A_3HS4JDEX-part1 ->
.../../sda1
lrwxrwxrwx 1 root root 10 Sep 11 12:19 ata-ST340016A_3HS4JDEX-part2 ->
.../../sda2
lrwxrwxrwx 1 root root 10 Sep 11 12:19 ata-ST340016A_3HS4JDEX-part3 ->
.../../sda3
lrwxrwxrwx 1 root root 9 Sep 11 12:19 scsi-SATA_ST3320613AS_9SZ6H6P4 ->
.../../sdb
lrwxrwxrwx 1 root root 10 Sep 11 12:19 scsi-SATA_ST3320613AS_9SZ6H6P4-part1 ->
.../../sdb1
lrwxrwxrwx 1 root root 9 Sep 11 12:19 scsi-SATA_ST340016A_3HS4JDEX ->
.../../sda
lrwxrwxrwx 1 root root 10 Sep 11 12:19 scsi-SATA_ST340016A_3HS4JDEX-part1 ->
.../../sda1
lrwxrwxrwx 1 root root 10 Sep 11 12:19 scsi-SATA_ST340016A_3HS4JDEX-part2 ->
.../../sda2
lrwxrwxrwx 1 root root 10 Sep 11 12:19 scsi-SATA_ST340016A_3HS4JDEX-part3 ->
.../../sda3
lrwxrwxrwx 1 root root 9 Sep 11 12:19 usb-Generic-
_Compact_Flash_20060413092100000-0:0 -> ../../sdc
lrwxrwxrwx 1 root root 9 Sep 11 12:19 usb-Generic-_MS_MS-
Pro_HG_20060413092100000-0:3 -> ../../sdf
lrwxrwxrwx 1 root root 9 Sep 11 12:19 usb-Generic-
_SD_MMC_20060413092100000-0:2 -> ../../sde
lrwxrwxrwx 1 root root 9 Sep 11 12:19 usb-Generic-
_SD_MMC_MS_MSPRO_20060413092100000-0:4 -> ../../sdg
lrwxrwxrwx 1 root root 9 Sep 11 12:19 usb-Generic-_SM_xD-
Picture_20060413092100000-0:1 -> ../../sdd
lrwxrwxrwx 1 root root 9 Sep 11 12:19 wwn-0x5000c5001f9a9994 -> ../../sdb
lrwxrwxrwx 1 root root 10 Sep 11 12:19 wwn-0x5000c5001f9a9994-part1 ->
.../../sdb1
*********************** END /dev/disk/by-id
*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Sep 11 12:19 1c0c9d31-4ebd-44d7-94d9-2cc7378a3825 ->
.../../sda3
lrwxrwxrwx 1 root root 10 Sep 11 12:19 D3B7-3D30 -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep 11 12:19 aa3909a2-fcc8-4b69-9b32-f6716fdd2e7e ->
.../../sda2
lrwxrwxrwx 1 root root 10 Sep 11 12:19 bb6eb18e-955e-49f4-ae6c-065de64d6cdf ->
.../../sdb1
*********************** END /dev/disk/by-uuid
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.5-trunk-amd64 (SMP w/4 CPU cores)
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-efi-amd64 depends on:
ii debconf [debconf-2.0] 1.5.46
ii grub-common 1.99-22.1
ii grub-efi-amd64-bin 1.99-22.1
ii grub2-common 1.99-22.1
ii ucf 3.0025+nmu3
grub-efi-amd64 recommends no packages.
grub-efi-amd64 suggests no packages.
-- debconf information:
grub2/kfreebsd_cmdline:
grub2/device_map_regenerated:
* grub2/linux_cmdline:
More information about the Pkg-grub-devel
mailing list