Setiap volume extfs di GNU/Linux, sejak awal pembuatannya (format) telah di schedule agar di check setiap 25 kali mount dengan program FSCK (File System Check).
Itulah sebabnya mengapa ketika anda telah booting (artinya anda melakukan mount juga) yang ke 26, sistem GNU/Linux anda akan melakukan file system check otomatis saat boot.
Biasanya, file system check ini berlangsung cukup lama dan yah, menghentikan proses boot sampai proses pengecekan disk selesai. Bayangkan jika anda memiliki lebih dari satu partisi dan waktu fsck adalah 3-5 menit-an.
Saya dan anda pasti tahu, kebiasaan fsck otomatis ini bisa di overide (count reset!) menggunakan pemeriksaan manual atau tune2fs.
Yang akan saya bahas adalah bagaimana memanipulasi kebiasaan ini agar:
- Penghitungan automatic fsck dimulai saat mount ke-30 atau ke-45
- Autofsck tidak dimulai saat booting tetapi di mulai saat reboot/shutdown
Syukurlah, di GNU/Linux sangat banyak program FREE (bebas!) yang tersedia, salah satunya adalah autofsck. Menurut Ubuntu wiki, fsck adalah:
“It’s really quite simple, every time you shut down, AutoFsck finds information on your disks. Every linux partition has two important number associated with it, one is the number of times it has been mounted, the other is the number of times it is allowed to before being checked. AutoFsck looks at these, and if your drives are due for checking it asks if you want to check them. If you say yes, your drives are checked before your computer shuts down. If you say no, AutoFsck will ensure that the check will not run next time your computer boots. You will then be prompted again the next time you shut down.”
Read the rest of this entry »