makadeade
home about archive (feed)

Reloading a partition table

Published: November 26th 2026 (week 48 of 2026) under linux

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:

Force rereading of a partition table
blockdev --rereadpt /dev/device

Tags

Earlier under filesystem: BLAKE3 vs BLAKE2 for btrfs

Earlier under linux: Multiline editing with sed

Earlier under unix: Multiline editing with sed

Next: Black Hearse Cadillac (Songs about the Devil n°1)

Previous: "Paranoia Agent and Japan’s Role in the War: Responsibility vs Victim-hood"