LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-11-2023, 07:41 AM   #1
bitfuzzy
Member
 
Registered: Nov 2003
Location: NY
Distribution: slackware
Posts: 464

Rep: Reputation: 133Reputation: 133
INQUIRY - Migration from Legacy to UEFI (lilo / elilo) - Slackware 15.0


Migrating an existing Windows installation from Legacy to UEFI is well documented and a fairly simple process.

Does anyone know if there is any documentation for Slackware covering the process?
I'd be particularly interested in switching from Lilo to eLilo

Thanks

Ken
 
Old 09-11-2023, 11:04 AM   #2
timsoft
Member
 
Registered: Oct 2004
Location: scotland
Distribution: slackware 15.0 64bit, 14.2 64 and 32bit and arm, ubuntu and rasbian
Posts: 495

Rep: Reputation: 144Reputation: 144
when ever I have changed I've started fresh with a new drive, or copied user data and config to a temporary drive first, as you'll want to change to a gpt partition, and create a uefi system partition; and moving the primary partitions up has it's risks. You may be able to use gparted, but I've always gone for the simplest safest option of fresh install on cleanly partitioned drive. It's a good excuse to go up to the latest version of slackware, and often you're doing it on older hardware, and can replace a spinning drive with a (now cheaper) ssd, so get a speed benefit as well.
 
1 members found this post helpful.
Old 09-11-2023, 03:24 PM   #3
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 992

Rep: Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674
I would say that the amount of work depends upon your current partition table. If your current partition table is the good old MBR style you will basically need to repartition your drive from scratch.

If your current partition table is GPT you will only need to add a FAT32 partition of EFI-type if you don't already have one. Once you have such a partition you can start configuring your boot loader of choice.

regards Henrik
 
1 members found this post helpful.
Old 09-11-2023, 04:33 PM   #4
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
Yeah the partition is the hardest part. If you've got the partition set up, you can use Slackware's "eliloconfig" script to do the rest.
 
3 members found this post helpful.
Old 09-11-2023, 07:48 PM   #5
Loomx
Member
 
Registered: Sep 2012
Distribution: Slackware
Posts: 184

Rep: Reputation: Disabled
Converting from MBR to GPT partition table is fairly straightforward, and if you make a backup of the MBR first (using dd) it should be quite low risk.

You do need to make sure you have a small amount of free space at the *end* of your disk, as a GPT backup is stored there. 1MB is more than enough for this.

