partx Command Examples

Parse a partition table and tell the kernel about it. More information: https://manned.org/partx.

sudo partx {{[-l|--list]}} {{path/to/device_or_disk_image}}

sudo partx {{[-a|--add]}} {{[-v|--verbose]}} {{path/to/device_or_disk_image}}

sudo partx {{[-d|--delete]}} {{path/to/device_or_disk_image}}