Options (4)
-l, --listbooleanList the partitions on a block device or disk image
Example:
sudo partx {{[-l|--list]}} {{path/to/device_or_disk_image}}-a, --addbooleanAdd all the partitions found in a given block device to the kernel
Example:
sudo partx {{[-a|--add]}} {{[-v|--verbose]}} {{path/to/device_or_disk_image}}-v, --verbosebooleanAdd all the partitions found in a given block device to the kernel
Example:
sudo partx {{[-a|--add]}} {{[-v|--verbose]}} {{path/to/device_or_disk_image}}-d, --deletebooleanDelete all the partitions found from the kernel (does not alter partitions on disk)
Example:
sudo partx {{[-d|--delete]}} {{path/to/device_or_disk_image}}Examples (3)
List the partitions on a block device or disk image
Add all the partitions found in a given block device to the kernel
made by @shridhargupta | data from tldr-pages