Sample Header Ad - 728x90

Why did my tar backup fail?

1 vote
0 answers
88 views
My home directory is encrypted with ecryptfs. I wanted to try some things that required reinstalling my system, so I backed up to a flash drive with this command: sudo tar cf backup.tar.zstd --one-file-system --acls --xattrs --zstd / My system has 3 partitions, efi, root, and swap. The --one-file-system was intended to grab the encrypted ecryptfs data and skip the decrypted mount. I did my tests then, from a live usb, restored the backup this way: tar xf backup.tar.zstd --xattrs --zstd -C /mnt genfstab -U /mnt > /mnt/etc/fstab arch-chroot /mnt grub-install /dev/nvme0n1 grub-mkconfig -o /boot/grub/grub.cfg And it boots, I can log into sddm with my password and reach a desktop, but my ecryptfs will not mount. What broke?
Asked by Daffy (465 rep)
Jan 3, 2023, 02:55 PM