From owner-freebsd-questions@FreeBSD.ORG Wed Feb 8 02:54:19 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 95778106574D for ; Wed, 8 Feb 2012 02:54:19 +0000 (UTC) (envelope-from me@janh.de) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.8]) by mx1.freebsd.org (Postfix) with ESMTP id 247738FC13 for ; Wed, 8 Feb 2012 02:54:19 +0000 (UTC) Received: from nb981.math (g224001169.adsl.alicedsl.de [92.224.1.169]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0MWhPH-1S1l5K14pP-00Xp09; Wed, 08 Feb 2012 03:41:41 +0100 Message-ID: <4F31E0DB.7030700@janh.de> Date: Wed, 08 Feb 2012 03:41:31 +0100 From: Jan Henrik Sylvester User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0) Gecko/20120201 Thunderbird/10.0 MIME-Version: 1.0 To: questions-list freebsd Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:RDLLqqLC+btpMaDmwRJtMm2tujJxQf0S80Tl3d2FDOH Pm4i7YeKHhcUoQ195WHxk3NyAMNGz8HuM4o3oin8Ar2AtCa1lS b7+oek6gDXI4BEnlRLy1maUzAAOREmaARd/aN+tCjWDi0KRrtN l1uq6elra3fX3lZONArqJF+s3JQtMcKzXFi5+4dX6D5yBQBZF9 WN9b1SVsNZIMfU0hdUapDd2LYWnPste+fQ0DUcybYXWlGOoPqQ rIQxSM0+iXXfySf5RNU9AQfuMy7/9b/myx+f3/TzwYF/MVDWoO tkbXqP9RMINf++hvxoVUuZPxBc84GJWNDP4kX539PUn0O7uuw= = Subject: Swapping geli devices between machines: MD5 hash mismatch X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2012 02:54:19 -0000 I tried to attach a geli encrypted partition from a disk of a different machine attached via eSATA, but I got: geli: MD5 hash mismatch for ada1s2e. Putting the disk back to the old machine, I was able to attach and use the geli encrypted partition without an error. Before I investigate further, is this supported in general? The original machine is 9.0-RELEASE/i386 and does not support aesni. The disk in question is the only harddisk and shows up as: ada0 at ata0 bus 0 scbus0 target 0 lun 0 ada0: ATA-8 SATA 1.x device ada0: 150.000MB/s transfers (SATA, UDMA5, PIO 8192bytes) ada0: 152627MB (312581808 512 byte sectors: 16H 63S/T 16383C) ada0: Previously was known as ad0 GEOM: ada0s2: geometry does not match label (255h,63s != 16h,63s). The machine with the error is 9.0-RELEASE/amd64 and has aesni loaded. The disk in question is attached via eSATA and shows up as: ada1 at ahcich3 bus 0 scbus3 target 0 lun 0 ada1: ATA-8 SATA 1.x device ada1: 150.000MB/s transfers (SATA 1.x, UDMA6, PIO 8192bytes) ada1: Command Queueing enabled ada1: 152627MB (312581808 512 byte sectors: 16H 63S/T 16383C) ada1: Previously was known as ad10 GEOM: ada1s2: geometry does not match label (255h,63s != 16h,63s). The geli partition was initialized on 9.0-RELEASE/i386. The relevant data from fdisk are: cylinders=310101 heads=16 sectors/track=63 (1008 blks/cyl) The data for partition 2 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 83886081, size 125826429 (61438 Meg), flag 0 beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 255/ sector 63 The bsdlabel is: a: 48234496 0 4.2BSD 0 0 0 b: 2097152 48234496 swap c: 125826429 0 unused 0 0 # "raw" part, don't edit e: 75494781 50331648 4.2BSD 0 0 0 I was able to mount and use the other (unencrypted) partition on the machine with the geli error. The major differences -- besides the completely different hardware -- are: SATA/eSATA, i386/amd64, and software/aesni. What could be the issue here? Thanks, Jan Henrik