Installing grub 1.95 on a GPT-partitioned system
Hi,
GRUB 2 (1.95) refused to get installed on a GPT-partitioned server.
The layout is as follows:
parted:
Disk /dev/sda: 3000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags 1 17.4kB 32.0GB 32.0GB ext3 root 2 32.0GB 33.0GB 1000MB linux-swap swap 3 33.0GB 3000GB 2967GB data
/proc/partitions:
major minor #blocks name
8 0 2929686528 sda 8 1 31249983 sda1 8 2 976562 sda2 8 3 2897459948 sda3 8 16 488386584 sdb 8 17 15623181 sdb1 8 18 979965 sdb2
grub-setup fails with:
datadump:~# grub-setup --root-device='(hd0,0)' '(hd0)' grub-setup: error: unknown device datadump:~#
and grub-install has misleading errors:
datadump:/boot/grub# grub-install --root-directory=/ --modules=gpt.mod --modules=ext2.mod '(hd0)' cannot find a GRUB drive for /dev/sda1. grub-setup: error: Cannot guess the root device. Specify the option ``--root-device''. datadump:/boot/grub# grub-install --root-directory=/ --modules=gpt.mod --modules=ext2.mod --root-device='(hd0,0)' '(hd0)' Unrecognized option `--root-device=(hd0,0)' [..]
The rootdevice was /dev/sda1 while I tried this, booting from a second block device containing only the bootloader and kernel.
Are there any quick (bandaid?) fixes to resolve this problem or should I use a different "hackaround" in the meanwhile?
best regards,
Michael Renner
Quoted 1 line · Michael Renner <robe <at> amd.co.at> writes:
GRUB 2 (1.95) refused to get installed on a GPT-partitioned server.
[..]
Just wanted to follow-up that GRUB 0.97 with Marco's patch [1] worked flawlessly, I'm using that until those issues are sorted out in GRUB2.
[1] http://lists.gnu.org/archive/html/bug-grub/2006-07/msg00037.html
best regards,
Michael renner