2

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?

2 Answers 2

4

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 :-))

1
  • 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, 2012 at 14:34
1

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.

1
  • 1
    prudent though this may be, it doesn't address the posted question.
    – weberc2
    Jun 11, 2012 at 18:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .