From owner-freebsd-geom@FreeBSD.ORG Tue Jan 14 03:35:00 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 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2F1208BE; Tue, 14 Jan 2014 03:35:00 +0000 (UTC) Received: from mail.xcllnt.net (mail.xcllnt.net [50.0.150.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7E81E17E1; Tue, 14 Jan 2014 03:34:58 +0000 (UTC) Received: from [192.168.2.84] (50-0-150-213.dsl.static.sonic.net [50.0.150.213]) (authenticated bits=0) by mail.xcllnt.net (8.14.7/8.14.7) with ESMTP id s0E3YomX037691 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 13 Jan 2014 19:34:54 -0800 (PST) (envelope-from marcel@xcllnt.net) Content-Type: multipart/signed; boundary="Apple-Mail=_66F899E5-F6C7-42C1-8905-B22460CAB990"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: "deep" gpart backup? From: Marcel Moolenaar In-Reply-To: Date: Mon, 13 Jan 2014 19:34:49 -0800 Message-Id: References: <1023566295.20140105015301@serebryakov.spb.ru> <1389461267.16576.69479689.0A3D893A@webmail.messagingengine.com> To: Mark Felder X-Mailer: Apple Mail (2.1827) Cc: freebsd-geom@freebsd.org X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jan 2014 03:35:00 -0000 --Apple-Mail=_66F899E5-F6C7-42C1-8905-B22460CAB990 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Jan 13, 2014, at 5:57 PM, Mark Felder wrote: >=20 >> gpart is an inherently low-level utility and what you want >> is intended (i.e. by design) to be handled at an application >> layer above gpart. >>=20 >=20 > It's pretty low level, but it does seem to be missing some features I = would expect in such a low level utility such as the ability to create = partitions with custom IDs. You can. While gpart provides common aliases that make it easier to work on different schemes without having to know too many details, you can still use the scheme-specific partition types if you know them. For example: ns1% sudo gpart create -s mbr md0 md0 created ns1% gpart show md0 =3D> 1 2047 md0 MBR (1.0M) 1 2047 - free - (1.0M) New let's create a NetBSD slice: ns1% sudo gpart add -t netbsd -s 1023 md0 gpart: Invalid argument Uh, ok. No alias know. Raw value it is... ns1% sudo gpart add -t \!0xa9 -s 1023 md0 md0s1 added ns1% gpart show md0 =3D> 1 2047 md0 MBR (1.0M) 1 1023 1 !169 (512K) 1024 1024 - free - (512K) HTH, --=20 Marcel Moolenaar marcel@xcllnt.net --Apple-Mail=_66F899E5-F6C7-42C1-8905-B22460CAB990 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iEYEARECAAYFAlLUsFkACgkQpgWlLWHuifa1gwCfW+lpd27SIuWuwBADW11A0N5o 9u4An3o3tce56nJ4v7Aq4a6o387+cdPE =KTut -----END PGP SIGNATURE----- --Apple-Mail=_66F899E5-F6C7-42C1-8905-B22460CAB990--