Tuesday, June 24, 2008

n Sync

a nice linux util a colleague had introduced me to - sync!

At times, my system just refuses to work for many reasons and the only option left is a hard reboot. Before touching that tiny button, just run `sync` as root and at least my filesystem remains clean - it flushes all in core buffers to disk and also updates the superblock.

Not sure if it also works with fuse ie. things like ntfs-3g; but I suppose it does, because I never had a unclean ntfs partition after I started doing sync.

2 comments: