A bit of background, I have been using openSUSE for a pretty long time (7+ years) and I have always used the MBR partitioning scheme. I built a new workstation and I went with a 3 TB drive. I thought it would be a good idea to use GPT partitioning scheme and since UEFI supports it, why not boot the system in UEFI mode.
-
My Hard disk was partitioned manually by myself first to create a GPT partition table with all the recommended partitions (ESP, MSR, Few Windows partitions, A Linux root partition, A swap partition and few other data partitions) using a gparted Live CD.
-
I had installed Windows 7 first onto this hard drive (in UEFI mode) and was able to boot that successfully.
-
I set “Other OS” within my BIOS Secure Boot option so that it will allow booting EFI bootloaders which are not signed.
-
I booted off a 13.1 Gnome Live CD in UEFI Mode (I have a Asus Z87 Pro motherboard and I explicitly chose booting the CD in UEFI mode).
-
I wanted to confirm that I was actually booted in EFI mode. I verified that /sys/firmware/efi/efivars was populated.
-
I chose the Live Install option.
-
Chose custom partitioning
-
Specified mount points for /boot/efi, / (also format this partition), Linux Swap, and mount points for the Windows partitions.
-
I chose GRUB2-EFI as the bootloader.
-
The installer went through almost all the way till the end. When it tried installing the bootloader, it gave an error popup saying “Error installing GRUB2”, but it did not give any information or details about the error within the popup.
-
It asked me to retry specifying the bootloader configuration, but it kept failing.
-
I just finally chose to continue even with the failure.
Now my system still boots directly into Windows 7. In addition I do not see any boot entries for opensuse in my UEFI boot manager.
I took a look at the /boot/efi partition after this, and saw a directory EFI/opensuse with an .efi file under it (can’t remember the filename right now, can take a look once I’m back to the machine)
These are my 2 questions:
-
Where are the logs for the installation stored at ? I would like to take a look at them to get more details about the error if possible.
-
Would manually installing grub2-efi from a Live CD like this work (after manually mounting the the / and /boot/efi partitions) ?
grub2-install --target=x86_64-efi --efi-directory=/mnt/boot/efi --boot-directory=/mnt/boot --bootloader-id=opensuse
I presume I should also be running grub-mkconfig and efibootmgr after this to create the GRUB configuration and add an UEFI boot entry in the nvram after the grub2-install step. ?