Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

2 Answers 2

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
add comment

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 - > http://en.wikipedia.org/wiki/Uninterruptible_power_supply 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
1  
prudent though this may be, it doesn't address the posted question. –  weberc2 Jun 11 '12 at 18:24
add comment

Your Answer

 
discard

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.