Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jan 2014 22:09:14 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        Marcel Moolenaar <marcel@xcllnt.net>
Cc:        freebsd-geom@freebsd.org
Subject:   Re: "deep" gpart backup?
Message-ID:  <alpine.BSF.2.00.1401132204060.90915@wonkity.com>
In-Reply-To: <4C2C8202-D6B7-4E3A-BE6C-26D362300A2E@xcllnt.net>
References:  <1023566295.20140105015301@serebryakov.spb.ru> <1389461267.16576.69479689.0A3D893A@webmail.messagingengine.com> <F0F3FBB0-348F-4F20-AE06-449A9A7B7E5E@xcllnt.net> <FC3C2BBA-9268-421D-8F28-B9E034A7010B@FreeBSD.org> <EA1339E1-B1D7-464B-B0EF-C3E6C53DA47C@xcllnt.net> <07F2E9B0-F695-4A1D-B046-C902F0ED1A0E@FreeBSD.org> <4C2C8202-D6B7-4E3A-BE6C-26D362300A2E@xcllnt.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 13 Jan 2014, Marcel Moolenaar wrote:

>
> On Jan 13, 2014, at 7:36 PM, Mark Felder <feld@FreeBSD.org> wrote:
>
>>
>> On Jan 13, 2014, at 21:34, Marcel Moolenaar <marcel@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.
>
> 	:
>
>
> Does it help if we add an example?

Probably.  I'd suggest one with \!12 as a common need.

Since we're talking about this, maybe an option for gpart to show the 
aliases it knows would be useful.  Or that list could be added to man 
page, but then it's in two places.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1401132204060.90915>