2025-03-14 21:59:59 -06:00
|
|
|
# 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:
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`sudo partx {{[-l|--list]}} {{path/to/device_or_disk_image}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Add all the partitions found in a given block device to the kernel:
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`sudo partx {{[-a|--add]}} {{[-v|--verbose]}} {{path/to/device_or_disk_image}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Delete all the partitions found from the kernel (does not alter partitions on disk):
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`sudo partx {{[-d|--delete]}} {{path/to/device_or_disk_image}}`
|