[dm-crypt] cryptsetup creates 1.8 Gb when it should be 1Tb

David Christensen dpchrist at holgerdanske.com
Mon Oct 28 04:30:29 CET 2013


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


More information about the dm-crypt mailing list