parted-interactive
Manage disk partitions interactively
TLDR
Start interactive mode with the specified disk selected
Show partition information in interactive mode
Select a disk in interactive mode
Create a 16 GB partition with the specified filesystem in interactive mode
Resize a partition in interactive mode
Remove a partition in interactive mode
Display help
SYNOPSIS
parted [options] [device]
PARAMETERS
device
The block device (e.g., /dev/sda) to be partitioned. If omitted, parted will try to determine the device to use.
-a
Set the alignment type. Valid values are minimal, optimal, and cylinder.
-h
Display help message.
-i
Start parted in interactive mode.
-l
List partition layouts on all block devices.
-m
Display machine readable output.
-s
Execute parted non-interactively.
-v
Display version information.
DESCRIPTION
parted is a powerful command-line utility for creating, resizing, deleting, and managing disk partitions on Linux systems. The parted-interactive command starts parted in interactive mode, providing a command-line interface where you can enter commands to manipulate disk partitions. It supports various partition table types including GPT, MBR and others. parted allows the user to specify partition sizes, types, and file systems to format to that partition. It can be used on hard drives, SSDs, and other storage devices. Interactive mode is especially useful for complex partitioning tasks, allowing you to review changes before applying them. parted is a crucial tool for managing disk space efficiently.
Warning: Incorrect use can lead to data loss. Be sure to know what your commands will do before running them. Using an interactive session can avoid running destructive commands without thinking about it.
CAVEATS
Data loss can occur if parted is used incorrectly. Always back up important data before using parted. Changes are not written to disk until the 'print' or 'quit' command is entered in interactive mode.
INTERACTIVE COMMANDS
In interactive mode, parted provides several commands like 'mklabel' (to create a new disklabel), 'mkpart' (to create a new partition), 'rm' (to delete a partition), 'resize' (to resize a partition), 'print' (to display the partition table), 'quit' (to exit parted) and others. Type help to view a full list of available commands.
PARTITION TYPES
parted supports several partition types, including primary, extended, and logical partitions for MBR disks, and GPT partitions for disks with the GPT partitioning scheme. Partition types are defined using a filesystem-like syntax, for example 'ext4'.
HISTORY
parted was first released in 1997 as part of the GNU project. It was intended to provide a free and open-source alternative to proprietary partitioning tools. Over the years, parted has been improved and updated to support new partition table types and features. It is now a standard tool on most Linux distributions.