Bug#711580: grub-pc-bin: Hangs at "Welcome to GRUB!" from USB flash memory stick

Ian Maclaine-cross ianmaclain at gmail.com
Sat Jun 8 01:08:55 UTC 2013


Package: grub-pc-bin
Version: 2.00-14
Severity: important
Tags: upstream

Hi,
My HP Pavilion dv6-6136TX laptop was upgraded to wheezy about 10th May
2013 and subsequently my MSI Wind U100+ netbook.  I installed grub-pc
versions 1.99 and then 2.00-14 on SanDisk and Sony 4GB USB memory
sticks.

My install commands for the memory cards, whether prepared on the
laptop or the netbook, were:

# gparted
# fdisk -l
# mount  -t vfat /dev/sdc1  /mnt
# cd /mnt
# mkdir boot
# grub-install  --no-floppy --force --boot-directory=boot /dev/sdc
# emacs /mnt/boot/grub/grub.cfg
# umount /mnt

The 'fdisk -l' provided a check on gparted and whether /dev/sdc should
be replaced by /dev/sdb or /dev/sdd in following commands. 

The response of the grub-install command was the line:

Installation finished. No error reported.

I will attempt to attach a file grub.dbg containing the grub-install
debugging output with the --debug switch on.

The emacs editor was used to enter the following 2 lines into grub.cfg:

echo Please wait 10 s ...
sleep 10

The grub.cfg attached below was generated by 'update-grub' on my laptop 
and was also copied to the memory cards for testing. 

The prepared memory cards were tested by attempting to boot the laptop
and netbook and also with the computer emulator QEMU using the commands:

# qemu-system-i386 /dev/sdc
# qemu-system-x86_64 /dev/sdc 

On each card test the laptop ceased responding to the keyboard or mouse after
displaying the 3 lines:

GRUB loading.
Welcome to GRUB!
_  

For the two line grub.cfg the QEMU and netbook tests showed the first two
lines above and then the line:

Please wait 10 s ...  

for 10 s before swapping to a grub console. The grub.cfg below copied to the
card showed the expected menu for the QEMU and netbook tests but
the menu was inactive.

I expected the laptop to boot the same as the netbook and emulators.
Perhaps it is only PCs with the Insyde F.1B bios which hang with
grub-pc 2.00-14. Syslinux and isolinux however boot both my PCs and
emulators equally flawlessly.
 
-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/d364cd6e-4a1e-488f-b0ff-8fb7c535453c / ext4 rw,relatime,errors=remount-ro,user_xattr,barrier=1,data=ordered 0 0
/dev/sda9 /home ext4 rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/sda6 /usr ext4 rw,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/sda7 /var ext4 rw,relatime,user_xattr,barrier=1,data=ordered 0 0
*********************** END /proc/mounts

*********************** 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 ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  d8c94daf-0af9-4476-88df-c0180a99b8c0
else
  search --no-floppy --fs-uuid --set=root d8c94daf-0af9-4476-88df-c0180a99b8c0
fi
    font="/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_AU
  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 ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  d8c94daf-0af9-4476-88df-c0180a99b8c0
else
  search --no-floppy --fs-uuid --set=root d8c94daf-0af9-4476-88df-c0180a99b8c0
