Re: Disk partition not recognized

2021-12-27 Thread Rob Whitlock
On Mon, Dec 27, 2021 at 7:28 PM Rob Whitlock wrote: > Thanks for the work tracking down the problems. I reformatted the hard > drive to see if that would do anything and then I installed OpenBSD 7.0 > like you suggested and it started working. I used Disk Utility in MacOS > 10.15.7 Catalina, and

Re: Disk partition not recognized

2021-12-27 Thread Rob Whitlock
On Sat, Dec 25, 2021 at 8:46 AM Crystal Kolipe wrote: > OK, the issue lies with the four byte checksum at offset 0x58 in sector 1. > > Testing on OpenBSD 7.0 release and using your GPT: > > The kernel enters spoofgptlabel and reads sector 1. > > When we call gpt_chk_parts, the calculated checksum

Re: Disk partition not recognized

2021-12-25 Thread Crystal Kolipe
On Thu, Dec 23, 2021 at 08:11:31PM -0300, Crystal Kolipe wrote: > On Thu, Dec 23, 2021 at 07:28:19PM -0300, Crystal Kolipe wrote: > > On Thu, Dec 23, 2021 at 04:15:50PM -0500, Rob Whitlock wrote: > > > On Thu, Dec 23, 2021 at 3:24 PM Crystal Kolipe > > > > > > wrote: > > > > > > > Again, there i

Re: Disk partition not recognized

2021-12-23 Thread Crystal Kolipe
On Thu, Dec 23, 2021 at 07:28:19PM -0300, Crystal Kolipe wrote: > On Thu, Dec 23, 2021 at 04:15:50PM -0500, Rob Whitlock wrote: > > On Thu, Dec 23, 2021 at 3:24 PM Crystal Kolipe > > wrote: > > > > > Again, there is nothing there that would stop it working. > > > > > > You have an MBR partition o

Re: Disk partition not recognized

2021-12-23 Thread Crystal Kolipe
On Thu, Dec 23, 2021 at 04:15:50PM -0500, Rob Whitlock wrote: > On Thu, Dec 23, 2021 at 3:24 PM Crystal Kolipe > wrote: > > > Again, there is nothing there that would stop it working. > > > > You have an MBR partition of type EE starting on sector 1, which is what is > > checked for in gpt_chk_mb

Re: Disk partition not recognized

2021-12-23 Thread Rob Whitlock
On Thu, Dec 23, 2021 at 3:24 PM Crystal Kolipe wrote: > Again, there is nothing there that would stop it working. > > You have an MBR partition of type EE starting on sector 1, which is what is > checked for in gpt_chk_mbr, so unless I'm overlooking something it's > probably chocking in gpt_chk_h

Re: Disk partition not recognized

2021-12-23 Thread Crystal Kolipe
On Thu, Dec 23, 2021 at 02:25:32PM -0500, Rob Whitlock wrote: > On Thu, Dec 23, 2021 at 2:14 PM Crystal Kolipe > wrote: > > > On Thu, Dec 23, 2021 at 01:15:52PM -0500, Rob Whitlock wrote: > > > On Thu, Dec 23, 2021 at 12:22 PM Crystal Kolipe < > > kolip...@exoticsilicon.com> > > > wrote: > > > >

Re: Disk partition not recognized

2021-12-23 Thread Rob Whitlock
On Thu, Dec 23, 2021 at 2:14 PM Crystal Kolipe wrote: > On Thu, Dec 23, 2021 at 01:15:52PM -0500, Rob Whitlock wrote: > > On Thu, Dec 23, 2021 at 12:22 PM Crystal Kolipe < > kolip...@exoticsilicon.com> > > wrote: > > > > > If the spoofed label does not include your non-OpenBSD partitions, > then

Re: Disk partition not recognized

2021-12-23 Thread Crystal Kolipe
On Thu, Dec 23, 2021 at 01:15:52PM -0500, Rob Whitlock wrote: > On Thu, Dec 23, 2021 at 12:22 PM Crystal Kolipe > wrote: > > > If the spoofed label does not include your non-OpenBSD partitions, then for > > some reason the kernel is not parsing the data from the GPT, and we will > > presumably ne

Re: Disk partition not recognized

