Friday, December 09, 2022

Re: How to set up a data disk of 4TB?

Perfect, thanks a lot. It worked like a charm.

> On 9 Dec 2022, at 17:23, Crystal Kolipe <kolipe.c@exoticsilicon.com> wrote:
>
> On Fri, Dec 09, 2022 at 04:19:49PM +0000, James Johnson wrote:
>> Hi all,
>>
>> I have installed an internal hard drive of 4TB. This drive will be used for storing data only. It will not contain the OpenBSD system itself.
>>
>> Knowing the limitations of MBR, I have opted for a GPT partitioning system : fdisk -A sd0
>
> If the disk is to be used exclusively with OpenBSD, you can use an MBR partitioning system, even though it's 4 TB.
>
>> Following this, I am trying to add the partition with disklabel.
>>
>> I have created the a partition, of 2TB (the size suggested by the system).
>> Then I try to add another partition, but disklabel tells me I have no space remaining.
>>
>> I am stuck. The only option that seems relevant in the man page is to modify the boundary with the -b option. I am scared to do so without specific advice though, as it could corrupt the OS if done improperly, from what the manual says.
>>
>> I just want to be able to use the full size of the disk. Ideally, I would like a single 4TB partition, but if not possible, I am fine with 2 partitions of 2TB.
>>
>> Any recommendation?
>
> For use with OpenBSD only, create a single MBR partition covering as much of the disk as is possible with MBR, something like:
>
> Disk: sd1 geometry: 267349/255/63 [4294961685 Sectors]
> Offset: 0 Signature: 0xAA55
> Starting Ending LBA Info:
> #: id C H S - C H S [ start: size ]
> -------------------------------------------------------------------------------
> 0: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
> 1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
> 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
> *3: A6 0 1 2 - 267348 254 63 [ 64: 4294961621 ] OpenBSD
>
> Then invoke disklabel -E, and adjust the bounds to fill the whole disk with the b option, giving * as the size.
>
> Finally, add a single large partition covering the whole disk in the normal way.

No comments:

Post a Comment