fi
insmod png
if background_image /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' --class debian --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-simple-d364cd6e-4a1e-488f-b0ff-8fb7c535453c' {
	load_video
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos5'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  d364cd6e-4a1e-488f-b0ff-8fb7c535453c
	else
	  search --no-floppy --fs-uuid --set=root d364cd6e-4a1e-488f-b0ff-8fb7c535453c
	fi
	echo	'Loading Linux 3.2.0-4-amd64 ...'
	linux	/boot/vmlinuz-3.2.0-4-amd64 root=UUID=d364cd6e-4a1e-488f-b0ff-8fb7c535453c ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.2.0-4-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-d364cd6e-4a1e-488f-b0ff-8fb7c535453c' --unrestricted {
	menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64' --class debian --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.2.0-4-amd64-advanced-d364cd6e-4a1e-488f-b0ff-8fb7c535453c' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  d364cd6e-4a1e-488f-b0ff-8fb7c535453c
		else
		  search --no-floppy --fs-uuid --set=root d364cd6e-4a1e-488f-b0ff-8fb7c535453c
		fi
		echo	'Loading Linux 3.2.0-4-amd64 ...'
		linux	/boot/vmlinuz-3.2.0-4-amd64 root=UUID=d364cd6e-4a1e-488f-b0ff-8fb7c535453c ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.2.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.2.0-4-amd64-recovery-d364cd6e-4a1e-488f-b0ff-8fb7c535453c' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  d364cd6e-4a1e-488f-b0ff-8fb7c535453c
		else
		  search --no-floppy --fs-uuid --set=root d364cd6e-4a1e-488f-b0ff-8fb7c535453c
		fi
		echo	'Loading Linux 3.2.0-4-amd64 ...'
		linux	/boot/vmlinuz-3.2.0-4-amd64 root=UUID=d364cd6e-4a1e-488f-b0ff-8fb7c535453c ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.2.0-4-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/30_os-prober ###
menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os --users ian $menuentry_id_option 'osprober-chain-5CF64A6EF64A488A' {
	insmod part_msdos
	insmod ntfs
	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  5CF64A6EF64A488A
	else
	  search --no-floppy --fs-uuid --set=root 5CF64A6EF64A488A
	fi
	chainloader +1
}
menuentry 'Debian GNU/Linux (wheezy/sid)' --class gnu-linux --class gnu --class os --users ian $menuentry_id_option 'osprober-gnulinux-simple-422741e8-7393-4319-9981-538dd32c8961' {
	insmod part_msdos
	insmod reiserfs
	set root='hd0,msdos10'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos10 --hint-efi=hd0,msdos10 --hint-baremetal=ahci0,msdos10  422741e8-7393-4319-9981-538dd32c8961
	else
	  search --no-floppy --fs-uuid --set=root 422741e8-7393-4319-9981-538dd32c8961
	fi
	linux /boot/vmlinuz root=/dev/sda10 rootwait lang=us apm=power-off nomce libata.force=noncq tz=localtime loglevel=1 bootfrom=/dev/sda10/ rw
}
submenu 'Advanced options for Debian GNU/Linux (wheezy/sid)' $menuentry_id_option 'osprober-gnulinux-advanced-422741e8-7393-4319-9981-538dd32c8961' {
	menuentry 'KNOPPIX (on /dev/sda10)' --class gnu-linux --class gnu --class os --users ian $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz--422741e8-7393-4319-9981-538dd32c8961' {
		insmod part_msdos
		insmod reiserfs
		set root='hd0,msdos10'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos10 --hint-efi=hd0,msdos10 --hint-baremetal=ahci0,msdos10  422741e8-7393-4319-9981-538dd32c8961
		else
		  search --no-floppy --fs-uuid --set=root 422741e8-7393-4319-9981-538dd32c8961
		fi
		linux /boot/vmlinuz root=/dev/sda10 rootwait lang=us apm=power-off nomce libata.force=noncq tz=localtime loglevel=1 bootfrom=/dev/sda10/ rw
	}
}

