Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HNoF-xxupmuV for ; Mon, 28 Oct 2013 20:28:58 +0100 (CET) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Mon, 28 Oct 2013 20:28:58 +0100 (CET) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VasUg-0005iR-Jv for dm-crypt@saout.de; Mon, 28 Oct 2013 20:28:54 +0100 Received: from dhcp-two216.bioinformatics.vt.edu ([128.173.102.216]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Oct 2013 20:28:54 +0100 Received: from pedro by dhcp-two216.bioinformatics.vt.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Oct 2013 20:28:54 +0100 From: metageek Date: Mon, 28 Oct 2013 19:28:31 +0000 (UTC) Message-ID: References: <526E14C2.8060901@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] cryptsetup creates 1.8 Gb when it should be 1Tb List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Ok, problem solved now, the last poster was spot on, for some reason that I cannot figure out, there was a regular file /dev/sdb1. After removing it (with the drive disconnected), everything works. The drive is a Seagate Backup Plus portable drive I'm running cryptsetup version 1.4.3 (the version in Slackware64 14.0, running kernel 3.8.8) # dd if=/dev/zero of=/dev/sdb bs=1GB dd: writing '/dev/sdb': No space left on device 1001+0 records in 1000+0 records out 1000204885504 bytes (1.0 TB) copied, 12064.5 s, 82.9 MB/s so it is really 1.0 TB there (not a fake one) #smartctl -i /dev/sdb: Unknown USB bridge [0x0bc2:0xa013 (0x100)] Now, status reports the full drive and no loopback: # cryptsetup -v status pjhomecrypt /dev/mapper/pjhomecrypt is active. type: LUKS1 cipher: aes-cbc-essiv:sha256 keysize: 256 bits device: /dev/sdb1 offset: 4096 sectors size: 1953521008 sectors mode: read/write Command successful. The filesystem was created successfully with ~ 1 TB. Problem solved. Thanks everyone!