How do I refresh the partition table in (Debian) Linux?

Well, there are a few ways to do that: of course rebooting the system is the most obvious. Anyhow, without rebooting you just need to run the partprobe program, which is part of the parted package, so for Debian here you go:

aptitude install parted
partprobe

This also works:

blockdev --rereadpt /dev/sda

 
enjoy! 

You cannot comment on this entry