Hacker News new | ask | show | jobs
by yyx 2685 days ago
https://utcc.utoronto.ca/~cks/space/blog/unix/TheLegendOfSyn...

  people were told 'do several sync commands, typing each by hand'

  But this mutated to just 'sync three times', so of course people started writing 'sync; sync; sync'
1 comments

I still type sync (just once) before I reboot. Just a habit.
The last thing I do before I leave my work desktop for the day is

    ./eod.sh && sync && sync
20+ year old habits die hard.
The only machine I ever developed on that needed a sync before reboot was an ancient SPARC workstation.

I forgot to sync almost every time, but it would always boot after a fsck.

I always get some kind of error message from dmraid about having been unable to stop the RAID array on shutdown/reboot. I thus manually do a sync(1) in hopes that the data survives. Hasn't failed me thus far, at least.