Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want the e2fsck check the filesystem on every 5th boot.

share|improve this question
    
Any file on the filesystem that is read by the tune2fs for this ? –  Onkar Mahajan Nov 13 '10 at 14:20
add comment

migrated from stackoverflow.com Nov 13 '10 at 14:32

This question came from our site for professional and enthusiast programmers.

1 Answer

The command you're looking for is tune2fs, specifically -c max-mount-counts:

tune2fs -c 5 /dev/sdawhatever
share|improve this answer
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.