Date: Sat, 22 Jun 2024 10:13:14 -0600 From: Warner Losh <imp@bsdimp.com> To: FreeBSD FS <freebsd-fs@freebsd.org> Subject: Re: setting currdev correctly after repartitioning Message-ID: <CANCZdfpKUBmbd2tadJL1WOJSyEF2NUku%2BjPZPHHbsZcQASZZhw@mail.gmail.com> In-Reply-To: <Znb2gJYnxa5XJQPc@int21h> References: <ZnbsgLFBVRtzycPU@int21h> <CANCZdfpef361Qzan7a%2BoHweMAdu2gj5ZanSCZk6=adhNc5xtsA@mail.gmail.com> <Znb2gJYnxa5XJQPc@int21h>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000f0db78061b7cd386 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Jun 22, 2024, 10:06=E2=80=AFAM void <void@f-m.fm> wrote: > 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 ar= e > >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. > > > > >=3D> 63 1953525105 da5 MBR (932G) > MBR >> 63 1 - free - (512B) > >> 64 524288 1 fat32lba [active] (256M) > >> 524352 1952448512 2 freebsd (931G) > >> 1952972864 552304 - free - (270M) > >> > >> > >> # gpart show da5s2 > >> > >> =3D> 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 ? > Because something is confusing things. You posted an error message with p2 GPT partition name. You then posted a show part with MBR label. That's the confusing info we need to get to the bottom of. Is this a big in loader.efi? Are there other storage devices confusing things? Is there some way it isnt da5, but some other disk? We need to get to the bottom of this... What does lsdev say at the OK prompt after it can't find loader.conf? Warner > --000000000000f0db78061b7cd386 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" = class=3D"gmail_attr">On Sat, Jun 22, 2024, 10:06=E2=80=AFAM void <<a hre= f=3D"mailto:void@f-m.fm">void@f-m.fm</a>> wrote:<br></div><blockquote cl= ass=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;p= adding-left:1ex">On Sat, Jun 22, 2024 at 09:46:34AM -0600, Warner Losh wrot= e:<br> <br> >How do you know disk0 in the boot loader is da5 in FreeBSD? Or that it&= #39;s<br> >even the disk you think it is? P2 is GPT partitioning, not MBR so you a= re<br> >chasing shadows here, i think.<br> <br> When it's in the rpi4 it'll be da0 as it's a usb3-connected ssd= and it's<br> the boot disk (and the only disk) on that system.<br> <br> When this is plugged into my freebsd *desktop* it's detected as da5.<br= > <br> ><br> >=3D>=C2=A0 =C2=A0 =C2=A0 =C2=A0 63=C2=A0 1953525105=C2=A0 da5=C2=A0 = MBR=C2=A0 (932G)<br></blockquote></div></div><div dir=3D"auto"><br></div><d= iv dir=3D"auto"><br></div><div dir=3D"auto">MBR</div><div dir=3D"auto"><br>= </div><div dir=3D"auto"><div class=3D"gmail_quote"><blockquote class=3D"gma= il_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-lef= t:1ex"> >>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 63=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A01=C2=A0 =C2=A0 =C2=A0 =C2=A0- free -=C2=A0 (512B)<br> >>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 64=C2=A0 =C2=A0 =C2=A0 52= 4288=C2=A0 =C2=A0 1=C2=A0 fat32lba=C2=A0 [active]=C2=A0 (256M)<br> >>=C2=A0 =C2=A0 =C2=A0 =C2=A0 524352=C2=A0 1952448512=C2=A0 =C2=A0 2= =C2=A0 freebsd=C2=A0 (931G)<br> >>=C2=A0 =C2=A0 =C2=A0 =C2=A0 1952972864=C2=A0 =C2=A0 =C2=A0 552304= =C2=A0 =C2=A0 =C2=A0 =C2=A0- free -=C2=A0 (270M)<br> >><br> >><br> >> # gpart show da5s2<br> >><br> >> =3D>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00=C2=A0 1952448512=C2=A0 = da5s2=C2=A0 BSD=C2=A0 (931G)<br> >>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00=C2=A0 =C2=A0 1677= 7216=C2=A0 =C2=A0 =C2=A0 1=C2=A0 freebsd-swap=C2=A0 (8.0G)<br> >>=C2=A0 =C2=A0 =C2=A0 16777216=C2=A0 =C2=A0 16777216=C2=A0 =C2=A0 = =C2=A0 2=C2=A0 freebsd-swap=C2=A0 (8.0G)<br> >>=C2=A0 =C2=A0 =C2=A0 33554432=C2=A0 =C2=A0 16777216=C2=A0 =C2=A0 = =C2=A0 4=C2=A0 freebsd-swap=C2=A0 (8.0G)<br> >>=C2=A0 =C2=A0 =C2=A0 50331648=C2=A0 =C2=A0 16777216=C2=A0 =C2=A0 = =C2=A0 5=C2=A0 freebsd-swap=C2=A0 (8.0G)<br> >>=C2=A0 =C2=A0 =C2=A0 67108864=C2=A0 1885339648=C2=A0 =C2=A0 =C2=A0 = 6=C2=A0 freebsd-ufs=C2=A0 (899G)<br> ><br> ><br> >Whatever disk this is, it GPT partitioned, may have a kernel but not th= e<br> >lua support files. It might even not have a recognized filesystem on it= ,<br> >but we think the ESP was on this disk<br> <br> Why does it say MBR ?<br></blockquote></div></div><div dir=3D"auto"><br></d= iv><div dir=3D"auto">Because something is confusing things. You posted an e= rror message with p2 GPT partition name. You then posted a show part with M= BR label. That's the confusing info we need to get to the bottom of. Is= this a big in loader.efi? Are there other storage devices confusing things= ? Is there some way it isnt da5, but some other disk? We need to get to the= bottom of this...</div><div dir=3D"auto"><br></div><div dir=3D"auto">What = does lsdev say at the OK prompt after it can't find loader.conf?</div><= div dir=3D"auto"><br></div><div dir=3D"auto">Warner</div><div dir=3D"auto">= <div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margi= n:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> </blockquote></div></div></div> --000000000000f0db78061b7cd386--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpKUBmbd2tadJL1WOJSyEF2NUku%2BjPZPHHbsZcQASZZhw>