Run the program
# parted /dev/sdX
Set the default unit:
(parted) unit s
Print current partition table:
(parted) print
Model: AMCC 9650SE-24M DISK (scsi)
Disk /dev/sde: 8000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
Create a partition label on the selected disk:
(parted) mklabel gpt
Create a partition label on the selected disk:
(parted) mkpart LVM ext4 0% 100%
If percentage is used parted automatically detects and sets the most suitable free sectors. Therefore you can avoid the error message:
Warning: The resulting partition is not properly aligned for best performance.
In order to remove a partition use the number of the partition from the print command:
(parted) rm 1
References
CheatSheet: parted