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

Robert Millan rmh at aybabtu.com
Fri Jul 4 19:20:55 UTC 2008


On Sat, Jul 05, 2008 at 01:43:19AM +0800, Quinn Li wrote:
> 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

Please include the output of:

  sudo bash -c "/usr/share/bug/grub-pc/script 3>&1"

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What good is a phone call… if you are unable to speak?
(as seen on /.)





More information about the Pkg-grub-devel mailing list