owl, I re-installed both windows and CentOS making sure that it used EFI. thats what's confusing you.In the past you have written "gdisk tells me I have an MBR partitioned drive", so I'm a little bit confused now.
And I have been booting into the rescue mode via the CentOS installer this entire time.
I didn't mention that I installed to the disk on another PC because I'm more familiar with that PC's BIOS, which gave me the option to boot both the installer and disk with UEFI as opposed to AHCI, which appears to be only offered by my other PC's BIOS. I figured if AHCI couldn't support UEFI then it would simply refuse to boot. It didn't. Its possible that it is using MBR but anaconda/Windows wrote a backwards compatible MBR which its now reading. But isn't that what a biosboot partition is? In that case I don't understand the error message. I'm looking for a hex editor I can read the 1st sector with, but its definitely not 0s. (I copied the 1st sector to a backup binary file with dd. so I can recover it if I screw up).
push come to shove I'll try re-installing, and just delete the current CentOS partitions. It didn't appear that I could do that with the Anaconda installer, howeverNo, usually it does not unless you explicit told it to do so. Usually you tell the CentOS installer to mount the existing EFI partition as /boot/efi without overwriting it during installation.
I will attempt to recover the partition by booting from the other PC and report backCODE: SELECT ALL
grub2-install /dev/sda
Installing for i386-pc platform.
grub2-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
It seems you haven't booted CentOS rescue in (U)EFI mode. As opposite to MS-Windows the combination BIOS/Legacy/CSM mode and GPT is no problem for CentOS, but an extra "BIOS Boot Partition" is needed here.
However, this is the wrong approach: If MS-Windows is already installed in (U)EFI mode, you should boot the CentOS installation (or rescue) in (U)EFI mode as well.
Its a Acer computer I bought re-built, so its a no-frills BIOS, I didn't see an option to disable legacy support. I think it only offered "AHCI" or "legacy" boot modes. I'll double check.How this will be done differs from computer vendor to vendor. For example Dell lists a proper prepared CentOS USB installation drive twice: One time as "Legacy Boot: USB Storage Device" and one time as "UEFI Boot: Whatever USB stick, Partition 1".
The easiest way to force installation in (U)EFI mode is by tuning Legacy/CSM support if the BIOS/UEFI Setup of your computer off.
I'm pretty certain grub2-mkconfig reads the config files in /etc/grub.d and creates a new config file. Thats the next step. The first step is the get Centos the default booted OS first. Then I'll go back and add Windows to grub/. Besides, can't I just copy the contents of CentOS created EFI partition for the one I created in Windows and update /etc/fstab?And: "grub2-install" is the wrong command on (U)EFI systems anyway. Just make sure the EFI partition is mounted as /boot/efi, (re-)install the package "grub2-efi" and do
CODE: SELECT ALL
grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
I'm not gonna copy/paste since I can't, but I can verify its a GPT disk:To confirm that MS-Windows is actually installed in (U)EFI mode it would help to see the output from "fdisk -l" and "gdisk -l /dev/sda".
Code: Select all
disk label type: gpt