diff --git a/pages/linux/partx.md b/pages/linux/partx.md new file mode 100644 index 0000000000..1181f009bc --- /dev/null +++ b/pages/linux/partx.md @@ -0,0 +1,16 @@ +# partx + +> Parse a partition table and tell the kernel about it. +> More information: . + +- List the partitions on a block device or disk image: + +`sudo partx --list {{path/to/device_or_disk_image}}` + +- Add all the paritions found in a given block device to the kernel: + +`sudo partx --add --verbose {{path/to/device_or_disk_image}}` + +- Delete all the partitions found from the kernel (does not alter partitions on disk): + +`sudo partx --delete {{path/to/device_or_disk_image}}`