Subj : uefi
To : Gerrit Kuehn
From : Kai Richter
Date : Thu May 19 2022 06:19 pm
Hello Gerrit!
13 May 22, Gerrit Kuehn wrote to Maurice Kinal:
GK> meanwhile uefi works fine for me and is actually easier to set up and
GK> maintain, so I use it on all new machines now.
Really? It took 4 or 5 days until i got my fido server up and running again. The only task i wanted to do was to move the system from a 4TB disk to a 2TB disk. To reduce the partition sizes i created the target tables from a rescue boot and rsync'd the files to their destinatitions. The partition layout was the same but with differnt size and the system failed to boot.
I'm not sure that understood anything but i looks like uefi is a mini grub within the bios. The boot device is added to the uefi boot list by uuid.
If you replace a disk on the same sata port with a newly formated disk of the same layout the boot will fail because the uuid are different.
This failure will repeat for any file based restore within grub and within the system itself because after grub the uuid of the initrd and in the /etc/fstab will not match any more.
I've no idea what the final correct solution was. Finally i was so p'd off that i dd'd the whole partitions sda1/sda2... to the new destination. I think that would kept the uuid intact and after three successful reboots i put my hands of the running systems.
I can't see the improvement there. To keep a track of the activ uuids i started to record blkid output into fstab.
The best improvement was to make use of my pxe server for the rescue boots.
Regards