2021-12-23 Thread Rob Whitlock
On Thu, Dec 23, 2021 at 12:22 PM Crystal Kolipe wrote: > If the spoofed label does not include your non-OpenBSD partitions, then for > some reason the kernel is not parsing the data from the GPT, and we will > presumably need a hexdump of the GPT to see why. > Here is the GPT (the third sector o

Re: Disk partition not recognized

2021-12-23 Thread Theo de Raadt
Rob Whitlock wrote: > On Thu, Dec 23, 2021 at 1:15 AM Theo de Raadt wrote: > > > > Crystal Kolipe wrote: > > > > > On Tue, Dec 21, 2021 at 06:04:28PM -0500, Rob Whitlock wrote: > > > > A problem seems to be that there is no disklabel entry for the ExFAT > > > > partition. > > > > > > You probab

Re: Disk partition not recognized

2021-12-23 Thread Crystal Kolipe
On Thu, Dec 23, 2021 at 12:08:49PM -0500, Rob Whitlock wrote: > On Thu, Dec 23, 2021 at 1:15 AM Theo de Raadt wrote: > > > > Crystal Kolipe wrote: > > > > > On Tue, Dec 21, 2021 at 06:04:28PM -0500, Rob Whitlock wrote: > > > > A problem seems to be that there is no disklabel entry for the ExFAT >

Re: Disk partition not recognized

2021-12-23 Thread Rob Whitlock
On Thu, Dec 23, 2021 at 1:15 AM Theo de Raadt wrote: > > Crystal Kolipe wrote: > > > On Tue, Dec 21, 2021 at 06:04:28PM -0500, Rob Whitlock wrote: > > > A problem seems to be that there is no disklabel entry for the ExFAT > > > partition. > > > > You probably wrote a BSD disklabel to the disk bef

Re: Disk partition not recognized

2021-12-22 Thread Theo de Raadt
Crystal Kolipe wrote: > On Tue, Dec 21, 2021 at 06:04:28PM -0500, Rob Whitlock wrote: > > A problem seems to be that there is no disklabel entry for the ExFAT > > partition. > > You probably wrote a BSD disklabel to the disk before creating the ExFAT > partition. > > If there is no on-disk dis

Re: Disk partition not recognized

2021-12-22 Thread Mihai Popescu
I am not sure you can find someone who knows (almost) everything about disks and partitions even on OpenBSD area. There are so many "standards" and "methods" that the utilities got their names in time: fdisk - %#@& disk dd - destroy disk disklabel - diskbabel But maybe I am mistaken.

Re: Disk partition not recognized

2021-12-22 Thread Crystal Kolipe
On Wed, Dec 22, 2021 at 05:29:34PM +0100, Tilo Stritzky wrote: > (With an MBR disk you could force feed a handcrafted disklabel but > that won't work here because on a GPT disk without OpenBSD partition > the disklabel and the primary GPT share a physical sector and that > won't work.) That is inc

Re: Disk partition not recognized

2021-12-22 Thread Rob Whitlock
On Wed, Dec 22, 2021 at 5:23 AM Crystal Kolipe wrote: > On Tue, Dec 21, 2021 at 06:04:28PM -0500, Rob Whitlock wrote: > > A problem seems to be that there is no disklabel entry for the ExFAT > > partition. > > You probably wrote a BSD disklabel to the disk before creating the ExFAT > partition. >

Re: Disk partition not recognized

2021-12-22 Thread Tilo Stritzky
On 22/12/21 13:35 Tilo Stritzky wrote: Um, well.. What I was going to say is, for some reason the default disklabel doesn't pick up your partitions (it should also show the EFI, but doesn't). As a quick-and-dirty fix you cold try and change the partition ID to something that's picked up by the d

Re: Disk partition not recognized

2021-12-22 Thread Theo de Raadt
James Cook wrote: > I thought the disklabel lives at the start of the OpenBSD partition. That is incorrect.

Re: Disk partition not recognized

2021-12-22 Thread James Cook
On Wed, Dec 22, 2021 at 07:21:41AM -0300, Crystal Kolipe wrote: > On Tue, Dec 21, 2021 at 06:04:28PM -0500, Rob Whitlock wrote: > > A problem seems to be that there is no disklabel entry for the ExFAT > > partition. > > You probably wrote a BSD disklabel to the disk before creating the ExFAT > pa

Re: Disk partition not recognized

2021-12-22 Thread Tilo Stritzky
On 21/12/21 18:04 Rob Whitlock wrote: > I have two disks, one an MBR partitioned 1TB external SSD, and the other a > GPT partitioned 5TB external HDD. Both have a single ExFAT partition on > them and both have the same contents. Both show up as sd1 under "sysctl > hw.disknames" (when plugged in on

Re: Disk partition not recognized

2021-12-22 Thread Crystal Kolipe
On Tue, Dec 21, 2021 at 06:04:28PM -0500, Rob Whitlock wrote: > A problem seems to be that there is no disklabel entry for the ExFAT > partition. You probably wrote a BSD disklabel to the disk before creating the ExFAT partition. If there is no on-disk disklabel, the kernel will create one in me

Disk partition not recognized

2021-12-21 Thread Rob Whitlock
I have two disks, one an MBR partitioned 1TB external SSD, and the other a GPT partitioned 5TB external HDD. Both have a single ExFAT partition on them and both have the same contents. Both show up as sd1 under "sysctl hw.disknames" (when plugged in one at a time, that is). I am able to mount the M