Parse a partition table and tell the kernel about it. More information: https://man7.org/linux/man-pages/man8/partx.8.html.
sudo partx --list {{path/to/device_or_disk_image}}
sudo partx --add --verbose {{path/to/device_or_disk_image}}
sudo partx --delete {{path/to/device_or_disk_image}}