Re: disklabel fs types, where can I find the whole list of supported types?

2015-10-05 Thread Nick Holland

On 10/05/15 06:47, Benny Lofgren wrote:
...

Personally, I think it would be a good thing to bring back slices to the
vocabulary. That would emphasize the distinction between physical disk
partitions as they appear in the PC-centric hardware world and logical
partitions/slices that are a subdivision *within* a disk partition.


no.  You are going from an ambiguity that can be solved by adding ONE 
well-understood word ("fdisk partitions" "disklabel partitions") to 
adding a new word that you have a definition of that may or may not be 
shared by the world.


iirc (and don't bother to check or correct -- it does not matter) one 
BSD refers to fdisk partitions as slices, and disklabel partitions as 
partitions.  Congrats, you just did it backwards from another group and 
*added* to the confusion.  Or didn't, depending on my memory.


The best answer to confusion is writing clearly, even if that involves a 
few more words (oh the horror).


Nick.



Re: disklabel fs types, where can I find the whole list of supported types?

2015-10-05 Thread Theo de Raadt
> Benny Lofgren wrote:
> > Personally, I think it would be a good thing to bring back slices to the
> > vocabulary. That would emphasize the distinction between physical disk
> > partitions as they appear in the PC-centric hardware world and logical
> > partitions/slices that are a subdivision *within* a disk partition.
> > 
> > Not all architectures even have the PC notion of MBR/GPT partitioning,
> > but rather use slices directly as the only means to subdivide a disk.
> 
> Ironically, I think slice is a rather PC-centric term. Sun systems for
> instance, use disklabels natively and call the parts within partitions.
> Demoting "partition" to "slice" is only necessary on PCs (and I think why
> this term mostly sees use in FreeBSD). It would be silly to use "slice" when
> talking about Sun machines, because it is not a subdivision of some other
> partition.

Sorry Benny, but he's right.  It's not just the Sun machines.  It's
most of the other architectures, and furthermore it is the name of the
structure in the kernel, so good luck with that effort of retraining
the people who write your software.

Unambigious is best:

> Just say MBR (or DOS) partition or BSD partition as needed.



Re: disklabel fs types, where can I find the whole list of supported types?

2015-10-05 Thread Ted Unangst
Benny Lofgren wrote:
> Personally, I think it would be a good thing to bring back slices to the
> vocabulary. That would emphasize the distinction between physical disk
> partitions as they appear in the PC-centric hardware world and logical
> partitions/slices that are a subdivision *within* a disk partition.
> 
> Not all architectures even have the PC notion of MBR/GPT partitioning,
> but rather use slices directly as the only means to subdivide a disk.

Ironically, I think slice is a rather PC-centric term. Sun systems for
instance, use disklabels natively and call the parts within partitions.
Demoting "partition" to "slice" is only necessary on PCs (and I think why
this term mostly sees use in FreeBSD). It would be silly to use "slice" when
talking about Sun machines, because it is not a subdivision of some other
partition.

Just say MBR (or DOS) partition or BSD partition as needed.



Re: disklabel fs types, where can I find the whole list of supported types?

2015-10-05 Thread Mikael
First peripherally:
2015-10-05 17:58 GMT+08:00 Jason McIntyre :

> we're not talking about the list in fstab(5)?
>
http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man5/fstab.5?query=fstab&arch=i386

Nice but it misses the 4.2BSD and RAID types.
Then centrally:



2015-10-05 17:14 GMT+08:00 Ingo Schwarze :

> Mikael, why do you ask?  What is the actual problem you want to
> solve?  Read a disk that nobody touched for 35 years?  Write a disk
> that can be read by a machine which hadn't its operating system
> upgraded for 35 years?
>
> If it's just "i have no special needs but i can configure something
> here but i don't know the options", i'd recommend you just stop
> worrying and don't touch the defaults.  In general, in particular
> with low-level tools like this, in particular when it's not even
> documented, the message the developers are trying to send is "use
> the defaults unless you have very special needs and you know what
> you are doing".  Nothing interesting to see here, move on...
>

2015-10-05 18:25 GMT+08:00 Ted Unangst :

> the lack of documentation may be an oversight, but i can't imagine why one
> would neet to know. if curious, refer to the source. if trying to solve a
> problem, picking the obvious name will likely work. if there are values you
> don't know about, you probably don't have a use for them.
>

Indeed I didn't get to this question with a "good" reason - I wanted to
learn backwards how keydisks *might* be loaded, as that is undocumented
(too). However, with this said,


In such a central aspect of the system as the disk slicing/labelling, I
think it's reasonable to have some kind of suggestion or documentation of
at least what would be included in normal usecases;

The way it is now is that as user you learn to know that "4.2BSD" and
"swap" are possible options, because the "a" option will insinuate those
through its default setting.

And, as soon as you dig into the softraid docs, you get mentionings that
there's a label of type "RAID" too, and you try to type it in and it works,

And last you type in gibberish and it gives you "undefined", so that way
you learn of in total four options.


I don't know about you but I can feel this as a bit much "black box"
behavior, so just a little bit more documentation somewhere would be
fantastic.

Just the "man disklabel" saying something like

"FS type" is generally "BSD4.2" for all partitions except for b which
should "swap", and you might want "RAID" too, and if you need a raw blob
then use "[ SOMETHING ]". (Also CD ISO99.. and FAT, noo???) Other than this
don't experiment as there's a lot of legacy about this setting.


(and perhaps typing in "?" in the "FS type" input in the disklabel program)
would be helpful!

(Without getting into undefined territory where you'd risk messing up 35
year old exotic conventions etc.)



Re: disklabel fs types, where can I find the whole list of supported types?

2015-10-05 Thread Benny Lofgren
On 2015-10-05 11:58, Jason McIntyre wrote:
> On Mon, Oct 05, 2015 at 11:14:09AM +0200, Ingo Schwarze wrote:
>>
>>> On Mon, Oct 5, 2015, at 03:53 AM, Mikael wrote:
>>
 which FS types are available in the disklabel tool?
>>
>> The list is in the header file /usr/include/sys/disklabel.h,
>>   static char *fstypenames[]
>>
>> I don't think this is documented, not even in readlabelfs(3) or
>> in disklabel(5).
>>
> 
> we're not talking about the list in fstab(5)?


Ah, look! Well, almost. :-)

