Bug#489287: grub-install to GPT disk failed: Cannot read `/boot/grub/core.img' correctly

Quinn Li quinn.liqin at gmail.com
Fri Jul 4 17:43:19 UTC 2008


Package: grub2
Version: 1.96+20080626-1
Severity: important

I have two harddisks on my PC, /dev/sda(hd0) and /dev/sdb(hd1). sda uses GUID partition table, sdb uses MSDOS partition table.

I'm unable to install grub2 to /dev/sda. when I invoke sudo grub-install '(hd0,1)', or to (hd0), or any other partition on /dev/sda, I got:

sudo grub-install '(hd1)'
/usr/sbin/grub-setup --directory=/boot/grub --device-map=/boot/grub/device.map (hd0,1)
grub-setup: error: Cannot read `/boot/grub/core.img' correctly

But it is OK for me to install grub2 to sdb.

sudo grub-install '(hd1)'
/usr/sbin/grub-setup --directory=/boot/grub --device-map=/boot/grub/device.map (hd1)
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(hd0)	/dev/sda
(hd1)	/dev/sdb

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash





More information about the Pkg-grub-devel mailing list