From owner-freebsd-geom@FreeBSD.ORG Thu Sep 23 07:35:31 2010 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1053A106564A for ; Thu, 23 Sep 2010 07:35:31 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (60.wheelsystems.com [83.12.187.60]) by mx1.freebsd.org (Postfix) with ESMTP id 6853A8FC16 for ; Thu, 23 Sep 2010 07:35:19 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 9FD5745C9F; Thu, 23 Sep 2010 09:35:17 +0200 (CEST) Received: from localhost (pdawidek.whl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id DE210456B1; Thu, 23 Sep 2010 09:35:12 +0200 (CEST) Date: Thu, 23 Sep 2010 09:34:56 +0200 From: Pawel Jakub Dawidek To: Zeus V Panchenko Message-ID: <20100923073456.GA1784@garage.freebsd.pl> References: <20100923070929.GA90077@relay.ibs.dn.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Nq2Wo0NMKNjxTN9z" Content-Disposition: inline In-Reply-To: <20100923070929.GA90077@relay.ibs.dn.ua> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 9.0-CURRENT amd64 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=4.5 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-geom@freebsd.org Subject: Re: to clone geli flash drive ... X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2010 07:35:31 -0000 --Nq2Wo0NMKNjxTN9z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 23, 2010 at 10:09:29AM +0300, Zeus V Panchenko wrote: > Hi All, >=20 > is there way to clone dedicated geli configured flash drive? >=20 > i mean something like this: >=20 > 1. plug in geli configured dedicated flash drive to be clonned=20 > (it detects lets say da0) > 2. plug in new flash drive to clone p.1 drive to=20 > (it detects lets say da1) > 3. dd if=3D/dev/da0 of=3D/dev/da1 bs=3D10240 conv=3Dsync > 4. geli attach -k /dev/da1s1 >=20 > i was trying and it has no effect, geli unattacheble and data is > corrupted :( >=20 > am i wrong to think it is possible somehow? It should be possible. Could you provide the output of: # geli dump /dev/da0s1 | head # geli dump /dev/da1s1 | head # diskinfo -v /dev/da[01]s1 --=20 Pawel Jakub Dawidek http://www.wheelsystems.com pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --Nq2Wo0NMKNjxTN9z Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkybAx8ACgkQForvXbEpPzSMPQCgmvrE6mOS7m0sQTQ5Mi+aKGdH e9QAn20NMZk/wUiFEorpm8UIK6sFQNay =Ush0 -----END PGP SIGNATURE----- --Nq2Wo0NMKNjxTN9z--