That list includes types like nfs and tmpfs that are not disk-centric
partition types, and it deals with file systems (the exception being
swap) whereas a partition type in theory can contain any type of data.

One example is the RAID type, that in turn contains data that becomes an
abstraction of a disk within a disk. Another is that in the bad old days
it was common to store for example Oracle and Informix databases on raw
partitions. This was done to squeeze every last ounce of performance out
of a server by bypassing the operating system's file system layer. It
might have improved performance but was a bloody mess to manage, backups
being a particular pain in the rear to deal with as I recall.


Unfortunately, the kind of misunderstanding we've seen in this thread
comes from the terminology being a bit fuzzy.

What I just referred to as partition types, and disklabel et al somewhat
incorrectly calls file system types (swap is not a file system for
example), is also sometimes called slices.

Personally, I think it would be a good thing to bring back slices to the
vocabulary. That would emphasize the distinction between physical disk
partitions as they appear in the PC-centric hardware world and logical
partitions/slices that are a subdivision *within* a disk partition.

Not all architectures even have the PC notion of MBR/GPT partitioning,
but rather use slices directly as the only means to subdivide a disk.


Regards,

/Benny



Re: disklabel fs types, where can I find the whole list of supported types?

2015-10-05 Thread Otto Moerbeek
On Mon, Oct 05, 2015 at 06:25:56AM -0400, Ted Unangst wrote:

