Bug#494589: grub-pc: grub-install fails on GPT volume

Felix Zielcke fzielcke at z-51.de
Mon Aug 11 17:22:15 UTC 2008


Am Montag, den 11.08.2008, 10:09 -0400 schrieb Edward Allcutt:
> grub-setup fails in exactly the same way, however grub-fstest seems to 
> have no problem at all with the new core.img:
> root at emallcut-x:~# grub-fstest -vvv /dev/sda1 cmp /grub/core.img \
> /boot/grub/core.img; echo $?
> 0
> 
> Am I using grub-fstest wrong or does this imply grub-setup is broken?

Weird that this worked for you, I had to use:

fz:~# grub-fstest -vvv /dev/hda cmp "(loop,2)/boot/grub/core.img" /boot/grub/core.img
fz:~# grub-fstest -vvv /dev/hda ls "(loop,2)/boot/grub/core.img"
core.img 

hda2 contains my linux /
As you can see with `grub-fstest -h' it has a ls command which works just like real GRUB's one.
grub-fstest is using loop instead of hd as you can see above.

> grub-setup: info: couldn't open the core image
> grub-setup: info: error message = file not found

I should have written that part on my mail too.
So please try again grub-fstest like above.

>I've also noticed that when using grub-emu I get other errors:
> grub> insmod (hd0,1)/grub/gpt.mod
> error: invalid arch independent ELF magic
> 
> For all I know this is "normal" but it seemed worth mentioning.

This is really normal, nothing to worry about.
grub-emu just doestn't support the modules at all.
But you shouldn't need them, i.e. `ls' command should display your
harddisks and partitions just like real GRUB's one or grub-fstest's.

>Would `dd bs=512 if=/dev/sda1 | gzip >sda1` be sufficient as the 
> filesystem image or would the GPT table be necessary too?

I just started with the GRUB project and I think Robert is neither a
filesystem/partition expert so better have this whole discussion
upstream (i.e. grub-devel).
It doestn't hurt if you attach the first 1024 bytes of your disk which
should contain enough information of the GPT (according to Wikipedia).

I forgot that you already have a /boot partition so that should be small
enough already :)

By the way: bzip2 compresses better then the gzip you used above and the
grub-devel lists rejects mails something bigger as 1 MB or so. So better
find a place to upload the boot.img like rapidshare.







More information about the Pkg-grub-devel mailing list