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

My PC restart about 6 to 7 times a days because of electricity fluctuate.

So I want to ask: do I have to run fsck/tune2fs tools to check my file system at every restart or do you recommend something else?

share|improve this question
up vote 5 down vote accepted

To check the filesystem whenever it is mounted:

sudo tune2fs -c 1 /dev/<device>

The system automatically checks the filesystem whenever it is marked dirty, however in case of power failures or similar events the filesystem could get corrupted without being marked dirty. So yes, checking the filesystem at every reboot is a good thing to do in your case (actually, the best thing to do would be to fix the electricity problem, but I suppose you are already aware of that :-))

share|improve this answer
yes i m aware , in my country light goes about 8 hours a day , its not with me its all over country. – One Zero Feb 4 '12 at 14:34
thanks a lot ..... – One Zero Feb 4 '12 at 14:34

If you can't control the power fluctuations to your home/office, you can at least control whether your computer is affected by plugging it into, basically, a big battery - > It can either automatically (gracefully) shut down your computer or give you a few minutes to manually shut it down. Maybe you just need a few minutes between fluctuations and this would even allow you to continue working without interruption? Good luck.

share|improve this answer
prudent though this may be, it doesn't address the posted question. – weberc2 Jun 11 '12 at 18: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.