mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-16 15:49:14 +00:00
Update cheatsheets
This commit is contained in:
@@ -15,11 +15,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user