You are not logged in.
I have Arch installed but forgot to do the encrypt /home directory during installation. What is the most efficient way to catch it up?
I like to do it with cryptsetup.
Offline
1. move current file system to backup drive with cp -a
2. with archusb encrypt drives
3. copy from bacukp with cp -a
do not override efi partition in the process and its done.
--
edit
and adjust kernel parameters, crypttab accordingly
Last edited by str0gg (2021-04-20 10:20:40)
Offline
Y
1. move current file system to backup drive with cp -a
2. with archusb encrypt drives
3. copy from bacukp with cp -ado not override efi partition in the process and its done.
--
edit
and adjust kernel parameters, crypttab accordingly
This isn't what I asked for...
Read my post to specifically see what it is about...its NOT about the whole disk but home directory only. RTFP
Last edited by ArchNewbieKernel (2021-04-20 12:09:01)
Offline
You still need to copy everything in /home somewhere else. Existing data will be destroyed once you setup encryption.
However it is an approach that can be used, i'ts ambiguous to me whether you are talking about a partition or just a directory, provide clarification instead of being aggressive towards a well intentioned suggestion: https://gitlab.archlinux.org/archlinux/ … ther-users
Last edited by V1del (2021-04-20 12:30:48)
Offline
This isn't what I asked for...
Read my post to specifically see what it is about...its NOT about the whole disk but home directory only. RTFP
Well, then don't use the Arch USB.
Also, I'd suggest to use tar (or rsync, dd) for backup.
See also `/usr/share/doc/cryptsetup/FAQ' (2.5).
What is the most efficient way to catch it up?
cryptsetup-reencrypt(8) --new or cryptsetup(8) reencrypt --encrypt.
Edit: Copying is actually more efficient, if the filesystem is mostly empty and you do not fill the partition with random data before copying the actual data, which however is generally strongly recommended.
Last edited by respiranto (2021-04-20 12:38:51)
Offline