[arch-general] Can't Install GRUB on a GPT Formatted Disk
I'm trying to get GRUB installed on a pure GPT disk (I didn't know it was best to make a hybrid MBR/GPT), and it looks like a patch was added back in March 2008 for this (http://bugs.archlinux.org/task/9864), but it continues to fail. My layout is as follows on the drive: /dev/sda1 /boot /dev/sda2 LVM system_vg /dev/sdb1 LVM data_vg # lvs LV VG Attr LSize home_lv data_vg -wi-ao 500.00GB root_lv system_vg -wi-ao 64.00GB swap_lv system_vg -wc-ao 2.00GB var_lv system_vg -wi-ao 12.00GB # grub grub> device (hd0) /dev/sda grub> root (hd0,0) Filesystem type unknown, partition type 0xee grub> setup (hd0) Error 17: Cannot mount selected partition grub> quit Any thoughts? -- Aaron "ElasticDog" Schaefer
On Sun, Oct 18, 2009 at 9:47 AM, Aaron Schaefer <aaron@elasticdog.com> wrote:
I'm trying to get GRUB installed on a pure GPT disk (I didn't know it was best to make a hybrid MBR/GPT), and it looks like a patch was added back in March 2008 for this (http://bugs.archlinux.org/task/9864), but it continues to fail.
Looking through SVN, for some reason this patch was removed on the GRUB 0.97-14 PKGBUILD and was never re-added. Is there any way I can build this package on the installation CD to get things going? -- Aaron "ElasticDog" Schaefer
On Sun, Oct 18, 2009 at 10:57 AM, Aaron Schaefer <aaron@elasticdog.com> wrote:
On Sun, Oct 18, 2009 at 9:47 AM, Aaron Schaefer <aaron@elasticdog.com> wrote:
I'm trying to get GRUB installed on a pure GPT disk (I didn't know it was best to make a hybrid MBR/GPT), and it looks like a patch was added back in March 2008 for this (http://bugs.archlinux.org/task/9864), but it continues to fail.
Looking through SVN, for some reason this patch was removed on the GRUB 0.97-14 PKGBUILD and was never re-added. Is there any way I can build this package on the installation CD to get things going?
On Sun, Oct 18, 2009 at 11:02 AM, Dan McGee <dpmcgee@gmail.com> wrote:
Thanks! I've applied that updated patch, and GRUB seems to install okay, but when I boot I don't get the standard GRUB menu, I just get dropped into the GRUB console...my menu.lst looks like this: # (0) Arch Linux title Arch Linux root (hd0,0) kernel /vmlinuz26 root=/dev/mapper/system_vg-root_lv ro initrd /kernel26.img I'm a little confused on the root declarations...I'm assuming the root (hd0,0) should be pointing to the actual /boot partition, and then the root kernel parameter points to the actual / partition (in this case an LVM partition), correct? -- Aaron "ElasticDog" Schaefer
On Sun, 18 Oct 2009 21:19:05 +0200, Aaron Schaefer <aaron@elasticdog.com> wrote:
On Sun, Oct 18, 2009 at 11:02 AM, Dan McGee <dpmcgee@gmail.com> wrote:
Thanks! I've applied that updated patch, and GRUB seems to install okay, but when I boot I don't get the standard GRUB menu, I just get dropped into the GRUB console...my menu.lst looks like this:
# (0) Arch Linux title Arch Linux root (hd0,0) kernel /vmlinuz26 root=/dev/mapper/system_vg-root_lv ro initrd /kernel26.img
I'm a little confused on the root declarations...I'm assuming the root (hd0,0) should be pointing to the actual /boot partition, and then the root kernel parameter points to the actual / partition (in this case an LVM partition), correct?
-- Aaron "ElasticDog" Schaefer
Seems correct, but you explain it a little confusing. I hope the example clears some things my grub: # (0) Arch Linux title Arch Linux root (hd0,0) #kernel /vmlinuz26 root=/dev/sda3 init=/sbin/bootchartd ro vga=865 kernel /vmlinuz26 root=/dev/sda3 ro vga=865 initrd /kernel26.img my 'df -h': Filesystem Size Used Avail Use% Mounted on /dev/sda3 15G 8.7G 5.4G 62% / none 1001M 208K 1001M 1% /dev none 1001M 12K 1001M 1% /dev/shm /dev/sda1 38M 5.9M 31M 17% /boot /dev/sda4 94G 73G 16G 83% /home (ps: Hi everybody, I'm new on the list, this is my first post) -- Jeroen Op 't Eynde jeroen@xprsyrslf.be http://xprsyrslf.be
On Sun, Oct 18, 2009 at 10:19 PM, Aaron Schaefer <aaron@elasticdog.com>wrote:
On Sun, Oct 18, 2009 at 11:02 AM, Dan McGee <dpmcgee@gmail.com> wrote:
Thanks! I've applied that updated patch, and GRUB seems to install okay, but when I boot I don't get the standard GRUB menu, I just get dropped into the GRUB console...my menu.lst looks like this:
# (0) Arch Linux title Arch Linux root (hd0,0) kernel /vmlinuz26 root=/dev/mapper/system_vg-root_lv ro initrd /kernel26.img
I'm a little confused on the root declarations...I'm assuming the root (hd0,0) should be pointing to the actual /boot partition, and then the root kernel parameter points to the actual / partition (in this case an LVM partition), correct?
-- Aaron "ElasticDog" Schaefer
Yes, that is correct. However, my menu.lst generated by default install has root=/dev/disk/by-uuid/longuuid, boots fine (also with lvm). I don't think it should matter, however. You can try putting the timout line there, if you don't have it there. Priit -- Priit Kivisoo
Well, thanks for the help everyone...at this point, I think I'm giving up on my GPT dreams and am going to switch back to straight-up MBR. I have been able to patch and use GRUB when booting off the installer CD, and launching the GRUB console from /mnt/sbin/grub works like a charm. But, as soon as I either "chroot /mnt" or reboot and boot off of the hard drive itself, it seems like the GRUB console is unable to read the filesystems and won't mount the partitions. Yes, I did upgrade the version of GRUB on the actual hard drive (not just the one used by the live CD, that's /sbin/grub,), but that didn't seem to make any difference. Such is life... -- Aaron "ElasticDog" Schaefer
participants (4)
-
Aaron Schaefer
-
Dan McGee
-
Jeroen Op 't Eynde
-
Priit Kivisoo