Hi there -
short version: if I want to boot to partition /dev/sdc2 (GPT) from the main grub menu on /dev/sda (MBR, booted non-UEFI on UEFI mobo), do I need to do the whole "BIOS Boot Partition" thing and install grub to /dev/sdc, or is there a better/easier/simpler way?
long version:
Dual boot Win8 and 13.04 on /dev/sda, which is MBR.
My mobo is UEFI, but it's booting to grub non-UEFI (long story). Because I installed kubuntu from a flash drive which was booted UEFI, the grub package installed was grub-efi rather than grub-pc. Booting things on /dev/sda is working fine.
/dev/sdc is GPT and /dev/sdc2 is the location of an intended system rescue CD installation (and /dev/sdc3 will eventually be an alternative linux distro). Thus I want to be able to boot to that partition on startup from the grub screen.
I followed the system rescue CD instructions at http://www.sysresccd.org/Sysresccd-m...Cd_on_harddisk (basically you just copy things from the mounted ISO image to the partition into a subdirectory)
My /etc/grub.d/40_custom entry is:
update-grub works fine for inserting that into the menu, but when I try to boot it from startup I get "no such partition" errors.
I thought "oh, maybe i have to install grub to /dev/sdc for some reason". grub-install /dev/sdc fails with the error saying i need either "--target" or "--directory" specified.
Based on some googling, it seems that running grub-efi binaries when you're booted non-EFI is possibly the cause of that error (unless they just meant when you're working with an MBR disk...), and the recommended solution is:
...which I did. A different set of failures (same as the ones coming up below), so I did:
Then when I tried grub-install /dev/sdc I get:
Maybe the reinstalls borked grub, so I made a symlink from /usr/sbin/grub-bios-setup to /usr/lib/i386-linux-gnu/grub-bios-setup (based on http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=705636 )
Now when I try to grub-install (with grub-efi or grub-pc) to /dev/sdc I get:
I've read some language to the effect that if I want grub to boot a GPT disk, I need a boot partition on that disk, so maybe that's the issue. Anyway, any help in getting this stuff sorted out is greatly appreciated. I don't know that i necessarily even want to "embed" on to sdc, I just want to be able to boot that partition.
Thanks for any insight!
short version: if I want to boot to partition /dev/sdc2 (GPT) from the main grub menu on /dev/sda (MBR, booted non-UEFI on UEFI mobo), do I need to do the whole "BIOS Boot Partition" thing and install grub to /dev/sdc, or is there a better/easier/simpler way?
long version:
Dual boot Win8 and 13.04 on /dev/sda, which is MBR.
My mobo is UEFI, but it's booting to grub non-UEFI (long story). Because I installed kubuntu from a flash drive which was booted UEFI, the grub package installed was grub-efi rather than grub-pc. Booting things on /dev/sda is working fine.
/dev/sdc is GPT and /dev/sdc2 is the location of an intended system rescue CD installation (and /dev/sdc3 will eventually be an alternative linux distro). Thus I want to be able to boot to that partition on startup from the grub screen.
I followed the system rescue CD instructions at http://www.sysresccd.org/Sysresccd-m...Cd_on_harddisk (basically you just copy things from the mounted ISO image to the partition into a subdirectory)
My /etc/grub.d/40_custom entry is:
Code:
menuentry "System Rescue CD 3.7.0" { set root=(hd2,2) linux /sysrcd/rescue64 subdir=sysrcd setkmap=us initrd /sysrcd/initram.igz }
I thought "oh, maybe i have to install grub to /dev/sdc for some reason". grub-install /dev/sdc fails with the error saying i need either "--target" or "--directory" specified.
Based on some googling, it seems that running grub-efi binaries when you're booted non-EFI is possibly the cause of that error (unless they just meant when you're working with an MBR disk...), and the recommended solution is:
Code:
sudo apt-get install --reinstall grub-pc
Code:
sudo apt-get install --reinstall grub-efi
Code:
/usr/sbin/grub-bios-setup: Not found.
Now when I try to grub-install (with grub-efi or grub-pc) to /dev/sdc I get:
Code:
$ sudo grub-install /dev/sdc /usr/sbin/grub-bios-setup: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible. /usr/sbin/grub-bios-setup: error: embedding is not possible, but this is required for cross-disk install.
Thanks for any insight!
Comment