From 24e64160b95116459800bef1378a64b3a4b72c02 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 22 Jan 2021 22:59:31 +0000 Subject: [PATCH] partx: add page (#5158) * partx: add page * partx: remove trailing whitespace * partx: fix typo Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com> Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com> --- pages/linux/partx.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/linux/partx.md 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}}`