$ sudo ecryptfs-migrate-home -u $ENC_USER INFO: Checking disk space, this may take a few moments. Please be patient. INFO: Checking for open files in /home/$ENC_USER Enter your login passphrase [$ENC_USER]: ************************************************************************ YOU SHOULD RECORD YOUR MOUNT PASSPHRASE AND STORE IT IN A SAFE LOCATION. ecryptfs-unwrap-passphrase ~/.ecryptfs/wrapped-passphrase THIS WILL BE REQUIRED IF YOU NEED TO RECOVER YOUR DATA AT A LATER TIME. ************************************************************************ Done configuring. chown: cannot access '/dev/shm/.ecryptfs-$ENC_USER': No such file or directory INFO: Encrypted home has been set up, encrypting files now...this may take a while. sending incremental file list ./ AAAAAAAAAAAAAAAA 50 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=33/35) BBBBBBBBBB 220 100% 214.84kB/s 0:00:00 (xfr#2, to-chk=32/35) CCCCCCCCC 3,526 100% 3.36MB/s 0:00:00 (xfr#3, to-chk=31/35) DDDDDDDDDDDD 675 100% 659.18kB/s 0:00:00 (xfr#4, to-chk=30/35) . . . XXXXXX/UUUUUUUUU 6,301 100% 84.29kB/s 0:00:00 (xfr#28, to-chk=5/35) XXXXXX/VVVVVVVVVVVVVVVV 18,701 100% 246.79kB/s 0:00:00 (xfr#29, to-chk=4/35) XXXXXX/WWWWWWWWWWWWWW 18,677 100% 246.48kB/s 0:00:00 (xfr#30, to-chk=3/35) XXXXXX/XXXXXXXXXXXX 18,341 100% 238.82kB/s 0:00:00 (xfr#31, to-chk=2/35) XXXXXX/YYYYYYYYYYYYYYYY 93 100% 1.21kB/s 0:00:00 (xfr#32, to-chk=1/35) XXXXXX/ZZZZZZZZZZZZZZZZZZZ 2,325 100% 30.27kB/s 0:00:00 (xfr#33, to-chk=0/35) Could not unlink the key(s) from your keying. Please use `keyctl unlink` if you wish to remove the key(s). Proceeding with umount. ======================================================================== Some Important Notes! 1. The file encryption appears to have completed successfully, however, $ENC_USER MUST LOGIN IMMEDIATELY, _BEFORE_THE_NEXT_REBOOT_, TO COMPLETE THE MIGRATION!!! 2. If $ENC_USER can log in and read and write their files, then the migration is complete, and you should remove /home/$ENC_USER.NNNNNNNN. Otherwise, restore /home/$ENC_USER.NNNNNNNN back to /home/$ENC_USER. 3. $ENC_USER should also run 'ecryptfs-unwrap-passphrase' and record their randomly generated mount passphrase as soon as possible. 4. To ensure the integrity of all encrypted data on this system, you should also encrypt swap space with 'ecryptfs-setup-swap'. ========================================================================