Se van a crear dos particiones, una de 512GB y otra usando el resto de espacio disponible.
# parted /dev/sde
GNU Parted 3.2
Using /dev/sde
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: ATA WDC WD40EFRX-68W (scsi)
Disk /dev/sde: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: loop
Disk Flags:
Number Start End Size File system Flags
1 0.00B 4001GB 4001GB xfs
(parted) mklabel gpt
Warning: The existing disk label on /dev/sde will be destroyed and all data on this disk will be lost. Do you want to continue?
Yes/No? yes
(parted) unit TB
(parted) mkpart primary 0.0GB 512.0GB
(parted) print
Model: ATA WDC WD40EFRX-68W (scsi)
Disk /dev/sde: 4.00TB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 0.00TB 0.51TB 0.51TB primary
(parted) quit
Information: You may need to update /etc/fstab.
# parted /dev/sde
GNU Parted 3.2
Using /dev/sde
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: ATA WDC WD40EFRX-68W (scsi)
Disk /dev/sde: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 512GB 512GB WDred4TBn1
# parted --align optimal /dev/sde
GNU Parted 3.2
Using /dev/sde
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: ATA WDC WD40EFRX-68W (scsi)
Disk /dev/sde: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 512GB 512GB WDred4TBn1
(parted) align-check opt 1
1 aligned
(parted) unit tb
(parted) mkpart primary 512.0GB
End? 4.0TB
(parted) print
Model: ATA WDC WD40EFRX-68W (scsi)
Disk /dev/sde: 4.00TB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 0.00TB 0.51TB 0.51TB WDred4TBn1
2 0.51TB 4.00TB 3.49TB primary
(parted) name 2 WDred4TBn2
(parted) print
Model: ATA WDC WD40EFRX-68W (scsi)
Disk /dev/sde: 4.00TB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 0.00TB 0.51TB 0.51TB WDred4TBn1
2 0.51TB 4.00TB 3.49TB WDred4TBn2
(parted) align-check
alignment type(min/opt) [optimal]/minimal? opt
Partition number? 2
2 aligned
(parted) align-check opt 1
1 aligned
(parted) quit