All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] LUKS header always disappears after reboot
Date: Fri, 6 Jan 2012 10:37:35 +0100	[thread overview]
Message-ID: <20120106093735.GB28583@tansi.org> (raw)
In-Reply-To: <4F064A43.3040004@gmail.com>

On Thu, Jan 05, 2012 at 08:11:31PM -0500, Cory Coager wrote:
> On 01/05/2012 03:11 AM, Arno Wagner wrote:
> > Well, that is not a LUKS header, that looks like an EFI MBR
> > or bootsector. There is no trace of the LUKS header.
> >
> > Either something is writing this to your disk
> > or, if this is an USB disk, the USB-to-SATA controller in
> > the disk may be doing this in violation of the spec, probably
> > in a misguided atempt to make this thing usable under Windows.
> >
> > Is this really /dev/sdb1 and not /dev/sdb and is the partition
> > still there?
> >
> > As to your data, unless you have a LUKS header backup, it is 
> > very likely gone. 
> >
> > Here is something you can try: Zero the first GB or so of
> > the drive, sync, reboot and see whether anything is on it.
> > Then do the same, but unplug the drive while the computer
> > is on and hotplug it after booting. And finaly do the same
> > and unplug and replug the drive without booting the computer.
> > That could give indication of whether the drive is doing 
> > something by itself or whether the PC is writing something. 
> >
> > Arno

> OK, I have a good deal of information of what the problem is.  The issue
> seems to happen on two specific computers but not a third.  They aren't
> recognizing the entire hard drive size.  fdisk is showing 3tb for
> /dev/sdb but if I run fdisk on /dev/sdb1 it only shows 2199 GB for size.
> 
> Now, when I connected this drive to the third machine, it works
> perfectly.  My data is still intact, I can see the LUKS header and I can
> mount the file system.

Aha, so this is some broken mapping for large drives.
Then the EFI header could be something left over that
does not matter at all.
 
> Now that I've narrowed down the issue, how can I resolve it?  Why can't
> these two computers see the entire drive size?
>
> Both are custom builds, the drive was connected directly via SATA
> 
> Computer #1
> Abit KN8 Motherboard
> BIOS version 6.00 PG
> AMD Athlon(tm) 64 Processor 3200+
> 
> Computer #2
> Asus A8N32-SLI-Deluxe Motherboard
> BIOS version 1303
> AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
> 
> 
> Do you think I need a BIOS update or am I missing something in the OS?

I suspect that a BIOS update is necessary. For older boards that
coul be problematic. There may also be a hardware limitation in 
there somewhere, I am not sure. 

It may be a good idea to use the drives only via USB on the older
computers.

However, not a cryptsetup problem, so let us take this off the list.

Arno
-- 
Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno@wagner.name 
GnuPG:  ID: 1E25338F  FP: 0C30 5782 9D93 F785 E79C  0296 797F 6B50 1E25 338F
----
One of the painful things about our time is that those who feel certainty 
are stupid, and those with any imagination and understanding are filled 
with doubt and indecision. -- Bertrand Russell 

  reply	other threads:[~2012-01-06  9:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-04  3:46 [dm-crypt] LUKS header always disappears after reboot Cory Coager
2012-01-04 18:59 ` Arno Wagner
2012-01-05  0:50   ` Cory Coager
2012-01-05  8:11     ` Arno Wagner
2012-01-06  1:11       ` Cory Coager
2012-01-06  9:37         ` Arno Wagner [this message]
2012-01-06 11:37           ` Cory Coager

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=20120106093735.GB28583@tansi.org \
    --to=arno@wagner.name \
    --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 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.