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:

  1. you must run tis command before putting ur laptop in the backpack :D

    ReplyDelete
  2. exactly that very incident made me write this post !

    ReplyDelete