"deep" gpart backup?

Mark Felder feld at FreeBSD.org
Tue Jan 14 04:05:28 UTC 2014


On Jan 13, 2014, at 21:42, Marcel Moolenaar <marcel at xcllnt.net> wrote:

> 
> On Jan 13, 2014, at 7:36 PM, Mark Felder <feld at FreeBSD.org> wrote:
> 
>> 
>> On Jan 13, 2014, at 21:34, Marcel Moolenaar <marcel at xcllnt.net> wrote:
>> 
>>> Uh, ok. No alias know. Raw value it is...
>>> 
>>> 	ns1% sudo gpart add -t \!0xa9 -s 1023 md0
>>> 	md0s1 added
>>> 	ns1% gpart show md0
>>> 	=>   1  2047  md0  MBR  (1.0M)
>>> 	     1  1023    1  !169  (512K)
>>> 	  1024  1024       - free -  (512K)
>> 
>> Yay! Can you slip that into the man page? That would be great :-)
> 
> Ok, I need your help. The manpage does mention it, so it's
> probably not too clear. This is what the manpage says:
> 
> 	:
> 
> 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:
> 
> 	:
> 
>     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.
> 
> 	:
> 

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 
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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20140113/b16ccdc9/attachment.sig>


More information about the freebsd-geom mailing list