Make FreeBSD read the slice table and partition table again

Adam Vande More amvandemore at
Tue Feb 1 20:29:28 UTC 2011

On Tue, Feb 1, 2011 at 2:16 PM, Bahman Kahinpour <bahman.linux at>wrote:

> Hello
> When I destroy the partition table with the following command:
> # dd if=/dev/zero of=/dev/ad1 bs=1k count=10
> The entries /dev/ad1s1a, ... still exist in /dev. This means that the
> kernel has not found out that the slices and partitions do not exist
> anymore.

Um AFAIK, GEOM tastes the provider on closing so that command should have
updated the device entries.  And it works properly in VM here so I'm unsure
the problem you are having.

A "true > /dev/ad1" would also cause GEOM to retaste it.

Adam Vande More

More information about the freebsd-questions mailing list