1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-28 11:39:47 +01:00
tldr/pages/linux/partx.md
2024-06-18 22:03:31 +05:30

501 B

partx

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

  • 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}}