DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: David Christensen <dpchrist@holgerdanske.com>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] cryptsetup creates 1.8 Gb when it should be 1Tb
Date: Sun, 27 Oct 2013 20:30:29 -0700	[thread overview]
Message-ID: <526DDA55.6030402@holgerdanske.com> (raw)
In-Reply-To: <loom.20131028T024523-591@post.gmane.org>

On 10/27/13 19:05, metageek wrote:
> Disk /dev/sdb: 1000.2 GB, 1000204885504 bytes
...
> cryptsetup -v status pjhomecrypt
> /dev/mapper/pjhomecrypt is active.
>    size:    3752880 sectors
...
> mkfs.ext4 /dev/mapper/pjhomecrypt
> Block size=4096 (log=2)
> 117360 inodes, 469110 blocks
...

> df -Th /mnt
> Filesystem              Type  Size  Used Avail Use% Mounted on
> /dev/mapper/pjhomecrypt ext4  1.8G  2.7M  1.7G   1% /mnt
>
> So I only have 1.8Gb out of the 1Tb drive.

What's the block count if you run:

	dd if=/dev/zero of=/dev/sdb bs=1GB


It should be ~1000.


David

  parent reply	other threads:[~2013-10-28  3:38 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 [this message]
2013-10-28  7:39 ` Milan Broz
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=526DDA55.6030402@holgerdanske.com \
    --to=dpchrist@holgerdanske.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox