Score:0

Move Linux installation to another machine (UEFI)

by flag

I'm using a UEFI installation of Ubuntu 21.04. I have to change my laptop to another one with very similar configuration. I do not want to reinstall the OS because it may be time consuming to set everything up even if I copy the home dir. Back in the BIOS/MBR times I used to just make an image of the HDD or move the HDD physically to another machine and it was fine. I wonder if this is possible with UEFI and if yes, would it be necessary to do some additional actions?

oldfred avatar
cn flag
Yes, but you posted 46 minutes ago and could have done a new install in that time. And probably copied /home with all your configuration files from your normal backup to new install. Only a bit time consuming is reinstalling all the apps your have added from the list you include as part of backup, if you have slower internet & lots of added apps. If UEFI you have to recreate the UEFI entry in new systems. Often easier just to totally reinstall grub with Boot-Repair, but all you really need is efibootmgr. See `man efibootmgr`
naushniki avatar
by flag
Thanks! I will try efibootmgr. New install would take longer for me, because I have lot of settings outside home dir(cgroups etc).
oldfred avatar
cn flag
Some more examples of efibootmgr. See VI. https://askubuntu.com/questions/486752/dual-boot-win-8-ubuntu-loads-only-win Some prefer GUI. https://help.ubuntu.com/community/Boot-Repair & https://sourceforge.net/p/boot-repair/home/Home/ Boot-Repair's main fix is reinstall of grub. Grub uses efibootmgr to create new UEFI entry, But grub reinstall will overwrite any grub changes you made.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.