Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Nov 2005 16:34:04 -0500 (EST)
From:      user <user@dhp.com>
To:        freebsd-questions@freebsd.org
Subject:   how do I tell FreeBSD to sync, for real ?
Message-ID:  <Pine.LNX.4.21.0511081630280.8180-100000@shell.dhp.com>

next in thread | raw e-mail | index | archive | help

Sometimes you delete a large batch of files, or you do some other serious
FS operations and the output of `df` does not tell you immediately of the
new disk space, etc.

If you run something like:  sync

Or even:  sync ; sync

it still doesn't show up.  You either have to wait for a while, or you
have to get silly with something like:

sync ; sync ; sync ; sync ; sync ; sync ; sync

(or unmount and remount the FS)

-----

So my question is, well first off, why does this happen this way ?  But
mostly what I want to know is, is there a more graceful way to tell
FreeBSD "sync for real this time, not just for joke only ?"

Basically, is there a nicer way to get what I want than:

sync ; sync ; sync ; sync ; sync ; sync ; sync

thx.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.21.0511081630280.8180-100000>