Hi Brady,
There is a related bug before: Bug 541618 - guestfish not able to mount freebsd ufs2 partitions automatically

On Wed, Dec 8, 2021 at 10:26 PM Laszlo Ersek <lersek@redhat.com> wrote:
On 12/08/21 11:52, Richard W.M. Jones wrote:
> On Tue, Dec 07, 2021 at 12:18:30PM -0600, Brady Pratt wrote:
>> [    1.998352] >>>WARNING<<< Wrong ufstype may corrupt your filesystem, default
>> is ufstype=old
>
> The problem is this one and it's not easily resolvable.  UFS isn't a
> single filesystem type, it's a clade of filesystems which all evolved
> from a common ancestor through the various BSDs, but crucially have
> the same magic number (so no way to differentiate them).  For *BSD
> itself this isn't a problem since the same OS creates and consumes the
> filesystem.

(I think it *should* be considered a problem even for the *BSDs; what
about moving disks between different BSD versions or flavors?)

> But it's a problem for Linux which must be told which
> filesystem type to mount - and get it wrong, as you can see above, Bad
> Things happen.
>
> So it's not really possible to resolve this in libguestfs as we don't
> know the filesystem type until after we have mounted and inspected it.
>
> Rich.
>

_______________________________________________
Libguestfs mailing list
Libguestfs@redhat.com
https://listman.redhat.com/mailman/listinfo/libguestfs