On Wed, Dec 22, 2021 at 5:23 AM Crystal Kolipe <kolip...@exoticsilicon.com>
wrote:

> On Tue, Dec 21, 2021 at 06:04:28PM -0500, Rob Whitlock wrote:
> > A problem seems to be that there is no disklabel entry for the ExFAT
> > partition.
>
> You probably wrote a BSD disklabel to the disk before creating the ExFAT
> partition.
>

I formatted the disk on a MacOS system, so I'm pretty sure there is no
disklabel on the disk.


> If there is no on-disk disklabel, the kernel will create one in memory
> based on information from other partitioning schemes, (MBR, GPT).  So in
> this case, as you change those MBR or GPT partitions, those changes will be
> reflected in the disklabel that the kernel sees.
>
> Once you actually write a disklabel to the disk, that on-disk disklabel is
> then used in place of calculating one each time the disk is attached, and
> the automatic parsing of MBR and GPT partition information stops.
>
> To solve your problem, you need to add the details of the ExFAT partition
> to the BSD disklabel.  You can either do that manually with the disklabel
> command, or since you do not have any OpenBSD partitions on the disk, you
> could overwrite the on-disk disklabel, allow the kernel to generate one
> automatically with the correct information, then optionally force it to be
> written to the disk by running disklabel and entering 'w' at the
> interactive prompt.
>

I would like to not modify the on-disk contents. Is there a way to get
OpenBSD to recognize the partition without writing things to the disk?

Reply via email to