> Jason McIntyre wrote:
> > On Mon, Oct 05, 2015 at 11:14:09AM +0200, Ingo Schwarze wrote:
> > > 
> > > > On Mon, Oct 5, 2015, at 03:53 AM, Mikael wrote:
> > > 
> > > >> which FS types are available in the disklabel tool?
> > > 
> > > The list is in the header file /usr/include/sys/disklabel.h,
> > >   static char *fstypenames[]
> > > 
> > > I don't think this is documented, not even in readlabelfs(3) or
> > > in disklabel(5).
> > > 
> > 
> > we're not talking about the list in fstab(5)?
> 
> mostly, but that list includes "vnd" and omits "raid".
> 
> the lack of documentation may be an oversight, but i can't imagine why one
> would neet to know. if curious, refer to the source. if trying to solve a
> problem, picking the obvious name will likely work. if there are values you
> don't know about, you probably don't have a use for them.

vnd and raid are not mountable filesystems types, therefore they are
lacking in the second list in sys/disklabel.h

-Otto



Re: disklabel fs types, where can I find the whole list of supported types?

2015-10-05 Thread Otto Moerbeek
On Mon, Oct 05, 2015 at 10:57:51AM +0059, Jason McIntyre wrote:

> On Mon, Oct 05, 2015 at 11:14:09AM +0200, Ingo Schwarze wrote:
> > 
> > > On Mon, Oct 5, 2015, at 03:53 AM, Mikael wrote:
> > 
> > >> which FS types are available in the disklabel tool?
> > 
> > The list is in the header file /usr/include/sys/disklabel.h,
> >   static char *fstypenames[]
> > 
> > I don't think this is documented, not even in readlabelfs(3) or
> > in disklabel(5).
> > 
> 
> we're not talking about the list in fstab(5)?
> jmc

Nope, there are two lists defined in sys/disklabel.h: fstypenames and
fstypesnames (note the extra s). 

The first lists the names used in disklabels, the second in fstab. It
suggests the types names in the lists should corresond.

-Otto



Re: disklabel fs types, where can I find the whole list of supported types?

2015-10-05 Thread Raimo Niskanen
On Mon, Oct 05, 2015 at 10:57:51AM +0059, Jason McIntyre wrote:
> On Mon, Oct 05, 2015 at 11:14:09AM +0200, Ingo Schwarze wrote:
> > 
> > > On Mon, Oct 5, 2015, at 03:53 AM, Mikael wrote:
> > 
> > >> which FS types are available in the disklabel tool?
> > 
> > The list is in the header file /usr/include/sys/disklabel.h,
> >   static char *fstypenames[]
> > 
> > I don't think this is documented, not even in readlabelfs(3) or
> > in disklabel(5).
> > 
> 
> we're not talking about the list in fstab(5)?
> jmc

Since neither "4.2BSD", "4.1BSD" nor "RAID" is in that list
I would guess not.

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



Re: disklabel fs types, where can I find the whole list of supported types?

2015-10-05 Thread Ted Unangst
Jason McIntyre wrote:
> On Mon, Oct 05, 2015 at 11:14:09AM +0200, Ingo Schwarze wrote:
> > 
> > > On Mon, Oct 5, 2015, at 03:53 AM, Mikael wrote:
> > 
> > >> which FS types are available in the disklabel tool?
> > 
> > The list is in the header file /usr/include/sys/disklabel.h,
> >   static char *fstypenames[]
> > 
> > I don't think this is documented, not even in readlabelfs(3) or
> > in disklabel(5).
> > 
> 
> we're not talking about the list in fstab(5)?

mostly, but that list includes "vnd" and omits "raid".

the lack of documentation may be an oversight, but i can't imagine why one
would neet to know. if curious, refer to the source. if trying to solve a
problem, picking the obvious name will likely work. if there are values you
don't know about, you probably don't have a use for them.



Re: disklabel fs types, where can I find the whole list of supported types?

2015-10-05 Thread Jason McIntyre
On Mon, Oct 05, 2015 at 11:14:09AM +0200, Ingo Schwarze wrote:
> 
> > On Mon, Oct 5, 2015, at 03:53 AM, Mikael wrote:
> 
> >> which FS types are available in the disklabel tool?
> 
> The list is in the header file /usr/include/sys/disklabel.h,
>   static char *fstypenames[]
> 
> I don't think this is documented, not even in readlabelfs(3) or
> in disklabel(5).
> 

