All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sven Eschenberg <sven@whgl.uni-frankfurt.de>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] Encrypted fs in file
Date: Sun, 3 Apr 2016 18:03:11 +0200	[thread overview]
Message-ID: <57013EBF.7050303@whgl.uni-frankfurt.de> (raw)
In-Reply-To: <20160403084131.GA6111@citd.de>

And regarding 1):

You might want to use dd for that and /dev/urandom. (Or use /dev/zero 
and then zero out the inner device before creating the filesystem).

Regards

-Sven


Am 03.04.2016 um 10:41 schrieb Matthias Schniedermeyer:
> On 03.04.2016 00:07, doark@mail.com wrote:
>> Hello,
>> I wanted to make certain that I got this process right since I've never
>> done it before and I can't seem to find docs on the subject.
>>
>> 1. Cat /dev/zero into a new file till it is big enough.
>> 2. Use cryptsetup on the file (format and open).
>> 3. Use mkfs on the loop device.
>> 4. Mount the loop device as if it were a block device.
>>
>> Does this look correct to you?
>
> Nearly.
>
> 3) Not the loop device, but the dm-device, the loop it inbetween and is
> handled automatically.
>
> A symlink for the dm-device appears in /dev/mapper/ with the name you
> provided for the open command.
>
> Same for 4) You mount the dm-device
>
>
>
>

  reply	other threads:[~2016-04-03 16:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-03  4:07 [dm-crypt] Encrypted fs in file doark
2016-04-03  8:41 ` Matthias Schniedermeyer
2016-04-03 16:03   ` Sven Eschenberg [this message]
2016-04-03 23:57     ` Arno Wagner

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=57013EBF.7050303@whgl.uni-frankfurt.de \
    --to=sven@whgl.uni-frankfurt.de \
    --cc=dm-crypt@saout.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.