LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-09-2020, 04:35 AM   #1
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,927

Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
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
 
Old 04-09-2020, 05:35 AM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,365

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
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.

Last edited by colorpurple21859; 04-09-2020 at 05:42 AM.
 
2 members found this post helpful.
Old 04-10-2020, 11:54 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,927

Original Poster
Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't get dual boot, win 7 uefi and elementary freya os uefi working shywolf Linux - Newbie 4 12-10-2015 06:14 PM
how to install linux mint side by side windows into an uefi machine without uefi partition valgalsan Linux - Newbie 2 11-03-2015 12:25 PM
Can't install LM 32bit with UEFI disabled on UEFI Asus X200MA laptop dblaisde Linux Mint 3 10-15-2015 05:37 AM
Help Creating UEFI A MENU For My Bootable (BIOS/UEFI) CDROM ssenuta Linux - Hardware 0 08-27-2012 09:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration