partx
Parse a partition table and tell the kernel about it. tldr-pages
On Linux
Linux
List the partitions on a block device or disk image
sudo partx --list path/to/device_or_disk_imageIdentifyAdd all the partitions found in a given block device to the kernel
sudo partx --add --verbose path/to/device_or_disk_imageIdentifyDelete all the partitions found from the kernel (does not alter partitions on disk)
sudo partx --delete path/to/device_or_disk_imageIdentify