parted
DisksAdvancedReference onlyPartition tool with GPT and large disk support
Name: parted = partition editor
This command is outside what the site lets you practise (mostly distribution-specific or rarely used tools). This page describes how to use it; try it on your own Linux system.
Description
parted is another partitioning tool with GPT and >2 TB disk support, usable interactively or in one-line commands. Note that many parted operations take effect immediately; there is no final write step.
Syntax
parted [OPTION]... [DEVICE [COMMAND]]Common options
| Show the partition table | |
| mklabel gpt | Create a GPT label |
| mkpart | Create a partition |
| rm | Delete a partition, e.g. rm 2 |
| resizepart | Resize a partition |
| -l / --list | List partitions on every disk |
| -s / --script | Never ask (for scripts) |
Examples
$ sudo parted /dev/sdb print
Show partitions
Explain