From: Milan Broz <gmazyland@gmail.com>
To: Enda <enda_k2@yahoo.com>
Cc: "dm-crypt@saout.de" <dm-crypt@saout.de>
Subject: Re: [dm-crypt] Can I encrypt an already existing, non-empty partition to use LUKS?
Date: Mon, 09 Sep 2013 21:36:30 +0200 [thread overview]
Message-ID: <522E233E.4010702@gmail.com> (raw)
In-Reply-To: <1378751179.84311.YahooMailNeo@web163103.mail.bf1.yahoo.com>
On 09/09/2013 08:26 PM, Enda wrote:
> https://code.google.com/p/cryptsetup/wiki/FrequentlyAskedQuestions
>
> The FAQ says "there is no converter, and it is not really needed."
>
>
> I already have a backup of my data, and I could wipe all the files on
> the drive with luks and then restore from backup but I would prefer
> to keep the files on the drive in case something happened to the
> backup files.>
> Is it possible to encrypt an already existing, non-empty partition to use LUKS?
Well, there is a way. It is not in-place encryption (the data are shifted) so you need
reserve some space in the end of device (either by increasing partition or
by shrinking the filesystem a little bit).
Read http://asalor.blogspot.cz/2012/08/re-encryption-of-luks-device-cryptsetup.html
and man page of cryptsetup-reencrypt.
And do not try it without backup, reencrypting is still experimental thing.
Milan
prev parent reply other threads:[~2013-09-09 19:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-09 18:26 [dm-crypt] Can I encrypt an already existing, non-empty partition to use LUKS? Enda
2013-09-09 19:36 ` Milan Broz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=522E233E.4010702@gmail.com \
--to=gmazyland@gmail.com \
--cc=dm-crypt@saout.de \
--cc=enda_k2@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox