All of lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <gmazyland@gmail.com>
To: metageek <pedro@gepasi.org>, dm-crypt@saout.de
Subject: Re: [dm-crypt] cryptsetup creates 1.8 Gb when it should be 1Tb
Date: Mon, 28 Oct 2013 08:39:46 +0100	[thread overview]
Message-ID: <526E14C2.8060901@gmail.com> (raw)
In-Reply-To: <loom.20131028T024523-591@post.gmane.org>

On 28.10.2013 3:05, metageek wrote:
...

> Then I went on to create the LUKS encryption:
>
> cryptsetup luksFormat /dev/sdb1
>
> then open it:
>
> cryptsetup luksOpen /dev/sdb1 pjhomecrypt
>
> now using status to see its properties:
>
> cryptsetup -v status pjhomecrypt
> /dev/mapper/pjhomecrypt is active.
>    type:    LUKS1
>    cipher:  aes-cbc-essiv:sha256
>    keysize: 256 bits

>    device:  /dev/loop0
>    loop:    /dev/sdb1

^^^^ Why it is mapped through loop device?

Ensure that /dev/sdb1 is BLOCK device.

It seems to me that it is in fact just file created by mistake in /dev ...
(Then limited by tmpfs size to half of memory or so and explains strange size.)

Also use lsblk to verify real kernel sizes
(sometimes kernel see old partition size)

Milan

  parent reply	other threads:[~2013-10-28  7:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-28  2:05 [dm-crypt] cryptsetup creates 1.8 Gb when it should be 1Tb metageek
2013-10-28  2:54 ` Arno Wagner
2013-10-28  3:30 ` David Christensen
2013-10-28  7:39 ` Milan Broz [this message]
2013-10-28 19:28   ` metageek
2013-10-28 20:26     ` Arno Wagner
2013-10-28 21:14       ` Robert Nichols
2013-10-29  0:19         ` Arno Wagner
2013-10-28 20:42     ` David Christensen

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=526E14C2.8060901@gmail.com \
    --to=gmazyland@gmail.com \
    --cc=dm-crypt@saout.de \
    --cc=pedro@gepasi.org \
    /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.