Forrest logo
tool overview
On this page you find all important commands for the CLI tool parted. If the command you are looking for is missing please ask our AI.

parted

Parted is a command-line tool for partitioning hard disks. It is used to create, delete, resize, and manipulate disk partitions on Linux systems. The primary purpose of Parted is to manage disk partitioning tasks. It supports most file systems, including ext2, ext3, ext4, FAT, NTFS, and more.

Parted provides a simple and efficient way to divide the disk space into multiple sections, facilitating the installation of different operating systems or organizing files and directories separately. It allows users to create primary, extended, or logical partitions based on their requirements.

The tool enables disk partition resizing without the need to lose data by leveraging its ability to move file systems and resize them while preserving data integrity. This makes it convenient for resizing partitions after system installations or when additional disk space is needed.

Parted has a user-friendly interface that allows users to view, edit, and manage disk partitions easily through the command line. It provides various commands and options to perform specific partitioning operations, such as mklabel, mkpart, rm, resize, and more.

Being a part of the GNU project, Parted is available as free and open-source software, allowing anyone to use, modify, and distribute it. It is widely supported across different Linux distributions and is often included in rescue or system maintenance tools due to its versatility and reliability.

List of commands for parted:

  • parted:tldr:2562a parted: List partitions on all block devices.
    $ sudo parted --list
    try on your machine
    explain this command
  • parted:tldr:40b46 parted: Create a new partition table of the specified label-type.
    $ sudo parted --script ${-dev-sdX} mklabel ${select}
    try on your machine
    explain this command
  • parted:tldr:e8e8e parted: Start interactive mode with the specified disk selected.
    $ sudo parted ${-dev-sdX}
    try on your machine
    explain this command
tool overview