Re: Corrupted partitions after upgrade from 12.3 to 13.0-RELEASE

From: Kaya Saman <kayasaman_at_optiplex-networks.com>
Date: Thu, 01 Sep 2022 16:52:12 UTC
<snip>
>
>>
>>   > In either case when attempting to mount the image I get a message
>>   > saying: "Block device required"
>>
>> vnode-backed mdconfig(8) perhaps? Make sure to use '-o readonly' on 
>> your image.
>>
>> How big is the disk and image?
>
> I'll have a look at mdconfig. I have found another thread where the OP 
> of said thread needed to use this. It's a little surprising for me 
> because I thought that I could just simply 'mount' the .img file. 
> Maybe I have Linux procedures stuck in my head or just have never 
> encountered to do this before.

I managed to mount the disk image. The particular image that worked was 
the one I made using:


dd if=/dev/ada0s1 ...


mdconfig -a -t vnode -f freebsd_bak.img
md0


mount /dev/md0a /tmp/1