@@ -13,12 +13,34 @@ ext4 filesystem "MNT" has 0 protectors and 0 policies
1313Files cannot be encrypted in-place. Instead, encrypt a new directory, copy the
1414files into it, and securely delete the original directory. For example:
1515
16- mkdir MNT/dir.new
17- fscrypt encrypt MNT/dir.new
18- cp -a -T MNT/dir MNT/dir.new
19- find MNT/dir -type f -print0 | xargs -0 shred -n1 --remove=unlink
20- rm -rf MNT/dir
21- mv MNT/dir.new MNT/dir
16+ mkdir "MNT/dir.new"
17+ fscrypt encrypt "MNT/dir.new"
18+ cp -a -T "MNT/dir" "MNT/dir.new"
19+ find "MNT/dir" -type f -print0 | xargs -0 shred -n1 --remove=unlink
20+ rm -rf "MNT/dir"
21+ mv "MNT/dir.new" "MNT/dir"
22+
23+ Caution: due to the nature of modern storage devices and filesystems, the
24+ original data may still be recoverable from disk. It's much better to encrypt
25+ your files from the start.
26+ ext4 filesystem "MNT" has 0 protectors and 0 policies
27+
28+ [ERROR] fscrypt status: file or directory "MNT/dir" is not
29+ encrypted
30+
31+ # => with trailing slash
32+ [ERROR] fscrypt encrypt: Directory "MNT/dir/" cannot be
33+ encrypted because it is non-empty.
34+
35+ Files cannot be encrypted in-place. Instead, encrypt a new directory, copy the
36+ files into it, and securely delete the original directory. For example:
37+
38+ mkdir "MNT/dir.new"
39+ fscrypt encrypt "MNT/dir.new"
40+ cp -a -T "MNT/dir" "MNT/dir.new"
41+ find "MNT/dir" -type f -print0 | xargs -0 shred -n1 --remove=unlink
42+ rm -rf "MNT/dir"
43+ mv "MNT/dir.new" "MNT/dir"
2244
2345Caution: due to the nature of modern storage devices and filesystems, the
2446original data may still be recoverable from disk. It's much better to encrypt
0 commit comments