Bug#623124: grub-pc: grub-setup fails to install on /dev/sdaX since 1.99~rc1-9 (blocklist?)

Colin Darie colindarie at gmail.com
Sun Apr 17 15:01:35 UTC 2011


Package: grub-pc
Version: 1.99~rc1-13
Severity: important

Since 1.99~rc1-9 version of package, grub-setup fails to update grub on my boot
partition (/dev/sda4) with the following messages:

Paramétrage de grub-common (1.99~rc1-13) ...
Paramétrage de grub-pc (1.99~rc1-13) ...
/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: impossible de lire `/grub/core.img' correctement.
Generating grub.cfg ...
....

Note that /grub/core.img does not exist, it's should be
/boot/grub/core.img instead I guess.

If I reboot, grub does not work at all: I can see GRUB at top of screen but
nothing happens (I can't see the menu). (However I think it's "normal" and
acceptable since I was warned about failure installation.)
All versions fail since rc1-9, including rc1-13 (rc1-8 works fine).

Here the output of grub-setup
# grub-setup -v /dev/sda4
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: scanning hd0 for LVM.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: no LVM signature found
.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: scanning hd0 for LVM.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: no LVM signature found
.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: scanning hd0,gpt5 for LVM.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: no LVM signature found
.
grub-setup: info: scanning hd0,gpt4 for LVM.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: no LVM signature found
.
grub-setup: info: scanning hd0,gpt3 for LVM.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: no LVM signature found
.
grub-setup: info: scanning hd0,gpt2 for LVM.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: no LVM signature found
.
grub-setup: info: scanning hd0,gpt1 for LVM.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: no LVM signature found
.
grub-setup: info: /dev/sda4 starts from 195460000.
grub-setup: info: opening the device hd0.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: Partition 0 starts from 40.
grub-setup: info: Partition 1 starts from 409640.
grub-setup: info: Partition 2 starts from 195723264.
grub-setup: info: Partition 3 starts from 195460000.
grub-setup: info: transformed OS device `/dev/sda4' into GRUB device
`hd0,gpt4'.
grub-setup: info: changing current directory to /dev.
grub-setup: info: changing current directory to v4l.
grub-setup: info: changing current directory to by-path.
grub-setup: info: changing current directory to by-id.
grub-setup: info: changing current directory to snd.
grub-setup: info: changing current directory to by-path.
grub-setup: info: changing current directory to cpu.
grub-setup: info: changing current directory to shm.
grub-setup: info: changing current directory to VM_group.
grub-setup: info: changing current directory to usb.
grub-setup: info: changing current directory to disk.
grub-setup: info: changing current directory to by-label.
grub-setup: info: changing current directory to by-uuid.
grub-setup: info: changing current directory to by-path.
grub-setup: info: changing current directory to by-id.
grub-setup: info: changing current directory to block.
grub-setup: info: /dev/sda4 starts from 195460000.
grub-setup: info: opening the device hd0.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: Partition 0 starts from 40.
grub-setup: info: Partition 1 starts from 409640.
grub-setup: info: Partition 2 starts from 195723264.
grub-setup: info: Partition 3 starts from 195460000.
grub-setup: info: guessed root device `/dev/sda4' and root_dev `hd0,gpt4' from
dir `/boot/grub'.
grub-setup: info: getting the size of /boot/grub/boot.img.
grub-setup: info: reading /boot/grub/boot.img.
grub-setup: info: getting the size of /boot/grub/boot.img.
grub-setup: info: getting the size of /boot/grub/core.img.
grub-setup: info: reading /boot/grub/core.img.
grub-setup: info: getting the size of /boot/grub/core.img.
grub-setup: info: root is `hd0,gpt4', dest is `hd0,gpt4'.
grub-setup: info: Opening root.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: Opening dest.
grub-setup: info: the size of hd0 is 488397168.
grub-setup: info: setting the root device to `hd0,gpt4'.
grub-setup: warn: Attempting to install GRUB to a partitionless disk or to a
partition.  This is a BAD idea..
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..
grub-setup: error: will not proceed with blocklists.





-- Package-specific info:

*********************** WARNING grub-setup left core.img in filesystem

*********************** BEGIN /proc/mounts
/dev/mapper/VM_group-LV_system / ext4
rw,relatime,errors=remount-ro,commit=600,barrier=1,data=ordered 0 0
/dev/sda4 /boot ext2 rw,relatime,errors=continue 0 0
/dev/mapper/VM_group-LV_home /home ext4
rw,relatime,commit=600,barrier=1,data=ordered 0 0
/dev/sda5 /src ext4 rw,relatime,commit=600,barrier=1,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/disk/by-id/ata-Hitachi_HTS545025B9SA02_090721PBC200QSHRZMKG
*********************** 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_gpt
insmod ext2
set root='(hd0,gpt4)'
search --no-floppy --fs-uuid --set=root 9a6651f2-943b-4781-8e94-fa19f31fe32f
if loadfont /grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_gpt
insmod ext2
set root='(hd0,gpt4)'
search --no-floppy --fs-uuid --set=root 9a6651f2-943b-4781-8e94-fa19f31fe32f
set locale_dir=($root)/grub/locale
set lang=fr_FR
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_gpt
insmod ext2
set root='(hd0,gpt4)'
search --no-floppy --fs-uuid --set=root 9a6651f2-943b-4781-8e94-fa19f31fe32f
insmod png
if background_image /grub/.background_cache.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, avec Linux 2.6.38-1-amd64' --class debian
--class gnu-linux --class gnu --class os {
	insmod part_gpt
	insmod ext2
	set root='(hd0,gpt4)'
	search --no-floppy --fs-uuid --set=root 9a6651f2-943b-4781-8e94-fa19f31fe32f
	echo	'Loading Linux 2.6.38-1-amd64 ...'
	linux	/vmlinuz-2.6.38-1-amd64 root=/dev/mapper/VM_group-LV_system ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-2.6.38-1-amd64
}
menuentry 'Debian GNU/Linux, avec Linux 2.6.38-1-amd64 (mode de
dépannage)' --class debian --class gnu-linux --class gnu --class os {
	insmod part_gpt
	insmod ext2
	set root='(hd0,gpt4)'
	search --no-floppy --fs-uuid --set=root 9a6651f2-943b-4781-8e94-fa19f31fe32f
	echo	'Loading Linux 2.6.38-1-amd64 ...'
	linux	/vmlinuz-2.6.38-1-amd64 root=/dev/mapper/VM_group-LV_system ro single
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-2.6.38-1-amd64
}
menuentry 'Debian GNU/Linux, avec Linux 2.6.32-5-amd64' --class debian
--class gnu-linux --class gnu --class os {
	insmod part_gpt
	insmod ext2
	set root='(hd0,gpt4)'
	search --no-floppy --fs-uuid --set=root 9a6651f2-943b-4781-8e94-fa19f31fe32f
	echo	'Loading Linux 2.6.32-5-amd64 ...'
	linux	/vmlinuz-2.6.32-5-amd64 root=/dev/mapper/VM_group-LV_system ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-2.6.32-5-amd64
}
menuentry 'Debian GNU/Linux, avec Linux 2.6.32-5-amd64 (mode de
dépannage)' --class debian --class gnu-linux --class gnu --class os {
	insmod part_gpt
	insmod ext2
	set root='(hd0,gpt4)'
	search --no-floppy --fs-uuid --set=root 9a6651f2-943b-4781-8e94-fa19f31fe32f
	echo	'Loading Linux 2.6.32-5-amd64 ...'
	linux	/vmlinuz-2.6.32-5-amd64 root=/dev/mapper/VM_group-LV_system ro single
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-2.6.32-5-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 "Mac OS X (32-bit) (on /dev/sda2)" --class osx --class
darwin --class os {
	insmod part_gpt
	insmod hfsplus
	set root='(hd0,gpt2)'
	search --no-floppy --fs-uuid --set=root c96840a1ae50db75
        load_video
        set do_resume=0
        if [ /var/vm/sleepimage -nt10 / ]; then
           if xnu_resume /var/vm/sleepimage; then
             set do_resume=1
           fi
        fi
        if [ $do_resume = 0 ]; then
           xnu_uuid c96840a1ae50db75 uuid
           if [ -f /Extra/DSDT.aml ]; then
              acpi -e /Extra/DSDT.aml
           fi
           xnu_kernel /mach_kernel boot-uuid=${uuid} rd=*uuid
           if [ /System/Library/Extensions.mkext -nt
/System/Library/Extensions ]; then
              xnu_mkext /System/Library/Extensions.mkext
           else
              xnu_kextdir /System/Library/Extensions
           fi
           if [ -f /Extra/Extensions.mkext ]; then
              xnu_mkext /Extra/Extensions.mkext
           fi
           if [ -d /Extra/Extensions ]; then
              xnu_kextdir /Extra/Extensions
           fi
           if [ -f /Extra/devprop.bin ]; then
              xnu_devprop_load /Extra/devprop.bin
           fi
           if [ -f /Extra/splash.jpg ]; then
              insmod jpeg
              xnu_splash /Extra/splash.jpg
           fi
           if [ -f /Extra/splash.png ]; then
              insmod png
              xnu_splash /Extra/splash.png
           fi
           if [ -f /Extra/splash.tga ]; then
              insmod tga
              xnu_splash /Extra/splash.tga
           fi
        fi
}
menuentry "Mac OS X (64-bit) (on /dev/sda2)" --class osx --class
darwin --class os {
	insmod part_gpt
	insmod hfsplus
	set root='(hd0,gpt2)'
	search --no-floppy --fs-uuid --set=root c96840a1ae50db75
        load_video
        set do_resume=0
        if [ /var/vm/sleepimage -nt10 / ]; then
           if xnu_resume /var/vm/sleepimage; then
             set do_resume=1
           fi
        fi
        if [ $do_resume = 0 ]; then
           xnu_uuid c96840a1ae50db75 uuid
           if [ -f /Extra/DSDT.aml ]; then
              acpi -e /Extra/DSDT.aml
           fi
           xnu_kernel64 /mach_kernel boot-uuid=${uuid} rd=*uuid
           if [ /System/Library/Extensions.mkext -nt
/System/Library/Extensions ]; then
              xnu_mkext /System/Library/Extensions.mkext
           else
              xnu_kextdir /System/Library/Extensions
           fi
           if [ -f /Extra/Extensions.mkext ]; then
              xnu_mkext /Extra/Extensions.mkext
           fi
           if [ -d /Extra/Extensions ]; then
              xnu_kextdir /Extra/Extensions
           fi
           if [ -f /Extra/devprop.bin ]; then
              xnu_devprop_load /Extra/devprop.bin
           fi
           if [ -f /Extra/splash.jpg ]; then
              insmod jpeg
              xnu_splash /Extra/splash.jpg
           fi
           if [ -f /Extra/splash.png ]; then
              insmod png
              xnu_splash /Extra/splash.png
           fi
           if [ -f /Extra/splash.tga ]; then
              insmod tga
              xnu_splash /Extra/splash.tga
           fi
        fi
}
### 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 LVM

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

Kernel: Linux 2.6.38-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]        1.5.38      Debian configuration management sy
ii  grub-common                  1.99~rc1-13 GRand Unified Bootloader, version
ii  libc6                        2.11.2-13   Embedded GNU C Library: Shared lib
ii  libdevmapper1.02.1           2:1.02.63-3 The Linux Kernel Device Mapper use
ii  ucf                          3.0025+nmu1 Update Configuration File: preserv

grub-pc recommends no packages.

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

-- debconf information:
  grub2/kfreebsd_cmdline:
  grub2/device_map_regenerated:
* grub2/linux_cmdline:
  grub-pc/install_devices_empty: true
* grub-pc/install_devices_failed: true
  grub-pc/chainload_from_menu.lst: true
  grub-pc/kopt_extracted: false
* grub-pc/install_devices:
/dev/disk/by-id/ata-Hitachi_HTS545025B9SA02_090721PBC200QSHRZMKG-part4
  grub-pc/postrm_purge_boot_grub: false
  grub-pc/install_devices_failed_upgrade: true
  grub-pc/disk_description:
  grub2/kfreebsd_cmdline_default: quiet
  grub-pc/partition_description:
  grub-pc/install_devices_disks_changed:
* grub2/linux_cmdline_default: quiet
  grub-pc/mixed_legacy_and_grub2: true





More information about the Pkg-grub-devel mailing list