we're not talking about the list in fstab(5)?
jmc



Re: disklabel fs types, where can I find the whole list of supported types?

2015-10-05 Thread Ingo Schwarze
Hi,

Eric Furman wrote on Mon, Oct 05, 2015 at 04:18:02AM -0400:

> Its been explained to you already.
> You're just being a troll now.

Eric, please don't insult users.
Just because i misunderstand a question doesn't mean it's a stupid question.
Repeating an unanswered question is not trolling.

I don't know why Mikael wants to know this, but the question
as such wasn't answered yet.

> On Mon, Oct 5, 2015, at 03:53 AM, Mikael wrote:

>> which FS types are available in the disklabel tool?

The list is in the header file /usr/include/sys/disklabel.h,
  static char *fstypenames[]

I don't think this is documented, not even in readlabelfs(3) or
in disklabel(5).

I'm not an expert in this area, but from the list in the header file,
i suspect this.  The FS type is used for two things.

  1. Mark legacy file system types you might find on extremely
 old disks, like 4.1BSD.  Mikael is not likely to need to
 worry about that.

  2. Mark non-OpenBSD filesystems that OpenBSD (fully or partially)
 supports, like msdos, cd9660, ext2fs, ntfs, ...
 But you almost never put those inside the OpenBSD area of your
 disks, so you don't need to type their names into disklabel(8).
 Instead, such file systems usually have their own architecture-
 dependent partitions (e.g. MBR partitions) and the kernel
 autogenerates a non-permanent disklabel when needed.  So you
 almost never need to worry about them.

So probably it isn't documented because users almost never need to
do anything manually in this respect.

Mikael, why do you ask?  What is the actual problem you want to
solve?  Read a disk that nobody touched for 35 years?  Write a disk
that can be read by a machine which hadn't its operating system
upgraded for 35 years?

If it's just "i have no special needs but i can configure something
here but i don't know the options", i'd recommend you just stop
worrying and don't touch the defaults.  In general, in particular
with low-level tools like this, in particular when it's not even
documented, the message the developers are trying to send is "use
the defaults unless you have very special needs and you know what
you are doing".  Nothing interesting to see here, move on...

Yours,
  Ingo



Re: disklabel fs types, where can I find the whole list of supported types?

2015-10-05 Thread Raimo Niskanen
On Mon, Oct 05, 2015 at 04:18:02AM -0400, Eric Furman wrote:
> Its been explained to you already.
> You're just being a troll now.

I, like the OP, can not find that explanation so far in this thread.
All that has been explained is about fdisk's MBR partitions which is not what
the OP:s asked about.

In the disklabel(8) tool using e.g the -E switch to get to the interactive
editor; there you have commands 'a' and 'm' in which you may enter a filesystem
type for a partition that per default is "4.2BSD" for partitions a and d 
upwards,
and default "swap" for partition b.  You can also use the filesystem type "RAID"
for a partition to use by softraid(4) which is documented in softraid(4).

The question is: what are the allowed values for this "filesystem type" in
the disklabel(8) tool and where are they documented?

> 
> On Mon, Oct 5, 2015, at 03:53 AM, Mikael wrote:
> > Right, I am fully aware of that (i.e. that you can type in MBR partition
> > type as HEX code in the fdisk tool) - please correct me if I'm wrong, but
> > that is specific to the FDISK (and the MBR partition table only), and the
> > BSD disklabel and hence what you're working with in the disklabel tool,
> > is
> > separate altogether from that;
> > 
> > My question was (third time now), which FS types are available in the
> > disklabel tool?
> > 
> > Is it "4.2BSD", "swap", "RAID" and "unknown" only, or are there any more?
> > 
> > 
> > 2015-10-05 15:41 GMT+08:00 Dusan Sukovic :
> > 
> > > Yes, but beside ffs HEX id inside fdisk prompt you have also ffs partition
> > > id values in plain English..
> > >
> > > Regards,
> > >
> > > Dusan
> > >
> > > 2015-10-05 9:28 GMT+02:00 Mikael :
> > >
> > > >
> > > > 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:

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



