Transplanting Ubuntu 24.04.1 server to new hardware, best approach?

Liam Proven lproven at gmail.com
Mon Jan 27 19:09:42 UTC 2025


On 25/01/2025 9:31 pm, Bo Berglund wrote:

> B: Prepare the New Hardware's SSD:
> ----------------------------------
> 1. Boot the ASUS NUC with GPartedLive.
> 2. Create a GPT partition table on the SSD.
> 3. Create the EFI partition:
>     - Add a 512 MB FAT32 partition at the start of the SSD.
>     - Set the boot flag on this partition.
>     - Label it `EFI`.

I think the label is not important, and I have also seen "EFISYS". 
However, EFI is a partition type on GPT partition tables (type `EF00`).

On MBR partition tables, it's type `EF`.

Source:
https://wiki.archlinux.org/title/EFI_system_partition


> 4. Copy the partitions from the transfer drive to the SSD.
>     GParted will preserve the UUIDs unless you choose to modify them.

As an alternative to this long section:

> 
> C: Install the Bootloader:

I suggest Boot-Repair.

https://help.ubuntu.com/community/Boot-Repair

> --------------------------

>       apt install grub-efi-amd64

I did this yesterday.

Just `apt install grub-efi` is enough.

>     - Install GRUB to the EFI partition:

Once you install the UEFI version of GRUB, it removes and replaces some 
of the old BIOS version.

Once you have done this, just `grub-install /dev/sda` should be enough. 
Worked for me, yesterday.

-- 
Liam Proven - Profile: https://about.me/liamproven
Email: lproven at cix.co.uk - Google Mail/Hangouts/Plus: lproven at gmail.com
Twitter/Facebook/Flickr: lproven - Skype/LinkedIn: liamproven
IoM: +44 7624 227612 ~ UK: +44 7939-087884
ČR (+ WhatsApp/Telegram/Signal): +420 702 829 053





More information about the ubuntu-users mailing list