LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 03-27-2014, 09:53 PM   #1
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Testing/Unstable
Posts: 127

Rep: Reputation: 23
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?
 
Old 03-28-2014, 01:59 AM   #2
grail
Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 7,779

Rep: Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039
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
 
Old 03-28-2014, 11:57 AM   #3
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Testing/Unstable
Posts: 127

Original Poster
Rep: Reputation: 23
Thank you, I will take it from there

Thank you, I will take it from there
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
e2fsck auto runs on / upon startup after so many mounts acummings Slackware 8 04-04-2012 07:30 PM
[SOLVED] maximal mount count reached - how can I fix fstab to run e2fsck or run it manually? jg1 Linux - Newbie 4 08-06-2011 07:09 PM
e2fsck startup problem abattoir Mandriva 2 09-25-2005 10:00 AM
schedule 'e2fsck' to run on startup, possible? BxBoy Linux - General 1 02-18-2004 01:15 PM
run e2fsck when system is running? mikeshn Linux - General 1 10-14-2003 12:55 PM


All times are GMT -5. The time now is 01:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration