Migrating a system from legacy boot machine to uefi machine

So, seems my trusty old Clevo laptop needs to be replaced rather sooner than later.
I’d love to be able to continue using my current system which I have been using since Antergos times, but I fear I will not be able to do so due to the fact that all modern laptops come with f***ing UEFI boot.( I actually hate UEFI).
Is there a way to get a system that was installed on a legacy boot device to work on an UEFI machine?
J.

Not exactly sure what you are asking. But, you can install in legacy mode on most UEFI based systems. Are you wanting to move the existing installed system over to a new laptop? Can you explain? :thinking:

I want to remove my m.2 OS ssd from my old machine and plug it into the “new” one without having to install a new system.
J.

1 Like

Basically you would need to create a new FAT32 partition somewhere on your disk, flag it
boot,esp.

Create a new directory in your system >> /boot/efi

Mount that new partition at this new directory and install the grub bootloader:

sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=endeavouros

Create a new entry in /etc/fstab for that esp partition.

Example:

UUID=xxxx-yyyy /boot/efi vfat umask=0077 0 2

1 Like

Thank’s! I knew you’d come through as always. :grin:

1 Like

Hmm.
Will try to find a replacement machine with legacy boot option.
J.

1 Like

If @Jeannie got a new machine couldn’t you just set it to boot legacy by having CSM turned on and any settings for legacy boot and then it would boot on the existing drive?

2 Likes

Yes, it should be possible in principle.

1 Like

boot in UEFI mode, so you can access UEFI environment. IIUC, this can be done by booting to an installer media (EnOS installer?) in UEFI mode and then chroot into the arch/EnOS system for the rest of the procedure.
As explained at Archwiki, you may install grub without chroot, but from the booted EnOS installer, with proper command parameters (--boot-directory=). The result is the same, as long as you follow the relevant instructions.

1 Like