menuentry 'Windows 7 (loader) (on /dev/sda2)' --class windows --class os --users ian $menuentry_id_option 'osprober-chain-947415D37415B946' {
	insmod part_msdos
	insmod ntfs
	set root='hd0,msdos2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  947415D37415B946
	else
	  search --no-floppy --fs-uuid --set=root 947415D37415B946
	fi
	chainloader +1
}
menuentry 'Windows Recovery Environment (loader) (on /dev/sda3)' --class windows --class os --users ian $menuentry_id_option 'osprober-chain-FA8ACD868ACD3FBD' {
	insmod part_msdos
	insmod ntfs
	set root='hd0,msdos3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  FA8ACD868ACD3FBD
	else
	  search --no-floppy --fs-uuid --set=root FA8ACD868ACD3FBD
	fi
	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.

set superusers="root"

### PASSWORD LINE REMOVED ###

### PASSWORD LINE REMOVED ###

menuentry "Clonezilla live iso" --users "ian" {
set isofile="/isos/clonezilla"
loopback loop (hd0,9)$isofile
linux (loop)/live/vmlinuz boot=live live-config noswap nolocales edd=on nomodeset ocs_live_run=\"ocs-live-general\" ocs_live_extra_param=\"\" ocs_live_keymap=\"\" ocs_live_batch=\"no\" ocs_lang=\"\" vga=788 ip=frommedia nosplash toram=filesystem.squashfs findiso=$isofile 
initrd (loop)/live/initrd.img
}

menuentry "Knoppix amd64 live 4G iso" --users "ian" {
set isofile="/isos/knoppix"
loopback loop (hd0,9)$isofile
linux (loop)/boot/isolinux/linux64 ramdisk_size=100000 lang=en apm=power-off nomce libata.force=noncq hpsa.hpsa_allow_any=1 loglevel=1 tz=localtime BOOT_IMAGE=linux64 bootfrom=/dev/sda9$isofile
initrd (loop)/boot/isolinux/minirt.gz
}

menuentry "Knoppix i686 live 0.7G iso" --users "ian" {
set isofile="/isos/KNOPPIX_V7.0.5CD-2012-12-21-EN.iso"
loopback loop (hd0,9)$isofile
linux (loop)/boot/isolinux/linux ramdisk_size=100000 lang=en apm=power-off nomce libata.force=noncq hpsa.hpsa_allow_any=1 loglevel=1 tz=localtime BOOT_IMAGE=linux bootfrom=/dev/sda9$isofile
initrd (loop)/boot/isolinux/minirt.gz
}

menuentry "Knoppix amd64" --users "ian" { 
insmod part_msdos
insmod reiserfs
set root='(hd0,msdos10)'
linux /boot/vmlinuz-3.6.11-64 root=/dev/sda10 lang=en apm=power-off nomce libata.force=noncq loglevel=1 tz=localtime bootfrom=/dev/sda10 rw
#initrd  /KNOPPIX/minirt.gz
}

menuentry "SystemRescueCd (isoloop)" --users "ian" {
    insmod part_msdos
    set isofile=/isos/systemrescuecd-x86-3.6.0.iso
    loopback loop (hd0,9)$isofile
    linux (loop)/isolinux/rescue64 isoloop=$isofile
    initrd (loop)/isolinux/initram.igz
}
### 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 Jun  8 08:22 ata-TOSHIBA_MK6465GSX_41PGD4OUB -> ../../sda
lrwxrwxrwx 1 root root 10 Jun  8 08:22 ata-TOSHIBA_MK6465GSX_41PGD4OUB-part1 -> ../../sda1
lrwxrwxrwx 1 root root 11 Jun  8 08:22 ata-TOSHIBA_MK6465GSX_41PGD4OUB-part10 -> ../../sda10
lrwxrwxrwx 1 root root 10 Jun  8 08:22 ata-TOSHIBA_MK6465GSX_41PGD4OUB-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun  8 08:22 ata-TOSHIBA_MK6465GSX_41PGD4OUB-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Jun  8 08:22 ata-TOSHIBA_MK6465GSX_41PGD4OUB-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Jun  8 08:22 ata-TOSHIBA_MK6465GSX_41PGD4OUB-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Jun  8 08:22 ata-TOSHIBA_MK6465GSX_41PGD4OUB-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Jun  8 08:22 ata-TOSHIBA_MK6465GSX_41PGD4OUB-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Jun  8 08:22 ata-TOSHIBA_MK6465GSX_41PGD4OUB-part8 -> ../../sda8
lrwxrwxrwx 1 root root 10 Jun  8 08:22 ata-TOSHIBA_MK6465GSX_41PGD4OUB-part9 -> ../../sda9
lrwxrwxrwx 1 root root  9 Jun  8 08:22 ata-hp_DVD_A_DS8A5LH_103300145965 -> ../../sr0
lrwxrwxrwx 1 root root  9 Jun  8 08:22 scsi-SATA_TOSHIBA_MK6465G_41PGD4OUB -> ../../sda
lrwxrwxrwx 1 root root 10 Jun  8 08:22 scsi-SATA_TOSHIBA_MK6465G_41PGD4OUB-part1 -> ../../sda1
lrwxrwxrwx 1 root root 11 Jun  8 08:22 scsi-SATA_TOSHIBA_MK6465G_41PGD4OUB-part10 -> ../../sda10
lrwxrwxrwx 1 root root 10 Jun  8 08:22 scsi-SATA_TOSHIBA_MK6465G_41PGD4OUB-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun  8 08:22 scsi-SATA_TOSHIBA_MK6465G_41PGD4OUB-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Jun  8 08:22 scsi-SATA_TOSHIBA_MK6465G_41PGD4OUB-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Jun  8 08:22 scsi-SATA_TOSHIBA_MK6465G_41PGD4OUB-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Jun  8 08:22 scsi-SATA_TOSHIBA_MK6465G_41PGD4OUB-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Jun  8 08:22 scsi-SATA_TOSHIBA_MK6465G_41PGD4OUB-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Jun  8 08:22 scsi-SATA_TOSHIBA_MK6465G_41PGD4OUB-part8 -> ../../sda8
lrwxrwxrwx 1 root root 10 Jun  8 08:22 scsi-SATA_TOSHIBA_MK6465G_41PGD4OUB-part9 -> ../../sda9
lrwxrwxrwx 1 root root  9 Jun  8 08:22 wwn-0x500003933ad07480 -> ../../sda
lrwxrwxrwx 1 root root 10 Jun  8 08:22 wwn-0x500003933ad07480-part1 -> ../../sda1
lrwxrwxrwx 1 root root 11 Jun  8 08:22 wwn-0x500003933ad07480-part10 -> ../../sda10
lrwxrwxrwx 1 root root 10 Jun  8 08:22 wwn-0x500003933ad07480-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun  8 08:22 wwn-0x500003933ad07480-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Jun  8 08:22 wwn-0x500003933ad07480-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Jun  8 08:22 wwn-0x500003933ad07480-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Jun  8 08:22 wwn-0x500003933ad07480-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Jun  8 08:22 wwn-0x500003933ad07480-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Jun  8 08:22 wwn-0x500003933ad07480-part8 -> ../../sda8
lrwxrwxrwx 1 root root 10 Jun  8 08:22 wwn-0x500003933ad07480-part9 -> ../../sda9
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Jun  8 08:22 335c9974-b29d-47f7-a1b9-816b02d9287d -> ../../sda9
lrwxrwxrwx 1 root root 11 Jun  8 08:22 422741e8-7393-4319-9981-538dd32c8961 -> ../../sda10
lrwxrwxrwx 1 root root 10 Jun  8 08:22 5CF64A6EF64A488A -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun  8 08:22 947415D37415B946 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun  8 08:22 9e7f14df-0b3e-41f0-9f60-ae41b069a771 -> ../../sda8
lrwxrwxrwx 1 root root 10 Jun  8 08:22 FA8ACD868ACD3FBD -> ../../sda3
lrwxrwxrwx 1 root root 10 Jun  8 08:22 d364cd6e-4a1e-488f-b0ff-8fb7c535453c -> ../../sda5
lrwxrwxrwx 1 root root 10 Jun  8 08:22 d8c94daf-0af9-4476-88df-c0180a99b8c0 -> ../../sda6
lrwxrwxrwx 1 root root 10 Jun  8 08:22 e2b366dc-a542-4da0-b507-0f6bef0a45dd -> ../../sda7
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: 7.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-pc-bin depends on:
ii  grub-common         2.00-14
ii  libc6               2.17-4
ii  libdevmapper1.02.1  2:1.02.74-7

grub-pc-bin recommends no packages.

Versions of packages grub-pc-bin suggests:
ii  desktop-base  7.0.3

-- no debconf information



More information about the Pkg-grub-devel mailing list