Does LUKS encrypt data as it is written? If I reinstall Linux with encryption, what happens to files that were already on the drive?
The sensitive files were written after the current encrypted installation was set up. I have backups, but I want to keep the files private while the laptop is being serviced.
r410!staple_6:
So the old files aren't encrypted a second time during installation. They were already encrypted when they were written?
6x~opstate_318:
Right, provided they were written inside the LUKS volume. Any leftover encrypted blocks remain encrypted, but that is separate from securely removing the old volume's ability to be unlocked.