The Linux Newbie Guide  ⇒    Fundamentals     Advanced     Supplement   Command Index   ENG⇒中
All rights reserved, please indicate the source when citing
  

parted - Disk Partitioning Tool




parted ( partition editor) is a disk partitioning tool that serves as a modern replacement for the outdated fdisk. It not only supports partitioning of disks larger than 2TB but also offers advanced disk formatting features that fdisk lacks.

In most distributions, only the superuser can operate parted. It can be used in both command mode and interactive mode.

Examples (Command Mode):
parted /dev/sda print ←Print the partitions on the disk /dev/sda
# parted /dev/sdc mklabel gpt ←Partition the disk /dev/sdc using the GPT partitioning scheme (supports partitions over 2TB)

Examples (Interactive Mode):
# parted
GNU Parted 3.1
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) ←Once you see this prompt, you're in interactive mode

For detailed usage of the parted command, you can refer to the provided link.