diff --git a/pages/linux/parted-interactive.md b/pages/linux/parted-interactive.md new file mode 100644 index 0000000000..47b83ae237 --- /dev/null +++ b/pages/linux/parted-interactive.md @@ -0,0 +1,29 @@ +# parted + +> A partition manipulation program. +> See also: `partprobe`. +> More information: . + +- Start interactive mode with the specified disk selected: + +`sudo parted {{/dev/sdX}}` + +- Show partition information in interactive mode: + +`print` + +- Select a disk in interactive mode: + +`select {{/dev/sdX}}` + +- Create a 16 GB partition with the specified filesystem in interactive mode: + +`mkpart {{primary|logical|extended}} {{btrfs|ext2|ext3|ext4|fat16|fat32|hfs|hfs+|linux-swap|ntfs|reiserfs|udf|xfs}} {{0%}} {{16G}}` + +- Resize a partition in interactive mode: + +`resizepart {{/dev/sdXN}} {{end_position_of_partition}}` + +- Remove a partition in interactive mode: + +`rm {{/dev/sdXN}}` diff --git a/pages/linux/parted.md b/pages/linux/parted.md index d666b543df..2e9835a028 100644 --- a/pages/linux/parted.md +++ b/pages/linux/parted.md @@ -1,37 +1,21 @@ # parted > A partition manipulation program. -> See also: `partprobe`. +> See also: `parted-interactive`, `partprobe`. > More information: . - List partitions on all block devices: `sudo parted --list` +- Create a new partition table of the specified label-type: + +`sudo parted {{/dev/sdX}} --script mklabel {{aix|amiga|bsd|dvh|gpt|loop|mac|msdos|pc98|sun}}` + +- Create a new `gpt` partition table with a 500MiB boot partition and give the rest for the system partition: + +`sudo parted {{/dev/sdX}} --script mklabel gpt mkpart primary 0% 500MiB mkpart primary 500MiB 100%` + - Start interactive mode with the specified disk selected: `sudo parted {{/dev/sdX}}` - -- Create a new partition table of the specified label-type: - -`sudo parted --script {{/dev/sdX}} mklabel {{aix|amiga|bsd|dvh|gpt|loop|mac|msdos|pc98|sun}}` - -- Show partition information in interactive mode: - -`print` - -- Select a disk in interactive mode: - -`select {{/dev/sdX}}` - -- Create a 16 GB partition with the specified filesystem in interactive mode: - -`mkpart {{primary|logical|extended}} {{btrfs|ext2|ext3|ext4|fat16|fat32|hfs|hfs+|linux-swap|ntfs|reiserfs|udf|xfs}} {{0%}} {{16G}}` - -- Resize a partition in interactive mode: - -`resizepart {{/dev/sdXN}} {{end_position_of_partition}}` - -- Remove a partition in interactive mode: - -`rm {{/dev/sdXN}}` diff --git a/scripts/wrong-filename.sh b/scripts/wrong-filename.sh index 31a96f5b41..800a8d157b 100755 --- a/scripts/wrong-filename.sh +++ b/scripts/wrong-filename.sh @@ -10,7 +10,7 @@ OUTPUT_FILE="inconsistent-filenames.txt" rm -f "$OUTPUT_FILE" touch "$OUTPUT_FILE" -IGNORE_LIST=("exclamation mark" "caret" "dollar sign" "tilde" "percent sign" "curly brace" "history expansion" "qm move disk" "umount" "rename" "pacman d" "pacman f" "pacman q" "pacman r" "pacman s" "pacman t" "pacman u") +IGNORE_LIST=("exclamation mark" "caret" "dollar sign" "tilde" "percent sign" "curly brace" "history expansion" "qm move disk" "umount" "rename" "pacman d" "pacman f" "pacman q" "pacman r" "pacman s" "pacman t" "pacman u" "parted") set -e