Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've used libeatmydata to quickly perform apt-get update. Now I want to run standard fsync to make sure that everything is written to disk. How can I do it? Preferably a small script / binary, and for bonus points fsync for real even when libeatmydata is pre-loaded

share|improve this question
up vote 6 down vote accepted

Calling sync should do the trick.

share|improve this answer

You can also press Alt+SysRq+S.

share|improve this answer
Where would that magic key be on my MacBook "smalish" keyboard? – Dima Dec 6 '10 at 0:35
Sorry, I've no idea. But this would be a great question to ask here, if only for future reference. – Stefano Palazzo Dec 6 '10 at 2:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.