On Fri, Jul 5, 2019 at 10:14 AM Vladimir Romanov <bluebo...@gmail.com> wrote: > > Fdisk can not work with drives larger than 2TB. Your drive may be slightly > (10 mb) larger than that, so the result. For such disks you need not Fdisk, > but GPT programs.
Correction: modern fdisk provided by util-linux supports creating/modifying GPT disks, and emits a warning that MBR cannot be used for disks over 2 TB. Just enter a "g" to switch to GPT mode. That looks something like this: % truncate -s 3T foo.img % fdisk foo.img Welcome to fdisk (util-linux 2.34). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Device does not contain a recognized partition table. The size of this disk is 3 TiB (3298534883328 bytes). DOS partition table format cannot be used on drives for volumes larger than 2199023255040 bytes for 512-byte sectors. Use GUID partition table format (GPT). Created a new DOS disklabel with disk identifier 0x9a0d6a8c. Command (m for help): g Created a new GPT disklabel (GUID: 0B1A00C7-7E53-9644-ACD1-F9A4B67A34AA).