LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   schedule 'e2fsck' to run on startup, possible? (https://www.linuxquestions.org/questions/linux-general-1/schedule-e2fsck-to-run-on-startup-possible-147581/)

BxBoy 02-18-2004 09:42 AM

schedule 'e2fsck' to run on startup, possible?
 
Is it possible to schedule e2fsck to run on startup? since when i try to run it, it says it's dangerous to run it on an actively mounted partition.

michaelk 02-18-2004 12:15 PM

Yes and your system should be already configured.

Look at the last value in the /etc/fstab file entry.
An example
/dev/hda / ext3 defaults 1 1

Look at the last digit. Anything >0 will perform a check according to how the filesystem was setup. The value is based on priority with 1 being the highest. See man pages for fstab for more help.

You can change how often using the tune2fs command.

http://www.die.net/doc/linux/man/man8/tune2fs.8.html


All times are GMT -5. The time now is 08:12 PM.