Re: setting currdev correctly after repartitioning

From: void <void_at_f-m.fm>
Date: Sat, 22 Jun 2024 16:06:24 UTC
On Sat, Jun 22, 2024 at 09:46:34AM -0600, Warner Losh wrote:

>How do you know disk0 in the boot loader is da5 in FreeBSD? Or that it's
>even the disk you think it is? P2 is GPT partitioning, not MBR so you are
>chasing shadows here, i think.

When it's in the rpi4 it'll be da0 as it's a usb3-connected ssd and it's
the boot disk (and the only disk) on that system.

When this is plugged into my freebsd *desktop* it's detected as da5.

>
>=>        63  1953525105  da5  MBR  (932G)
>>            63           1       - free -  (512B)
>>            64      524288    1  fat32lba  [active]  (256M)
>>        524352  1952448512    2  freebsd  (931G)
>>        1952972864      552304       - free -  (270M)
>>
>>
>> # gpart show da5s2
>>
>> =>         0  1952448512  da5s2  BSD  (931G)
>>             0    16777216      1  freebsd-swap  (8.0G)
>>      16777216    16777216      2  freebsd-swap  (8.0G)
>>      33554432    16777216      4  freebsd-swap  (8.0G)
>>      50331648    16777216      5  freebsd-swap  (8.0G)
>>      67108864  1885339648      6  freebsd-ufs  (899G)
>
>
>Whatever disk this is, it GPT partitioned, may have a kernel but not the
>lua support files. It might even not have a recognized filesystem on it,
>but we think the ESP was on this disk

Why does it say MBR ?

--