tldr/pages/linux/partx.md
bl-ue 8ebd171d6f
*: fix typos reported by Hunspell (#5848)
Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com>
Co-authored-by: Seth Falco <seth@falco.fun>
Co-authored-by: Patrice Denis <patricedenis@users.noreply.github.com>
2021-05-20 16:13:41 -04:00

527 B

partx

Parse a partition table and tell the kernel about it. More information: https://man7.org/linux/man-pages/man8/partx.8.html.

  • List the partitions on a block device or disk image:

sudo partx --list {{path/to/device_or_disk_image}}

  • Add all the partitions 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}}