Re: disklabel fs types, where can I find the whole list of supported types?

2015-10-05 Thread Benny Lofgren
On 2015-10-05 10:18, Eric Furman wrote:
> Its been explained to you already.
> You're just being a troll now.

Hey, give the guy a break. You have *all* so far misunderstood him,
despite his question being correctly worded and clear enough.

He *is* talking about disklabel, and the file system types you enter
when you create or modify partitions using the partition editor
(disklabel -E).

And he is right, they are poorly documented. It took me some digging
through the source to even find a list of accepted types, but I haven't
been able to find any *documentation* apart from source code about what
each type does and where it is applicable to use it.

Anyway, Mikael, if you look in /usr/include/sys/disklabel.h you'll find
an array char *fstypenames[] where you can see the list of allowed
types. I think the only relevant ones in normal use are unused, swap,
4.2BSD, RAID and possibly MSDOS and ISO9660. Someone please correct me
if there are other types in regular use.


Regards,

/Benny



> On Mon, Oct 5, 2015, at 03:53 AM, Mikael wrote:
>> Right, I am fully aware of that (i.e. that you can type in MBR partition
>> type as HEX code in the fdisk tool) - please correct me if I'm wrong, but
>> that is specific to the FDISK (and the MBR partition table only), and the
>> BSD disklabel and hence what you're working with in the disklabel tool,
>> is
>> separate altogether from that;
>>
>> My question was (third time now), which FS types are available in the
>> disklabel tool?
>>
>> Is it "4.2BSD", "swap", "RAID" and "unknown" only, or are there any more?
>>
>>
>> 2015-10-05 15:41 GMT+08:00 Dusan Sukovic :
>>
>>> Yes, but beside ffs HEX id inside fdisk prompt you have also ffs partition
>>> id values in plain English..
>>>
>>> Regards,
>>>
>>> Dusan
>>>
>>> 2015-10-05 9:28 GMT+02:00 Mikael :
>>>

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

-- 
internetlabbet.se / work:   +46 8 551 124 80  / "Words must
Benny Lofgren/  mobile: +46 70 718 11 90 /   be weighed,
/   fax:+46 8 551 124 89/not counted."
   /email:  benny -at- internetlabbet.se



Re: disklabel fs types, where can I find the whole list of supported types?

2015-10-05 Thread Eric Furman
Its been explained to you already.
You're just being a troll now.

On Mon, Oct 5, 2015, at 03:53 AM, Mikael wrote:
> Right, I am fully aware of that (i.e. that you can type in MBR partition
> type as HEX code in the fdisk tool) - please correct me if I'm wrong, but
> that is specific to the FDISK (and the MBR partition table only), and the
> BSD disklabel and hence what you're working with in the disklabel tool,
> is
> separate altogether from that;
> 
> My question was (third time now), which FS types are available in the
> disklabel tool?
> 
> Is it "4.2BSD", "swap", "RAID" and "unknown" only, or are there any more?
> 
> 
> 2015-10-05 15:41 GMT+08:00 Dusan Sukovic :
> 
> > Yes, but beside ffs HEX id inside fdisk prompt you have also ffs partition
> > id values in plain English..
> >
> > Regards,
> >
> > Dusan
> >
> > 2015-10-05 9:28 GMT+02:00 Mikael :
> >
> > >
> > > 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:



Re: disklabel fs types, where can I find the whole list of supported types?

2015-10-05 Thread Dusan Sukovic
Sure, there are many FS types, you get list of them inside fdisk -e
prompt,  but AFAK in the disklabel tool FS that are available are only
those which you choose in fdisk -e prompt for the partition on your hd.
Maybe I'm somewhere wrong, but these are just my thoughts on topic. It
helps off course to read OpenBSD FAQ, or man pages..


Best regards,

Dusan




