From owner-freebsd-geom@FreeBSD.ORG Tue Sep 30 08:41:03 2014 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F18092D2; Tue, 30 Sep 2014 08:41:03 +0000 (UTC) Received: from mail.tdx.com (mail.tdx.com [62.13.128.18]) by mx1.freebsd.org (Postfix) with ESMTP id 99C5F20D; Tue, 30 Sep 2014 08:41:03 +0000 (UTC) Received: from Mail-PC.tdx.co.uk (storm.tdx.co.uk [62.13.130.251]) (authenticated bits=0) by mail.tdx.com (8.14.3/8.14.3/) with ESMTP id s8U8etbB041855 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 30 Sep 2014 09:40:56 +0100 (BST) Date: Tue, 30 Sep 2014 09:40:55 +0100 From: Karl Pielorz To: Pawel Jakub Dawidek Subject: Re: GELI created on a GPT labelled partition doesn't work 2nd time around... Message-ID: <5A6D15305F99246DAE25673C@Mail-PC.tdx.co.uk> In-Reply-To: <20140928130547.GD1620@garage.freebsd.pl> References: <20140928130547.GD1620@garage.freebsd.pl> X-Mailer: Mulberry/4.0.8 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: freebsd-geom@freebsd.org X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Sep 2014 08:41:04 -0000 --On 28 September 2014 15:05 +0200 Pawel Jakub Dawidek wrote: > Could you provide the output of: > > # diskinfo -v /dev/gpt/abcdef.eli Sure, after GPTing, geli init / geli attach - the running the above gives: " /dev/gpt/abcdef.eli 4096 # sectorsize 750155304960 # mediasize in bytes (699G) 183143385 # mediasize in sectors 0 # stripesize 0 # stripeoffset 11400 # Cylinders according to firmware. 255 # Heads according to firmware. 63 # Sectors according to firmware. WD-WCAPT0430257s0s0 # Disk ident. " In the interim - I wrote a script which matches the drives serial numbers, with keys - and does a 'geli attach' on the raw disk (e.g. /dev/da0) - this results in da0.eli, which can then be GPT partitioned etc. Trying to run anything 'against' /dev/gpt/abcdef.eli results in, e.g. # gpart create -s gpt /dev/gpt/abcdef.eli gpart: provider: Device not configured or, dd if=/dev/gpt/abcdef.eli of=/dev/null bs=1k count=1000 dd: /dev/gpt/abcdef.eli: Invalid argument If I repeat the above steps without the initial GPT partition (i.e. against /dev/da0) - I end up with '/dev/da0.eli' - which I can then GPT fine etc. -Karl