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

Robert Millan rmh at aybabtu.com
Sat Jul 5 10:44:56 UTC 2008


On Sat, Jul 05, 2008 at 08:46:48AM +0800, Quinn Li wrote:
> >> 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)'

I assume you mean '(hd0,1)' here (because of the line below).

> >> /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'.

Please try:

  grub-setup -v '(hd0)'

and send the output.

-- 
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