Reloading a partition table
Published:
Sometimes you want to repartition a disk, but do not want to reboot. In general, Linux holds on to the partition table it read when it has first seen the disk. This can result in tools like lsblk(8) displaying bogus results, even though the tools that always read the partition table straight from the disk itself eg, cgdisk(8) will show the correct information.
Here is how you can give Linux a gentle nudge and make it re-read the partition table from a disk:
blockdev --rereadpt /dev/device