Then you need to add an EFI partition formatted fat32. Don't forget to add this to your /etc/fstab
Running `eliloconfig' will take care of setting up elilo and configuring the efibootmgr.
I've done this with a number of computers with no issues
 
1 members found this post helpful.
Old 09-11-2023, 08:00 PM   #6
BrianW
Member
 
Registered: Jul 2003
Location: Montana
Posts: 297

Rep: Reputation: Disabled
I'd suggest mimicking the original setup & conversion in a virtual machine first if possible. I struggled with elilo on my current machine for some reason I still can't comprehend (don't have time or ambition to dig into it too far); elilo is pretty simple from my few successful attempts at UEFI, but this go around hasn't been great.
 
1 members found this post helpful.
Old 09-11-2023, 08:56 PM   #7
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,371

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
As has already been mentioned need a fat32 partition flagged esp, mounted at /boot/efi. Most systems require the drive to be gpt for uefi mode, however I think it largely depends on the manufacture implementation of uefi.
I don't think liloconfig will work if booted in legacy mode, however it is possible to configure elilo manually.
Grub-install will work in legacy mode with the correct options, but won't be able to register the entry with the bios/firmware.
 
1 members found this post helpful.
Old 09-11-2023, 11:10 PM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Linux gdisk can convert the partition table, no data lost.
 
3 members found this post helpful.
Old 09-11-2023, 11:10 PM   #9
breaker
Member
 
Registered: Mar 2022
Distribution: Slackware 15.0
Posts: 87

Rep: Reputation: 29
Having to have an EFI system partition formatted FAT32 is one of the annoying things about UEFI. I use lvm, so the only reason I would need a partition table would be for the ESP. The disk under lvm doesn't care about having / not having a partition table.

I made a USB thumb drive FAT32 and put my ELILO boot files there and then added a firmware entry to point there, which was good for testing purposes and negated the need for a HDD partition. It should work using the "default" UEFI boot path.

I forget the exact tinkering to do this, but I thought I would mention. I did this on a 2011 Acer desktop with UEFI.
 
2 members found this post helpful.
Old 09-16-2023, 03:36 AM   #10
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,915

Rep: Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033
Though LVM doesn't need a partition table, on PC hardware my preference is to always have one for the sake of consistency and compatibility — even when one only has a single partition.

A small benefit of having the gpt partition table is you also get the option to assign PARTLABELs, which can be a useful aid to identifying what the disk/partition contains.


Anyway, back on topic: as others have already said, there's really no "magic" to EFI booting.
 
1 members found this post helpful.
Old 09-16-2023, 11:15 AM   #11
bitfuzzy
Member
 
Registered: Nov 2003
Location: NY
Distribution: slackware
Posts: 464

Original Poster
Rep: Reputation: 133Reputation: 133
Thank you everyone for the replies, they have been informative.

I've got a couple of systems (Slackware 15.0) which have Windows 10 guests setup on them for occasional use, and in order to upgrade to Windows 11 UEFI and secure boot are required.

I haven't done any testing yet, but in theory (based on what I've read) it should be possible to setup a secure boot/UEFI guest on a legacy host.
I'm skeptical, but should this work migrating shouldn't be necessary. However should it prove to be a waste of time or unstable I'll have to migrate the boxes.

Any "hiccups" with secure boot and elilo I should be aware of?
 
Old 09-16-2023, 05:05 PM   #12
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 992

Rep: Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674
Quote:
Originally Posted by bitfuzzy View Post
I've got a couple of systems (Slackware 15.0) which have Windows 10 guests setup on them for occasional use, and in order to upgrade to Windows 11 UEFI and secure boot are required.
If you are running your Windows guest in some virtual machine like qemu on the Slackware 15.0 host there is no need to boot Slackware with UEFI. All you need to do is to emulate UEFI boot with your virtual machine running the guest operating system. When it comes to qemu, the keyword to google for is "ovmf".

regards Henrik
 
Old 09-16-2023, 08:11 PM   #13
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
Quote:
Originally Posted by bitfuzzy View Post
I've got a couple of systems (Slackware 15.0) which have Windows 10 guests setup on them for occasional use, and in order to upgrade to Windows 11 UEFI and secure boot are required.
A per henca's post above, if you're talking about virtual machines, then you only need to set up those things in your hypervisor software.
Quote:
Originally Posted by bitfuzzy View Post
Any "hiccups" with secure boot and elilo I should be aware of?
Secure boot doesn't play nicely with Linux. You may not be able to boot into Linux with it enabled.
 
1 members found this post helpful.
Old 09-16-2023, 08:28 PM   #14
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 459

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
For Windows 11 VMs, you'd want swtpm and edk2-ovmf on SBo.
 
2 members found this post helpful.
Old 09-18-2023, 07:22 AM   #15
bitfuzzy
Member
 
Registered: Nov 2003
Location: NY
Distribution: slackware
Posts: 464

Original Poster
Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by pghvlaans View Post
For Windows 11 VMs, you'd want swtpm and edk2-ovmf on SBo.
I'm using Virtualbox for my VMs. Correct me if I'm wrong, but these would only be needed if I were using Qemu

Correct?
 
  


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
[SOLVED] UEFI installation - elilo does not prompt when I skipped lilo shai-hulud Slackware 15 06-09-2019 08:11 AM
[SOLVED] 14.2/x86_64: UEFI/elilo migration rshepard Slackware 8 08-29-2018 10:47 AM
lilo x elilo x grup2 x UEFI afreitascs Slackware 5 09-09-2012 10:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:55 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