mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-23 06:51:34 +00:00
Update cheatsheets
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user