I have get informed on how prepare a LUKS system & partitions, giving a key/passphrase, etc. But for a new fresh install of linux.

How to encrypt an already installed/configured linux system ?

EDIT I have made my linux system as a server. I need it crypted, and I would like to test encryption without to reinstall anything.

  • 1
    Unless it's LVM all data has to be moved to make room at the beginning for the LUKS header (2MiB). So it's not a straightforward / risk-free process. Tell us more about your setup (Partitions/RAID/LVM/...) Jul 31, 2015 at 9:10
  • @frostschutz Thanks (you could post it as an answer). It's not LVM. I had to clone it to a machine with LVM. Or backup, erase disk with LVM and clone it back... That's my question here: unix.stackexchange.com/questions/219447/…
    – ArchiT3K
    Jul 31, 2015 at 9:18

1 Answer 1


Make another partition (or image file) with an encrypted fs for your data. Moving root on the fly to an encrypted fs on the same disk does not work.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.