Okay, I’ll make this a quick why I’m on still CMR instead of UEFI boot process and MBR - my Windows & Linux installs go waaaaaaay back when this machine was a Phenom II X6 system (it’s a 3600X now)… Actually the Kubuntu install is even older still (it started off on a AMD Opteron 170 as an install 6.06 Dapper Drake)…
Yes, I’m pretty good about my maintenance keeping Windows very clean (it has broken a few times over the years, but I’ve been able to fully fix it every time with out re-installs).
The two reasons I want to do this conversion - first is so I can enable AMD’s “SAM”. You can’t do that booting CSM or off MBR (weird, but okay)… The 2nd, so I’ll be able to upgrade to Windows 11 at some point while satifying the requirement for TPM being enabled.
Anyways, I don’t care if it takes longer to do - I just don’t feel up to reinstalling OS’s (and frankly, I like saying my install is ancient history - LOL). I have my system fully backed up, and want to check on how to do this the proper way - I’m not finding much good info on how to do this when one has two OS’s and multiple disks… Lot’s of info for Win10 users, less info for Linux users, and no info at all when one OS is on one drive and the other OS is on a different drive involved… So hoping someone has experience and say yes or no on if I got this conversion process right (and that this will be documented for anyone else needing to do this).
Phase one (have bootable USB keys)
- Make Windows 10 recovery disk (in case something goes wrong).
- Make Linux (Kubuntu in my case) install/recovery disk.
Phase 2 (Winblows conversion)
- Reboot Windows 10 in trouble shooting mode.
- Goto to command prompt, check to ensure drive can be converted:
mbr2gpt /validate - Fix any show stopping problems if needed (because Windows)…
- Run the conversion process:
mbr2gpt /convert - Reboot into Windows 10 (there won’t be any grub at this point).
- Using diskpart, ensure that disk conversion has taken place (because Windows).
- Reboot but before system boots go into UEFI/BIOS and disable legacy CSM boot mode. If not already done (it is on my system), enable TPM (and make any other adjustments so that one can enable resizeable bar support if wished - again, already done on my system)
- Boot into Windows, use msinfo32 to check and ensure that Windows is operating in UEFI secure boot mode. Find and fix any problems if it isn’t (again, because Windows).
Phase 3 (Linux Conversion)
- Boot Linux install/recovery disk to a recovery terminal.
Note: this is where I’m not clear - there is an EFI directory on the first drive (sda), and all directions I have involve creating an EFI directory on the same drive - so I’m going with my gut on what needs to be done)
-
Use gdisk to convert the 2nd drive (sdb) from mbr to gpt (sda is already complete):
sudo gdisk /sdb
w -
Bind the installed linux to the runnig recovery linux running and change root:
sudo mount /dev/sdb1 /mnt
sudo mount /dev/sda1 1 /mnt/boot/efi
; Note: This will be the efi directory I believe - need to confirm which directory is the EFI directory on sda
sudo mount -o bind /dev /mnt/dev
sudo mount -o bind /sys /mnt/sys
sudo mount -t proc /proc /mnt/proc
sudo cp /proc/mounts /mnt/etc/mtab
sudo cp /etc/resolv.conf /mnt/etc/resolv.conf
sudo chroot /mnt -
Change grub from the old mbr style and add it to the efi boot:
sudo apt-get --reinstall install grub-common grub-efi-amd64 os-prober -
Opps, need everything signed for the secure boot process:
sudo apt-get install shim-signed grub-efi-amd64-signed linux-signed-generic -
Install grub to EFI:
sudo grub-install --uefi-secure-boot /dev/sda
sudo update-grub
Reboot and everything “should work”
Does this all sound correct, did I miss or overlook anything? I just want to ensure my sanity is correct so I only have to do this the one time (and anyone else needing to know this has it documented). 
