Re: setting currdev correctly after repartitioning
- Reply: void : "Re: setting currdev correctly after repartitioning"
- In reply to: void : "Re: setting currdev correctly after repartitioning"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 22 Jun 2024 16:13:14 UTC
On Sat, Jun 22, 2024, 10:06 AM 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 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) > MBR >> 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 ? > 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 >