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

Daniel Urstöger
09-12-2010 23:28

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! 

Average rating: 0 (0 Votes)

You cannot comment on this entry