Is it possible to unmount a partition table so I only see sda and not sda1 and sda2 in /dev?
I know a partition table is not mounted. But I did not find a better name for this.
I often use dd to overwrite a hard disk or an usb pen. But they often have some partitions on it. And after overwriting I can still see the old (no longer existing) partition table using lsblk.
I know it's possible to reread the partition table using partprobe.
But I wonder if it is possible to unmount the partition table before overwriting the usb pen. Because I don't want a programm to access a corrupt partition while overwriting with dd.