1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-07 02:53:28 +02:00

parted, parted-interactive: refresh pages (#16589)

This commit is contained in:
Managor 2025-05-25 09:56:39 +03:00 committed by GitHub
parent 696e876bac
commit 13cffc606b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 4 deletions

View file

@ -16,7 +16,11 @@
`select {{/dev/sdX}}`
- Create a 16 GB partition with the specified filesystem in interactive mode:
- Create a 16 GB partition with the specified filesystem in interactive mode (`GPT` partition table):
`mkpart {{partition_name}} {{btrfs|ext2|ext3|ext4|fat16|fat32|hfs|hfs+|linux-swap|ntfs|reiserfs|udf|xfs}} {{0%}} {{16G}}`
- Create a 16 GB partition with the specified filesystem in interactive mode (`MBR` partition table):
`mkpart {{primary|logical|extended}} {{btrfs|ext2|ext3|ext4|fat16|fat32|hfs|hfs+|linux-swap|ntfs|reiserfs|udf|xfs}} {{0%}} {{16G}}`

View file

@ -10,11 +10,15 @@
- Create a new partition table of the specified label-type:
`sudo parted {{/dev/sdX}} {{[-s|--script]}} mklabel {{aix|amiga|bsd|dvh|gpt|loop|mac|msdos|pc98|sun}}`
`sudo parted {{/dev/sdX}} 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:
- Create a new `gpt` partition table with a 500MiB boot partition and give the rest for the system partition (`--script` skips user intervention prompts):
`sudo parted {{/dev/sdX}} {{[-s|--script]}} mklabel gpt mkpart primary 0% 500MiB mkpart primary 500MiB 100%`
`sudo parted {{/dev/sdX}} {{[-s|--script]}} mklabel gpt mkpart "{{boot_partition_name}}" 0% 500MiB mkpart "{{system_partition_name}}" 500MiB 100%`
- Set a partition to have its boot flag turned on:
`sudo parted {{/dev/sdX}} set {{1}} boot on`
- Start interactive mode with the specified disk selected: