Super User is a question and answer site for computer enthusiasts and power users. 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

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

share|improve this question

migrated from Nov 13 '10 at 14:32

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

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

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

tune2fs -c 5 /dev/sdawhatever
share|improve this answer

You must log in to answer this question.

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