From owner-freebsd-geom@FreeBSD.ORG Tue Sep 30 13:54:47 2014 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CCDD6A5F; Tue, 30 Sep 2014 13:54:47 +0000 (UTC) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "funkthat.com", Issuer "funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8CBFBE5B; Tue, 30 Sep 2014 13:54:46 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id s8UDsk1f044191 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 30 Sep 2014 06:54:46 -0700 (PDT) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id s8UDsjrE044190; Tue, 30 Sep 2014 06:54:45 -0700 (PDT) (envelope-from jmg) Date: Tue, 30 Sep 2014 06:54:45 -0700 From: John-Mark Gurney To: Karl Pielorz Subject: Re: GELI created on a GPT labelled partition doesn't work 2nd time around... Message-ID: <20140930135445.GB43300@funkthat.com> Mail-Followup-To: Karl Pielorz , Pawel Jakub Dawidek , freebsd-geom@freebsd.org References: <20140928130547.GD1620@garage.freebsd.pl> <5A6D15305F99246DAE25673C@Mail-PC.tdx.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5A6D15305F99246DAE25673C@Mail-PC.tdx.co.uk> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Tue, 30 Sep 2014 06:54:46 -0700 (PDT) Cc: Pawel Jakub Dawidek , 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 13:54:47 -0000 Karl Pielorz wrote this message on Tue, Sep 30, 2014 at 09:40 +0100: > > > --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. gpt doesn't let you do gpt in gpt.. which explains why you can't create the second level of gpt... Why do you want/need to partition again? You could possibly use bsd as the second layer... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."