Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-27 00:18:38 +00:00
parent 5871f35fe8
commit 9fe6559a97
123 changed files with 660 additions and 357 deletions

View File

@@ -7,19 +7,19 @@ source: https://github.com/tldr-pages/tldr.git
> A partition manipulation program.
> See also: `parted-interactive`, `partprobe`.
> More information: <https://www.gnu.org/software/parted/parted.html>.
> More information: <https://www.gnu.org/software/parted/manual/html_node/Invoking-Parted.html>.
- List partitions on all block devices:
`sudo parted --list`
`sudo parted {{[-l|--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}}`
`sudo parted {{/dev/sdX}} {{[-s|--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%`
`sudo parted {{/dev/sdX}} {{[-s|--script]}} mklabel gpt mkpart primary 0% 500MiB mkpart primary 500MiB 100%`
- Start interactive mode with the specified disk selected: