Hidden Linux : What the fsck?
Linux's file system check utility fsck is little recognised and largely unloved, no doubt because it seems to know whenever you're in a hurry to boot your machine. Then - and why is it only then? - it starts doing what it was designed for: checking the consistency of the filing systems on your hard drives and making any necessary repairs.
Since Ubuntu 9.04 users have at least had the option of hitting the Esc key to cancel the process, (users of earlier versions might like to consider Bonager), but what's actually going on and why does the checking seem so intermittent?
All file systems accumulate errors over time, often the result of application crashes, improper shutdown or bugs. Checking and recovery tools should be run periodically and fsck simply automates the process by setting a counter and checking off how many times each filing system has been booted. (It has to be done at boot as fsck can't be run over a mounted partition.) And that apparent randomness actually isn't. fsck typically sets the default boot count at 30 meaning that with daily boots your file systems will be checked once a month.
Recent comments
7 hours 6 min ago
8 hours 26 min ago
9 hours 2 min ago
12 hours 22 min ago
13 hours 30 min ago
8 hours 18 min ago
18 hours 33 min ago
17 hours 39 min ago
19 hours 13 min ago
2 days 3 hours ago