Bug#641848: grub-pc: cannot read /grub/core.img correctly error
Martin Kourim
martin.kourim at gmail.com
Fri Sep 16 19:02:09 UTC 2011
Package: grub-pc
Version: 1.99-12
Severity: normal
Hi,
on my computer, grub is installed on /dev/sda1 partition. During upgrade to version 1.99-12 of grub-pc, the following error occured:
Setting up grub-pc (1.99-12) ...
/usr/sbin/grub-setup: warn: Attempting to install GRUB to a partitionless disk or to a partition. This is a BAD idea..
/usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
/usr/sbin/grub-setup: error: cannot read `/grub/core.img' correctly.
Then following dialog is displayed:
"GRUB failed to install to the following devices:
/dev/sda1
Do you want to continue anyway? If you do, your computer may not start up properly.
Writing GRUB to boot device failed - continue?
<Yes> <No>"
If I select "No", the error above and the dialog box is repeated.
The installation run the grub-setup as:
/usr/sbin/grub-setup --force --directory=/boot/grub --device-map=/boot/grub/device.map /dev/sda1
Manual execution of the command above leads to the same error.
Thanks,
Martin Kourim
-- Package-specific info:
*********************** WARNING grub-setup left core.img in filesystem
*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/ceb81ec8-e820-4931-ae82-64824f8b51a1 / btrfs rw,relatime 0 0
/dev/mapper/sda6_crypt /home btrfs rw,relatime 0 0
/dev/sda1 /boot ext4 rw,relatime,user_xattr,barrier=1,data=ordered 0 0
*********************** END /proc/mounts
*********************** BEGIN /boot/grub/device.map
(hd0) /dev/disk/by-id/ata-HITACHI_HTS723232A7A364_E3834563JNSUVN
(hd1) /dev/disk/by-id/usb-Ut165_USB2FlashStorage_080730c5a44754-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 [ "${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 vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
insmod part_msdos
insmod btrfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root ceb81ec8-e820-4931-ae82-64824f8b51a1
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root a4248648-5790-43c6-a7de-fdbe011b1594
set locale_dir=($root)/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_msdos
insmod btrfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root ceb81ec8-e820-4931-ae82-64824f8b51a1
insmod png
if background_image /usr/share/images/desktop-base/spacefun-grub.png; then
set color_normal=light-gray/black
set color_highlight=white/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 3.0.0-1-amd64' --class debian --class gnu-linux --class gnu --class os {
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root a4248648-5790-43c6-a7de-fdbe011b1594
echo 'Loading Linux 3.0.0-1-amd64 ...'
linux /vmlinuz-3.0.0-1-amd64 root=UUID=ceb81ec8-e820-4931-ae82-64824f8b51a1 ro i915.i915_enable_rc6=1 i915.lvds_downclock=1 quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-3.0.0-1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.0.0-1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root a4248648-5790-43c6-a7de-fdbe011b1594
echo 'Loading Linux 3.0.0-1-amd64 ...'
linux /vmlinuz-3.0.0-1-amd64 root=UUID=ceb81ec8-e820-4931-ae82-64824f8b51a1 ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-3.0.0-1-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 ###
### 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 16 20:17 ata-HITACHI_HTS723232A7A364_E3834563JNSUVN -> ../../sda
lrwxrwxrwx 1 root root 10 Sep 11 23:12 ata-HITACHI_HTS723232A7A364_E3834563JNSUVN-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep 11 23:12 ata-HITACHI_HTS723232A7A364_E3834563JNSUVN-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Sep 11 23:12 ata-HITACHI_HTS723232A7A364_E3834563JNSUVN-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Sep 11 23:12 ata-HITACHI_HTS723232A7A364_E3834563JNSUVN-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Sep 11 23:12 ata-HITACHI_HTS723232A7A364_E3834563JNSUVN-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Sep 11 22:38 dm-name-sda5_crypt -> ../../dm-0
lrwxrwxrwx 1 root root 10 Sep 11 23:12 dm-name-sda6_crypt -> ../../dm-1
lrwxrwxrwx 1 root root 10 Sep 11 23:12 dm-uuid-CRYPT-LUKS1-60f131965a3445c3b24495f8c5090afd-sda6_crypt_unformatted -> ../../dm-1
lrwxrwxrwx 1 root root 10 Sep 11 22:38 dm-uuid-CRYPT-LUKS1-c2e226b611c748b493af744fb96c99a5-sda5_crypt -> ../../dm-0
lrwxrwxrwx 1 root root 9 Sep 16 20:17 scsi-SATA_HITACHI_HTS7232_E3834563JNSUVN -> ../../sda
lrwxrwxrwx 1 root root 10 Sep 11 23:12 scsi-SATA_HITACHI_HTS7232_E3834563JNSUVN-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep 11 23:12 scsi-SATA_HITACHI_HTS7232_E3834563JNSUVN-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Sep 11 23:12 scsi-SATA_HITACHI_HTS7232_E3834563JNSUVN-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Sep 11 23:12 scsi-SATA_HITACHI_HTS7232_E3834563JNSUVN-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Sep 11 23:12 scsi-SATA_HITACHI_HTS7232_E3834563JNSUVN-part6 -> ../../sda6
lrwxrwxrwx 1 root root 9 Sep 16 20:17 wwn-0x5000cca61de59fe6 -> ../../sda
lrwxrwxrwx 1 root root 10 Sep 11 23:12 wwn-0x5000cca61de59fe6-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep 11 23:12 wwn-0x5000cca61de59fe6-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Sep 11 23:12 wwn-0x5000cca61de59fe6-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Sep 11 23:12 wwn-0x5000cca61de59fe6-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Sep 11 23:12 wwn-0x5000cca61de59fe6-part6 -> ../../sda6
*********************** END /dev/disk/by-id
*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Sep 11 23:12 28114504-fff1-4c95-8bf4-de30474f1d73 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Sep 11 23:12 60f13196-5a34-45c3-b244-95f8c5090afd -> ../../sda6
lrwxrwxrwx 1 root root 10 Sep 11 22:38 6ecaedcf-4d5e-4e16-b3e3-04e84aaa2b68 -> ../../dm-0
lrwxrwxrwx 1 root root 10 Sep 11 23:12 a4248648-5790-43c6-a7de-fdbe011b1594 -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep 11 23:12 c2e226b6-11c7-48b4-93af-744fb96c99a5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Sep 11 23:12 ceb81ec8-e820-4931-ae82-64824f8b51a1 -> ../../sda2
*********************** END /dev/disk/by-uuid
-- System Information:
Debian Release: wheezy/sid
APT prefers testing-proposed-updates
APT policy: (700, 'testing-proposed-updates'), (700, 'testing'), (200, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=cs_CZ.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.40
ii grub-common 1.99-12
ii grub-pc-bin 1.99-12
ii grub2-common 1.99-12
ii ucf 3.0025+nmu2
grub-pc recommends no packages.
grub-pc suggests no packages.
-- debconf information:
grub-pc/kopt_extracted: false
grub2/kfreebsd_cmdline:
grub2/device_map_regenerated:
* grub-pc/install_devices: /dev/disk/by-id/ata-HITACHI_HTS723232A7A364_E3834563JNSUVN-part1
grub-pc/postrm_purge_boot_grub: false
grub-pc/install_devices_failed_upgrade: true
grub-pc/disk_description:
* grub2/linux_cmdline:
grub-pc/install_devices_empty: false
grub2/kfreebsd_cmdline_default: quiet
grub-pc/partition_description:
* grub-pc/install_devices_failed: true
grub-pc/install_devices_disks_changed:
* grub2/linux_cmdline_default: i915.i915_enable_rc6=1 i915.lvds_downclock=1 quiet
grub-pc/chainload_from_menu.lst: true
grub-pc/mixed_legacy_and_grub2: true
More information about the Pkg-grub-devel
mailing list