LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to run e2fsck on startup with opition -D (https://www.linuxquestions.org/questions/linux-software-2/how-to-run-e2fsck-on-startup-with-opition-d-4175499735/)

kevinbenko 03-27-2014 08:53 PM

How to run e2fsck on startup with opition -D
 
On startup, I would like to start e2fsck with option -D (optimize directories in filesystem).

I know I used to do this until I got another computer. It is probably a configurable option, but I cannot find it.

Can anyone help me with this?

grail 03-28-2014 12:59 AM

Find the appropriate runlevel that calls this command and edit accordingly.

This will depend on your init system as to which files need to be changed:

SysV - /etc/rc.*
systemd - /usr/lib/systemd/system/*.service

kevinbenko 03-28-2014 10:57 AM

Thank you, I will take it from there
 
Thank you, I will take it from there


All times are GMT -5. The time now is 01:22 AM.