mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-07 12:13:18 +02:00
parted, parted-interactive: refresh pages (#16589)
This commit is contained in:
parent
696e876bac
commit
13cffc606b
2 changed files with 12 additions and 4 deletions
|
@ -16,7 +16,11 @@
|
||||||
|
|
||||||
`select {{/dev/sdX}}`
|
`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}}`
|
`mkpart {{primary|logical|extended}} {{btrfs|ext2|ext3|ext4|fat16|fat32|hfs|hfs+|linux-swap|ntfs|reiserfs|udf|xfs}} {{0%}} {{16G}}`
|
||||||
|
|
||||||
|
|
|
@ -10,11 +10,15 @@
|
||||||
|
|
||||||
- Create a new partition table of the specified label-type:
|
- 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:
|
- Start interactive mode with the specified disk selected:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue