LinuxQuestions.org
Help answer threads with 0 replies.
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, 08:53 PM   #1
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 622

Rep: Reputation: 174Reputation: 174
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, 12:59 AM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,000

Rep: Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190
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, 10:57 AM   #3
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 622

Original Poster
Rep: Reputation: 174Reputation: 174
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 06: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 06:09 PM
e2fsck startup problem abattoir Mandriva 2 09-25-2005 09:00 AM
schedule 'e2fsck' to run on startup, possible? BxBoy Linux - General 1 02-18-2004 12:15 PM
run e2fsck when system is running? mikeshn Linux - General 1 10-14-2003 11:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:55 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
Open Source Consulting | Domain Registration