From mboxrd@z Thu Jan 1 00:00:00 1970 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 2ti7Bd6opSMi for ; Wed, 4 Jan 2012 04:46:33 +0100 (CET) Received: from mail-qy0-f178.google.com (mail-qy0-f178.google.com [209.85.216.178]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Wed, 4 Jan 2012 04:46:32 +0100 (CET) Received: by qcso15 with SMTP id o15so11453329qcs.37 for ; Tue, 03 Jan 2012 19:46:31 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by erebus.underworld.local (Postfix) with ESMTP id 497A220168 for ; Tue, 3 Jan 2012 13:49:30 -0500 (EST) Received: from erebus.underworld.local ([127.0.0.1]) by localhost (erebus.underworld.local [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 25041-04 for ; Tue, 3 Jan 2012 13:49:28 -0500 (EST) Received: from [192.168.2.230] (cerberus.underworld.local [192.168.0.1]) by erebus.underworld.local (Postfix) with ESMTPSA id E2BD320167 for ; Tue, 3 Jan 2012 13:49:27 -0500 (EST) Message-ID: <4F03CBA9.2000801@gmail.com> Date: Tue, 03 Jan 2012 22:46:49 -0500 From: Cory Coager MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [dm-crypt] LUKS header always disappears after reboot List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de I have a dedicated drive used just for data. The entire drive is encrypted with cryptsetup & LUKS. Since the drive is 3tb in size I had to create the partition with parted. The partition is aligned for optimal performance. fdisk -lu: WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted. Disk /dev/sdb: 3000.6 GB, 3000592982016 bytes 255 heads, 63 sectors/track, 364801 cylinders, total 5860533168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdb1 1 4294967295 2147483647+ ee GPT parted: GNU Parted 2.3 Using /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print Model: ATA Hitachi HDS5C303 (scsi) Disk /dev/sdb: 3001GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 1049kB 3001GB 3001GB (parted) align-check opt 1 1 aligned For some reason, every time I reboot the LUKS header is no longer recognized. I checked to make sure the appropriate modules are loaded into memory. The first time I just redid it thinking maybe I did something wrong. The second time now this has happened I'm thinking something else is going on. Why does this keep happening? How do I fix it without redoing it as I have data on this drive. # cryptsetup luksDump /dev/sdb1 Device /dev/sdb1 is not a valid LUKS device.