Friday, April 26, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 1269  / 2 Years ago, tue, october 4, 2022, 3:52:59

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?


More From » filesystem

 Answers
2

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


[#40561] Thursday, October 6, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tisglitter

Total Points: 307
Total Questions: 103
Total Answers: 119

Location: Bosnia and Herzegovina
Member since Thu, Jun 24, 2021
3 Years ago
tisglitter questions
Sun, Jan 9, 22, 16:18, 2 Years ago
Wed, Jun 1, 22, 18:03, 2 Years ago
Fri, Dec 10, 21, 14:31, 2 Years ago
;