Dear Dusan and Ingo,

I meant disklabel's fs type, not fdisk's partition type;


Disklabel filesystem type is different altogether from fdisk partition
type, isn't it?

And, the disklabel filesystem type is requested as a string (unlike the
fdisk partition type which is an 8-bit unsigned integer typically entered
in hex) and hence you need to know which options are available:

# *disklabel -E wd0*
> *a a*
offset: [0]
size: [12345]
FS type: [4.2BSD] *?*

Filesystem type (usually 4.2BSD or swap)
FS type: [4.2BSD] *help*

Unrecognized filesystem type 'help', treating as 'unknown'


And "e a" asks nothing about fs type.

What do you say?

Mikael


2015-10-05 15:03 GMT+08:00 Ingo Schwarze <[email protected]>:

> Hi Mikael,
>
> Mikael wrote on Mon, Oct 05, 2015 at 01:44:36PM +0800:
>
> > Hi,
> >
> > Where can I see a complete list of disklabel fs types?
>
> https://en.wikipedia.org/wiki/Partition_type
>
> But note that such a list can never be authoritative, never complete,
> and by definition of the concept, almost all of it is irrelevant
> for no matter which task.
>
> It may seem highly unusual that *I* am sending people to the
> web for documentation.  However, there is a reason in this
> particular case.
>
> > It must be documented somewhere,
>
> No, there is no need to.
>
>  1) It is in no way related to OpenBSD.  So why should OpenBSD
>     document it?  All that is relevant to OpenBSD is A6, and
>     that is documented in fdisk(8), where it belongs.
>
>  2) We do want our documentation to be correct and complete,
>     but we also want it to be concise, so we don't include
>     irrelevant information.
>
>  3) OpenBSD does support multibooting, though we clearly
>     discourage it for most use cases.  So you may have a need
>     to know another partition type ID.  But that's a property
>     of your *other* system, so you should look it up in the
>     documentation of your other system.
>
> > but I can't find it neither in the
> > "disklabel" tool itself, nor in its man pages.
>
> It has nothing to do with disklabel(8), it's a property of the
> machine-dependent so called "master boot record".
>
> > In disklabel's "a" command,
>
> I guess you are talking about fdisk(8) -e.
>
> > typing "?" is interpreted as invalid input, and
> > typing "help" is interpreted as choosing the fs type "unknown".
>
> I don't know which version of OpenBSD or which snapshot you
> are using, and right now, i don't have the time or hardware
> to figure out whether there was or is a bug of that kind.
> Maybe someone else can answer this part.
>
> Yours,
>   Ingo

Reply via email to