From owner-freebsd-geom@FreeBSD.ORG Tue Jan 14 04:05:28 2014 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DEEC2B02 for ; Tue, 14 Jan 2014 04:05:28 +0000 (UTC) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 96E4419AE for ; Tue, 14 Jan 2014 04:05:28 +0000 (UTC) Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 1ADCA21131 for ; Mon, 13 Jan 2014 23:05:25 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Mon, 13 Jan 2014 23:05:26 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; s=smtpout; bh=3nG dAtWhtq9KQ96DRE8r5HARuI8=; b=GPjtQ4mNnuouCE6RfP3Cd9RUy4dMBc1hrEa y0S7my6QJcr6M0yjtBKpk+60NZgTUeh9eKel3G6YTgTnGXDvj0XcPw8wzCPimLY4 19kIdulmZVwKXsNLmJWGnPP2KGLWGvpazfposA4I3hLEIv8GCYPlvLWJzaxUQ3DM z0G6t0Sg= X-Sasl-enc: 9pRtIvmMp9+4uEniz+W//Afv4YOCkiwBV6VcJt5qaMnE 1389672325 Received: from [172.16.1.145] (unknown [68.117.126.78]) by mail.messagingengine.com (Postfix) with ESMTPA id F2C38C00E84; Mon, 13 Jan 2014 23:05:24 -0500 (EST) Content-Type: multipart/signed; boundary="Apple-Mail=_12323ADE-9932-45C4-924C-33DC94B95208"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: "deep" gpart backup? From: Mark Felder In-Reply-To: <4C2C8202-D6B7-4E3A-BE6C-26D362300A2E@xcllnt.net> Date: Mon, 13 Jan 2014 22:05:23 -0600 Message-Id: References: <1023566295.20140105015301@serebryakov.spb.ru> <1389461267.16576.69479689.0A3D893A@webmail.messagingengine.com> <07F2E9B0-F695-4A1D-B046-C902F0ED1A0E@FreeBSD.org> <4C2C8202-D6B7-4E3A-BE6C-26D362300A2E@xcllnt.net> To: Marcel Moolenaar 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 04:05:28 -0000 --Apple-Mail=_12323ADE-9932-45C4-924C-33DC94B95208 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Jan 13, 2014, at 21:42, Marcel Moolenaar wrote: >=20 > On Jan 13, 2014, at 7:36 PM, Mark Felder wrote: >=20 >>=20 >> On Jan 13, 2014, at 21:34, Marcel Moolenaar = wrote: >>=20 >>> Uh, ok. No alias know. Raw value it is... >>>=20 >>> 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) >>=20 >> Yay! Can you slip that into the man page? That would be great :-) >=20 > Ok, I need your help. The manpage does mention it, so it's > probably not too clear. This is what the manpage says: >=20 > : >=20 > PARTITION TYPES > Partition types are identified on disk by particular strings or = magic > values. The gpart utility uses symbolic names for common = partition types > so the user does not need to know these values or other details of = the > partitioning scheme in question. The gpart utility also allows = the user > to specify scheme-specific partition types for partition types = that do > not have symbolic names. Symbolic names currently understood are: >=20 > : >=20 > freebsd A FreeBSD partition subdivided into filesystems = with a > BSD disklabel. This is a legacy partition type = and > should not be used for the APM or GPT schemes. = The > scheme-specific types are "!165" for MBR, = "!FreeBSD" for > APM, and "!516e7cb4-6ecf-11d6-8ff8-00022d09712b" = for > GPT. >=20 > : >=20 I have misread this specific sentence several times over the last few = years: "The gpart utility also allows the user to specify scheme-specific = partition=20 types for partition types that do not have symbolic names" I guess it doesn't help that I've always known it as an ID not a = "partition type". Even the Wikipedia article for "Partition types" calls = them IDs. I thought the mention of the values "!165" etc were simply = confirming what values gpart was using internally in relation to those = symbolic names. I'm very pleased to know this is possible now. :-) > Does it help if we add an example? It's possible that I'm in the minority here, but an example would make = it clear. --Apple-Mail=_12323ADE-9932-45C4-924C-33DC94B95208 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 - https://gpgtools.org iQEcBAEBCgAGBQJS1LeDAAoJEJg7ZFAfE+JSvewIALhOc1bCeCqekbR0r4eMtUUh mWaX6XIikPreaWS7a3bw2mMFuQLbxKg4ibg2YZ9nQ17FCT1vlKA+FQ40HEWqrH9C kVQSEm2yiy4eXxIIZyCXeBoGIRn53Q/8NAFe12tzfwtd1lDhhnuqkPCNx4VusOTA 1DPV3TPcxwNQtA25cH+E82jPnoak19yi8piC1atIOL4BZlUlOP+bEtz2NILRRFB8 GYr//t2F3uWTnzq+lImFcYRfbVtULtHl5ip40VRqJhCXejH1rdRKmo9pzCPxFOte iIk/SNtdrmvyTczBcKO8pAYMFllYqIVMLgm1v0DZVHNViVNCe31Oa/9lAt+hTOs= =PKOn -----END PGP SIGNATURE----- --Apple-Mail=_12323ADE-9932-45C4-924C-33DC94B95208--