mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
22 lines
629 B
Plaintext
22 lines
629 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# partx
|
|
|
|
> Parse a partition table and tell the kernel about it.
|
|
> More information: <https://manned.org/partx>.
|
|
|
|
- List the partitions on a block device or disk image:
|
|
|
|
`sudo partx {{[-l|--list]}} {{path/to/device_or_disk_image}}`
|
|
|
|
- Add all the partitions found in a given block device to the kernel:
|
|
|
|
`sudo partx {{[-a|--add]}} {{[-v|--verbose]}} {{path/to/device_or_disk_image}}`
|
|
|
|
- Delete all the partitions found from the kernel (does not alter partitions on disk):
|
|
|
|
`sudo partx {{[-d|--delete]}} {{path/to/device_or_disk_image}}`
|