> My question was (third time now), which FS types are available in the
> disklabel tool?
>
> Is it "4.2BSD", "swap", "RAID" and "unknown" only, or are there any more?



Re: disklabel fs types, where can I find the whole list of supported types?

2015-10-05 Thread Mikael
Right, I am fully aware of that (i.e. that you can type in MBR partition
type as HEX code in the fdisk tool) - please correct me if I'm wrong, but
that is specific to the FDISK (and the MBR partition table only), and the
BSD disklabel and hence what you're working with in the disklabel tool, is
separate altogether from that;

My question was (third time now), which FS types are available in the
disklabel tool?

Is it "4.2BSD", "swap", "RAID" and "unknown" only, or are there any more?


2015-10-05 15:41 GMT+08:00 Dusan Sukovic :

> Yes, but beside ffs HEX id inside fdisk prompt you have also ffs partition
> id values in plain English..
>
> Regards,
>
> Dusan
>
> 2015-10-05 9:28 GMT+02:00 Mikael :
>
> >
> > 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:



Re: disklabel fs types, where can I find the whole list of supported types?

2015-10-05 Thread Dusan Sukovic
Yes, but beside ffs HEX id inside fdisk prompt you have also ffs partition
id values in plain English..

Regards,

Dusan

2015-10-05 9:28 GMT+02:00 Mikael :

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



Re: disklabel fs types, where can I find the whole list of supported types?

2015-10-05 Thread Mikael
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 :

> 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



Re: disklabel fs types, where can I find the whole list of supported types?

2015-10-05 Thread Ingo Schwarze
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



Re: disklabel fs types, where can I find the whole list of supported types?

2015-10-04 Thread Dusan Sukovic
man fdisk


# fdisk -e  sd0
Enter 'help' for information
fdisk: 1> p
Disk: sd0   geometry: 60801/255/63 [976773168 Sectors]
Offset: 0   Signature: 0xAA55
Starting Ending LBA Info:
 #: id  C   H   S -  C   H   S [   start:size ]
---
 0: A6  0   0   1 -  60801  80  63 [   0:   976773168 ]
OpenBSD
 1: 00  0   0   0 -  0   0   0 [   0:   0 ]
unused
 2: 00  0   0   0 -  0   0   0 [   0:   0 ]
unused
 3: 00  0   0   0 -  0   0   0 [   0:   0 ]
unused
fdisk: 1> edit 0
Starting Ending LBA Info:
 #: id  C   H   S -  C   H   S [   start:size ]
---
 0: A6  0   0   1 -  60801  80  63 [   0:   976773168 ]
OpenBSD
Partition id ('0' to disable) [0 - FF]: [A6] (? for help) ?
Choose from the following Partition id values:
00 unused 20 Willowsoft 66 NetWare 386A9 NetBSD
01 DOS FAT-12 24 NEC DOS67 Novell AB MacOS X boot
02 XENIX /27 Win Recovery   68 Novell AF MacOS X HFS+
03 XENIX /usr 38 Theos  69 Novell B7 BSDI filesy*
04 DOS FAT-16 39 Plan 9 70 DiskSecure B8 BSDI swap

Best regards,

Dusan

2015-10-05 7:44 GMT+02:00 Mikael :

> Hi,
>
> Where can I see a complete list of disklabel fs types?
>
> It must be documented somewhere, but I can't find it neither in the
> "disklabel" tool itself, nor in its man pages.
>
> In disklabel's "a" command, typing "?" is interpreted as invalid input, and
> typing "help" is interpreted as choosing the fs type "unknown".
>
> Thanks,
> Mikael



disklabel fs types, where can I find the whole list of supported types?

2015-10-04 Thread Mikael
Hi,

Where can I see a complete list of disklabel fs types?

It must be documented somewhere, but I can't find it neither in the
"disklabel" tool itself, nor in its man pages.

In disklabel's "a" command, typing "?" is interpreted as invalid input, and
typing "help" is interpreted as choosing the fs type "unknown".

Thanks,
Mikael