Filesystems often have a &#x27;dirty&#x27; flag which is cleared as the very last write when unmounting cleanly, to let the OS know whether the filesystem might need to be checked before mounting it next time.<p>Also, unmounting helps you to be confident that nothing&#x27;s started doing more IO since you ran sync.