1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-04 14:55:56 +02:00

parted: refresh page, parted-interactive: add page (#15432)

This commit is contained in:
Managor 2025-01-05 20:05:32 +02:00 committed by GitHub
parent 6130aa1c19
commit 8a87d07d8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 39 additions and 26 deletions

View file

@ -0,0 +1,29 @@
# parted
> A partition manipulation program.
> See also: `partprobe`.
> More information: <https://www.gnu.org/software/parted/parted.html>.
- 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}}`

View file

@ -1,37 +1,21 @@
# parted
> A partition manipulation program.
> See also: `partprobe`.
> See also: `parted-interactive`, `partprobe`.
> More information: <https://www.gnu.org/software/parted/parted.html>.
- 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}}`

View file

@ -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