Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jun 2024 17:06:24 +0100
From:      void <void@f-m.fm>
To:        freebsd-fs@freebsd.org
Subject:   Re: setting currdev correctly after repartitioning
Message-ID:  <Znb2gJYnxa5XJQPc@int21h>
In-Reply-To: <CANCZdfpef361Qzan7a%2BoHweMAdu2gj5ZanSCZk6=adhNc5xtsA@mail.gmail.com>
References:  <ZnbsgLFBVRtzycPU@int21h> <CANCZdfpef361Qzan7a%2BoHweMAdu2gj5ZanSCZk6=adhNc5xtsA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 ?

-- 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Znb2gJYnxa5XJQPc>