setup-disk: unable to use GPT on disk >2TB.
Setup:
Raspberry Pi 3b,
alpine-rpi-3.12.3-aarch64 on 8GB USB flash drive.
Data drive: 4TB HDD.
I tried to configure the data disk with setup-disk -m data /dev/sdb
but I have a similar error as #4044:
Warning: partition 3 has size 3.0 TB (2996359397376 bytes), which is larger than the 2199023255040 bytes limit imposed by the DOS partition table for 512-byte sectors.
According to the reply in that issue, GPT is required. I understand why and I try setup-disk to use GPT.
BUT.. ;)
(How) can I specify DISKLABEL as stated by setup-disk -h
?
If DISKLABEL is specified, the specified partition label will be used. if no partition label is specified, the default label will be dos except when EFI is detected or explicitly set by USE_EFI which will select gpt. Supported partition labels are: dos, gpt
I've tried to understand the script, I get the gist but not a clear understanding.
Maybe as a feature suggestion: Why is it setup-disk not detecting the disk size and using GPT if disk is unsuitable for DOS? (Besides why is DOS the default?)
Thank you!