From f2941ea685404cbe6a088304a64be50498f57b13 Mon Sep 17 00:00:00 2001 From: bl-ue <54780737+bl-ue@users.noreply.github.com> Date: Fri, 19 Mar 2021 10:10:13 -0400 Subject: [PATCH] parted: refresh (#5470) --- pages/linux/parted.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pages/linux/parted.md b/pages/linux/parted.md index bf63cd2ded..8a761a684c 100644 --- a/pages/linux/parted.md +++ b/pages/linux/parted.md @@ -7,15 +7,15 @@ `sudo parted --list` -- Start to manipulate disk partition: +- Start interactive mode with the specified disk selected: `sudo parted {{/dev/sdX}}` -- Create a new partition table of label-type directly, label-type can be gpt, msdos etc: +- Create a new partition table of the specified label-type: -`sudo parted --script {{/dev/sdX}} mklabel {{gpt}}` +`sudo parted --script {{/dev/sdX}} mklabel {{aix|amiga|bsd|dvh|gpt|loop|mac|msdos|pc98|sun}}` -- Show disk partition information in interactive mode: +- Show partition information in interactive mode: `print` @@ -23,14 +23,14 @@ `select {{/dev/sdX}}` -- Interactively create a 16GB partition with a given filesystem: +- Create a 16GB partition with the specified filesystem in interactive mode: -`mkpart {{primary|logical|extended}} {{filesystem}} {{0%}} {{16G}}` +`mkpart {{primary|logical|extended}} {{btrfs|ext2|ext3|ext4|fat16|fat32|hfs|hfs+|linux-swap|ntfs|reiserfs|udf|xfs}} {{0%}} {{16G}}` -- Resize partition size: +- Resize a partition in interactive mode: `resizepart {{/dev/sdXN}} {{end_position_of_partition}}` -- Remove partition: +- Remove a partition in interactive mode: `rm {{/dev/sdXN}}`