Hi All ![]()
I have installed Alma Linux 10.1 without encryption.
I wish to do a backup of my system and then reinstall Alma with encryption.
I would then restore the backup so the only real functional difference is the encryption.
My current steps:
1.On original machine, update kernel to latest:
dnf upgrade
2.On live usb, format the backup drive:
sudo parted /dev/sda --script \
mklabel gpt \
mkpart xfs-root 0% 25% \
mkpart xfs-home 25% 100%
mkfs.xfs /dev/sda1
mkfs.xfs /dev/sda2
3.On live usb, copy over data using rsync:
sudo rsync -aAXvh --progress --delete --sparse \
--exclude={".cache","/dev/","/proc/","/sys/","/tmp/","/run/","/mnt/","/media/","/boot/"} orig-root/ backup-root/
rm backup-root/etc/{fstab,crypttab}
sudo rsync -aAXvh --progress --delete --sparse orig-home/ backup-home/
4.Install new Alma with encryption.
5.On new machine, update kernel to latest:
dnf upgrade
6.On live usb, restore backup of original machine to new encrypted install:
udisksctl unlock -b /dev/nvme1n1p3
sudo rsync -aAXvh --progress backup-root orig-root
sudo rsync -aAXvh --progress backup-home orig-home
On boot, I get a “a start job is running for dev-disk-by…” and it just hangs on the /home partition. I have checked /etc/fstab has correct blkid, and / is mounted correctly as I can exclude /home from /etc/fstab and it boots. So, I’m not really sure what’s going on?
I have followed this procedure on an Ubuntu system with success. So, I’m not sure if it has something to do with LVMs or XFS being involved vs plain partitions and EXT4 in Ubuntu.
Any help would be greatly appreciated. Thanks!