I have a 8 TB hard disk with two partitions on it: 3 TB and 1 TB, so remaining 4 TB is free. I'd like to create a 3rd partition which would span rest of the disk. In the early days with fdisk when creating a new partition the program would automatically offer a start position which would be right after the end of the previous partition. However GNU parted doesn't offer such an option.
The layout of the drive looks like this:
GNU Parted 3.2
Using /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: ATA WDC WD80EFZX-68U (scsi)
Disk /dev/sdc: 8002GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 3001GB 3001GB primary
2 3001GB 4001GB 1000GB primary
All the guides suggest to use (in this case) "4001GB" as a start and "-1" as an end for the partition. The "4001GB" boundary in this case seems a bit ambiguous to me. While 1 GB in the scope of terabytes is insignificant, OCD-me would like to have the entire disk used.
Hence my question:
Is there a sensible way to create a new partition with GNU Parted in such a way that the new partition is right after the previous one, with proper alignment taken into account? Or - if it is used with MB/GB/TB, does it just "do the right thing"?
unit
command to switch to something more fine grained (egs
for sector, orcyl
for cylinder) – Stephen Harris Dec 27 '18 at 14:46fdisk
, you can also consider usinggdisk
to handle GPT disks. – Haxiel Dec 27 '18 at 16:25