LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to move to uefi (https://www.linuxquestions.org/questions/linux-software-2/how-to-move-to-uefi-4175672839/)

pan64 04-09-2020 04:35 AM

how to move to uefi
 
Hi all

I have a dual boot (ubuntu + debian) system and now I want to modify it to use uefi. (because actually I have a win10 too, which is now using uefi).
Is there any "official" or practical way to do that?
All of the important data is located on another disk(s), so reinstall is not a problem.

Thanks

colorpurple21859 04-09-2020 05:35 AM

Do this as root
Code:

apt install grub-efi
mkdir /boot/efi

mount <efi partition>/boot/efi
Code:

grub-install --target=x86_64-efi
will get error about no efivars varibles
create a /etc/fstab to mount the efi partition to /boot/efi

If you have an iso you can boot in efi mode, chroot into your system to do this, you can skip the rest of this and won't get the efivars error. I think boot-repair has an option to convert over also.

reboot, use the bios boot options to select ubunut/debian efi boot option
It it boots, rerun
Code:

grub-install
or use efibootmgr to create an entry in the firmware and make default.

pan64 04-10-2020 11:54 AM

thanks
That was not that simple, because
0. switch off windows secure boot
1. move from MBR to GPT
2. resize partitions
3. create and boot a live ubuntu image
4. make a chrooted environment for the original ubuntu
5. grub-install
6. reboot

anyway, what you posted was enough to start and complete it.
Thanks


All times are GMT -5. The time now is 11:52 AM.