Bug#708788: "Error: file not found" on boot, rescue prompt rendered useless
Brian Paterni
bpaterni at gmail.com
Sat May 18 15:56:13 UTC 2013
Package: grub-pc
Version: 2.00-14
Severity: important
Dear Maintainer,
Like many people, I've been hit by the "unable to boot after upgrade to 2.00-14"
bug. My problem is similar to 707653, but with a slight variation, so I wasn't
sure whether to post there or file another bug. I decided to file a new bug due
to Colin's advise in 707653.
I decided to upgrade my laptop to 2.00-14 which went by without a hitch. Then I
decided I would upgrade my desktop as well, but on the next boot I am met with
Error: file not found
grub rescue>
I tried following Michael's steps to recover (in 707653) but this is what I've
found:
# modules are instead in /boot/grub/i386-pc for some reason
> set prefix=(hd0,msdos1)/boot/grub/i386-pc
> insmod norml
symbol not found: 'grub_disk_dev_list'
> insmod linux
symbol not found: 'grub_realidt'
So presumably the rescue prompt is rendered useless... and the only way to
recover would be through livecd chroot which is what I'm using to file this bug.
I haven't actually recovered grub yet though, so the system can remain in a
nearly unmodified state for bugscript information. Let me know if I can provide
any more information this way. I will try not to change my system's state unless
prompted otherwise.
-- Package-specific info:
*********************** BEGIN /boot/grub/device.map
(hd0) /dev/disk/by-id/ata-M4-CT128M4SSD2_000000001244091B2C71
(hd1) /dev/disk/by-id/ata-WDC_WD1001FALS-00E8B0_WD-WMATV4429088
(hd2) /dev/disk/by-id/ata-WDC_WD1002FAEX-00Z3A0_WD-WCATR5323755
(hd3) /dev/disk/by-id/ata-WDC_WD1002FAEX-00Z3A0_WD-WCATR4883916
(hd4) /dev/disk/by-id/usb-Corsair_UFD_A200000000000233-0:0
*********************** 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 ext2
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' 042d9587-9cc0-41da-8327-d6a57b597d1e
else
search --no-floppy --fs-uuid --set=root 042d9587-9cc0-41da-8327-d6a57b597d1e
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=1280x1024
load_video
insmod gfxterm
set locale_dir=$prefix/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_msdos
insmod ext2
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' 042d9587-9cc0-41da-8327-d6a57b597d1e
else
search --no-floppy --fs-uuid --set=root 042d9587-9cc0-41da-8327-d6a57b597d1e
fi
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' --class debian --class gnu-linux --class
gnu --class os $menuentry_id_option
'gnulinux-simple-042d9587-9cc0-41da-8327-d6a57b597d1e' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
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' 042d9587-9cc0-41da-8327-d6a57b597d1e
else
search --no-floppy --fs-uuid --set=root
042d9587-9cc0-41da-8327-d6a57b597d1e
fi
echo 'Loading Linux 3.8-1-amd64 ...'
linux /boot/vmlinuz-3.8-1-amd64
root=UUID=042d9587-9cc0-41da-8327-d6a57b597d1e ro
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.8-1-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option
'gnulinux-advanced-042d9587-9cc0-41da-8327-d6a57b597d1e' {
menuentry 'Debian GNU/Linux, with Linux 3.8-1-amd64' --class
debian --class gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-3.8-1-amd64-advanced-042d9587-9cc0-41da-8327-d6a57b597d1e' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
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'
042d9587-9cc0-41da-8327-d6a57b597d1e
else
search --no-floppy --fs-uuid --set=root
042d9587-9cc0-41da-8327-d6a57b597d1e
fi
echo 'Loading Linux 3.8-1-amd64 ...'
linux /boot/vmlinuz-3.8-1-amd64
root=UUID=042d9587-9cc0-41da-8327-d6a57b597d1e ro
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.8-1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.8-1-amd64 (recovery
mode)' --class debian --class gnu-linux --class gnu --class os
$menuentry_id_option
'gnulinux-3.8-1-amd64-recovery-042d9587-9cc0-41da-8327-d6a57b597d1e' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
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'
042d9587-9cc0-41da-8327-d6a57b597d1e
else
search --no-floppy --fs-uuid --set=root
042d9587-9cc0-41da-8327-d6a57b597d1e
fi
echo 'Loading Linux 3.8-1-amd64 ...'
linux /boot/vmlinuz-3.8-1-amd64
root=UUID=042d9587-9cc0-41da-8327-d6a57b597d1e ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.8-1-amd64
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
menuentry 'Debian GNU/Linux, with Xen hypervisor' --class debian
--class gnu-linux --class gnu --class os --class xen
$menuentry_id_option
'xen-gnulinux-simple-042d9587-9cc0-41da-8327-d6a57b597d1e' {
insmod part_msdos
insmod ext2
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' 042d9587-9cc0-41da-8327-d6a57b597d1e
else
search --no-floppy --fs-uuid --set=root
042d9587-9cc0-41da-8327-d6a57b597d1e
fi
echo 'Loading Xen 4.2-amd64 ...'
multiboot /boot/xen-4.2-amd64.gz placeholder
echo 'Loading Linux 3.8-1-amd64 ...'
module /boot/vmlinuz-3.8-1-amd64 placeholder
root=UUID=042d9587-9cc0-41da-8327-d6a57b597d1e ro
echo 'Loading initial ramdisk ...'
module /boot/initrd.img-3.8-1-amd64
}
submenu 'Advanced options for Debian GNU/Linux (with Xen hypervisor)'
$menuentry_id_option
'gnulinux-advanced-042d9587-9cc0-41da-8327-d6a57b597d1e' {
submenu 'Xen hypervisor, version 4.2-amd64' $menuentry_id_option
'xen-hypervisor-4.2-amd64-042d9587-9cc0-41da-8327-d6a57b597d1e' {
menuentry 'Debian GNU/Linux, with Xen 4.2-amd64 and Linux
3.8-1-amd64' --class debian --class gnu-linux --class gnu --class os
--class xen $menuentry_id_option
'xen-gnulinux-3.8-1-amd64-advanced-042d9587-9cc0-41da-8327-d6a57b597d1e'
{
insmod part_msdos
insmod ext2
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'
042d9587-9cc0-41da-8327-d6a57b597d1e
else
search --no-floppy --fs-uuid --set=root
042d9587-9cc0-41da-8327-d6a57b597d1e
fi
echo 'Loading Xen 4.2-amd64 ...'
multiboot /boot/xen-4.2-amd64.gz placeholder
echo 'Loading Linux 3.8-1-amd64 ...'
module /boot/vmlinuz-3.8-1-amd64 placeholder
root=UUID=042d9587-9cc0-41da-8327-d6a57b597d1e ro
echo 'Loading initial ramdisk ...'
module /boot/initrd.img-3.8-1-amd64
}
menuentry 'Debian GNU/Linux, with Xen 4.2-amd64 and Linux
3.8-1-amd64 (recovery mode)' --class debian --class gnu-linux --class
gnu --class os --class xen $menuentry_id_option
'xen-gnulinux-3.8-1-amd64-recovery-042d9587-9cc0-41da-8327-d6a57b597d1e'
{
insmod part_msdos
insmod ext2
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'
042d9587-9cc0-41da-8327-d6a57b597d1e
else
search --no-floppy --fs-uuid --set=root
042d9587-9cc0-41da-8327-d6a57b597d1e
fi
echo 'Loading Xen 4.2-amd64 ...'
multiboot /boot/xen-4.2-amd64.gz placeholder
echo 'Loading Linux 3.8-1-amd64 ...'
module /boot/vmlinuz-3.8-1-amd64 placeholder
root=UUID=042d9587-9cc0-41da-8327-d6a57b597d1e ro single
echo 'Loading initial ramdisk ...'
module /boot/initrd.img-3.8-1-amd64
}
}
submenu 'Xen hypervisor, version 4.1-amd64' $menuentry_id_option
'xen-hypervisor-4.1-amd64-042d9587-9cc0-41da-8327-d6a57b597d1e' {
menuentry 'Debian GNU/Linux, with Xen 4.1-amd64 and Linux
3.8-1-amd64' --class debian --class gnu-linux --class gnu --class os
--class xen $menuentry_id_option
'xen-gnulinux-3.8-1-amd64-advanced-042d9587-9cc0-41da-8327-d6a57b597d1e'
{
insmod part_msdos
insmod ext2
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'
042d9587-9cc0-41da-8327-d6a57b597d1e
else
search --no-floppy --fs-uuid --set=root
042d9587-9cc0-41da-8327-d6a57b597d1e
fi
echo 'Loading Xen 4.1-amd64 ...'
multiboot /boot/xen-4.1-amd64.gz placeholder
echo 'Loading Linux 3.8-1-amd64 ...'
module /boot/vmlinuz-3.8-1-amd64 placeholder
root=UUID=042d9587-9cc0-41da-8327-d6a57b597d1e ro
echo 'Loading initial ramdisk ...'
module /boot/initrd.img-3.8-1-amd64
}
menuentry 'Debian GNU/Linux, with Xen 4.1-amd64 and Linux
3.8-1-amd64 (recovery mode)' --class debian --class gnu-linux --class
gnu --class os --class xen $menuentry_id_option
'xen-gnulinux-3.8-1-amd64-recovery-042d9587-9cc0-41da-8327-d6a57b597d1e'
{
insmod part_msdos
insmod ext2
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'
042d9587-9cc0-41da-8327-d6a57b597d1e
else
search --no-floppy --fs-uuid --set=root
042d9587-9cc0-41da-8327-d6a57b597d1e
fi
echo 'Loading Xen 4.1-amd64 ...'
multiboot /boot/xen-4.1-amd64.gz placeholder
echo 'Loading Linux 3.8-1-amd64 ...'
module /boot/vmlinuz-3.8-1-amd64 placeholder
root=UUID=042d9587-9cc0-41da-8327-d6a57b597d1e ro single
echo 'Loading initial ramdisk ...'
module /boot/initrd.img-3.8-1-amd64
}
}
}
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Debian GNU/Linux (7.0)' --class gnu-linux --class gnu
--class os $menuentry_id_option
'osprober-gnulinux-simple-4f6d38d8-8e1c-4a9e-a932-c5014ec2f75f' {
insmod part_msdos
insmod ext2
set root='hd2,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1
--hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1
--hint='hd2,msdos1' 4f6d38d8-8e1c-4a9e-a932-c5014ec2f75f
else
search --no-floppy --fs-uuid --set=root
4f6d38d8-8e1c-4a9e-a932-c5014ec2f75f
fi
linux /boot/vmlinuz-3.2.0-4-amd64
root=UUID=4f6d38d8-8e1c-4a9e-a932-c5014ec2f75f ro
initrd /boot/initrd.img-3.2.0-4-amd64
}
submenu 'Advanced options for Debian GNU/Linux (7.0)'
$menuentry_id_option
'osprober-gnulinux-advanced-4f6d38d8-8e1c-4a9e-a932-c5014ec2f75f' {
menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (on
/dev/sdc1)' --class gnu-linux --class gnu --class os
$menuentry_id_option
'osprober-gnulinux-/boot/vmlinuz-3.2.0-4-amd64--4f6d38d8-8e1c-4a9e-a932-c5014ec2f75f'
{
insmod part_msdos
insmod ext2
set root='hd2,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root
--hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1
--hint-baremetal=ahci2,msdos1 --hint='hd2,msdos1'
4f6d38d8-8e1c-4a9e-a932-c5014ec2f75f
else
search --no-floppy --fs-uuid --set=root
4f6d38d8-8e1c-4a9e-a932-c5014ec2f75f
fi
linux /boot/vmlinuz-3.2.0-4-amd64
root=UUID=4f6d38d8-8e1c-4a9e-a932-c5014ec2f75f ro
initrd /boot/initrd.img-3.2.0-4-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (recovery
mode) (on /dev/sdc1)' --class gnu-linux --class gnu --class os
$menuentry_id_option
'osprober-gnulinux-/boot/vmlinuz-3.2.0-4-amd64-root=UUID=4f6d38d8-8e1c-4a9e-a932-c5014ec2f75f
ro single-4f6d38d8-8e1c-4a9e-a932-c5014ec2f75f' {
insmod part_msdos
insmod ext2
set root='hd2,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root
--hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1
--hint-baremetal=ahci2,msdos1 --hint='hd2,msdos1'
4f6d38d8-8e1c-4a9e-a932-c5014ec2f75f
else
search --no-floppy --fs-uuid --set=root
4f6d38d8-8e1c-4a9e-a932-c5014ec2f75f
fi
linux /boot/vmlinuz-3.2.0-4-amd64
root=UUID=4f6d38d8-8e1c-4a9e-a932-c5014ec2f75f ro single
initrd /boot/initrd.img-3.2.0-4-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.39-rc2 (on /dev/sdc1)'
--class gnu-linux --class gnu --class os $menuentry_id_option
'osprober-gnulinux-/boot/vmlinuz-2.6.39-rc2--4f6d38d8-8e1c-4a9e-a932-c5014ec2f75f'
{
insmod part_msdos
insmod ext2
set root='hd2,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root
--hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1
--hint-baremetal=ahci2,msdos1 --hint='hd2,msdos1'
4f6d38d8-8e1c-4a9e-a932-c5014ec2f75f
else
search --no-floppy --fs-uuid --set=root
4f6d38d8-8e1c-4a9e-a932-c5014ec2f75f
fi
linux /boot/vmlinuz-2.6.39-rc2 root=/dev/sda1 ro
}
menuentry 'Debian GNU/Linux, with Linux 2.6.39-rc2 (recovery mode)
(on /dev/sdc1)' --class gnu-linux --class gnu --class os
$menuentry_id_option
'osprober-gnulinux-/boot/vmlinuz-2.6.39-rc2-root=/dev/sda1 ro
single-4f6d38d8-8e1c-4a9e-a932-c5014ec2f75f' {
insmod part_msdos
insmod ext2
set root='hd2,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root
--hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1
--hint-baremetal=ahci2,msdos1 --hint='hd2,msdos1'
4f6d38d8-8e1c-4a9e-a932-c5014ec2f75f
else
search --no-floppy --fs-uuid --set=root
4f6d38d8-8e1c-4a9e-a932-c5014ec2f75f
fi
linux /boot/vmlinuz-2.6.39-rc2 root=/dev/sda1 ro single
}
}
### 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
ls: cannot access /dev/disk/by-id: No such file or directory
*********************** END /dev/disk/by-id
*********************** BEGIN /dev/disk/by-uuid
ls: cannot access /dev/disk/by-uuid: No such file or directory
*********************** END /dev/disk/by-uuid
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.2.0-4-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
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:
* grub-pc/linux_cmdline:
* grub2/linux_cmdline:
grub-pc/install_devices_failed: false
* grub-pc/chainload_from_menu.lst: true
grub-pc/kopt_extracted: false
grub-pc/postrm_purge_boot_grub: false
grub-pc/disk_description:
grub2/kfreebsd_cmdline_default: quiet
* grub2/linux_cmdline_default:
grub-pc/install_devices_empty: false
* grub-pc/install_devices:
/dev/disk/by-id/ata-WDC_WD1002FAEX-00Z3A0_WD-WCATR5323755
grub-pc/install_devices_failed_upgrade: true
grub-pc/partition_description:
* grub-pc/install_devices_disks_changed:
/dev/disk/by-id/ata-WDC_WD1002FAEX-00Z3A0_WD-WCATR5323755
grub-pc/mixed_legacy_and_grub2: true
More information about the Pkg-grub-devel
mailing list