From owner-freebsd-geom@FreeBSD.ORG Thu Nov 18 10:53:45 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 0B14A106564A; Thu, 18 Nov 2010 10:53:45 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward5.mail.yandex.net (forward5.mail.yandex.net [77.88.46.21]) by mx1.freebsd.org (Postfix) with ESMTP id AABAF8FC08; Thu, 18 Nov 2010 10:53:44 +0000 (UTC) Received: from smtp2.mail.yandex.net (smtp2.mail.yandex.net [77.88.46.102]) by forward5.mail.yandex.net (Yandex) with ESMTP id 112C814D155D; Thu, 18 Nov 2010 13:53:43 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1290077623; bh=u0Ed9fm5gyLoiSL1pg9gnjtsUyagudqD9yCn3TDfsdo=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:Content-Type; b=OEYxjdZKjOpbZWXaFPQltW91udEpCw2uxMX+vN5gGpVXAhz9Dh5knKTq3ujC9Ax45 tyim4jTLBXdi7yDPMMstGQ58r/ZvZYnDymWDXimVebQ54dr+jQ2O7L/Nj4OqBYjXFZ Qog8HM02/hoSU92ImPM/dQzDtTW3kTqBs3I8VUt4= Received: from [127.0.0.1] (mail.kirov.so-cdu.ru [77.72.136.145]) by smtp2.mail.yandex.net (Yandex) with ESMTPSA id BA7875280A9; Thu, 18 Nov 2010 13:53:42 +0300 (MSK) Message-ID: <4CE505B2.6010601@yandex.ru> Date: Thu, 18 Nov 2010 13:53:38 +0300 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: freebsd-geom@FreeBSD.org X-Enigmail-Version: 1.1.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig1C5A01DA13858C5591855CB2" Cc: Marcel Moolenaar Subject: backup a partition table with gpart(8) 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, 18 Nov 2010 10:53:45 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1C5A01DA13858C5591855CB2 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Hi, Marcel and All. I'm thinking about such feature like ability to dump partition table into file from which it can be recovered in the future. Also it can be used to copy partition table to another device. At the moment i think that just print out a list of commands that should be done to create the same table it is the easiest way. For example: > gpart show ada1 =3D> 34 320172989 ada1 GPT (153G) 34 512 1 freebsd-boot (256K) 546 8388608 2 freebsd-swap (4.0G) 8389154 311783869 3 freebsd-zfs (149G) > gpart dump -f x ada1 geom part create -s gpt -f x ada1 geom part add -b 34 -s 512 -i 1 -t freebsd-boot -f x ada1 geom part add -b 546 -s 8388608 -i 2 -t freebsd-swap -f x ada1 geom part add -b 8389154 -s 311783869 -i 3 -t freebsd-zfs -f x ada1 Any comments and ideas are welcome. --=20 WBR, Andrey V. Elsukov --------------enig1C5A01DA13858C5591855CB2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) iQEcBAEBAgAGBQJM5QW1AAoJEAHF6gQQyKF6MQwIAJp0guFiqVSv2eP+YHk0PsuP v+fx9ejObYlZcuVmsdGjXf5+JF1WmuDpj3BXkQb6qDFxMq4ry3RgSdHaNgy5503R QyWQkrZpKf7E2IFXln3/Drv/Lkewdy+L+ljGPAHFDmwVpu2rZ3G9/1KlSKQ8epKr sMPQHJAJ0LkEtz7hjwhyhn+Y/hO0K4NyMAevhZ2jMxLO5sj2wxZVOp3zjUgs617J KWsIJOlcgZLice5n/Npks/AQ3A6o0pnkxncdHwg9NnIQgPe57EOualVRBiMromFZ 38gFLB2KzTnhan+OcYacFFRLBzCdGOYH92XafGxpWjZbfe5rePQN2j1XZ2JjNr0= =587N -----END PGP SIGNATURE----- --------------enig1C5A01DA13858C5591855CB2--