Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 11-18-2012, 11:28 AM   #1
Registered: Apr 2011
Distribution: slackware64-current
Posts: 313

Rep: Reputation: 16
tune2fs passing arguments to e2fsck?

How do I get tune2fs to pass certain arguments to e2fsck? Basically, I want e2fsck to use the directory sorting argument (-D) whenever tune2fs triggers fs checks at boot. Or would I have to create an e2fsck.conf file in /etc/?

Old 11-19-2012, 07:25 PM   #2
Registered: Nov 2003
Posts: 330

Rep: Reputation: Disabled
Tune2fs will not help. It does not get involved in running the disk check at boot. (tune2fs just sets some parameters in the volume for use by other programs.)

I do not think you can do what you want. e2fsck.conf seems to have no option to control the directory optimization. It has to be specified in the e2fsck command line, which means you would have to do it manually.
Old 11-19-2012, 08:23 PM   #3
Senior Member
Registered: Aug 2009
Distribution: CentOS
Posts: 2,093

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
You would have to find the script that invokes the boot-time fsck (perhaps /etc/rc.d/rc.sysinit, but YMMV) and modify that to add the "-D" option.
Old 11-19-2012, 09:05 PM   #4
Registered: Nov 2003
Posts: 330

Rep: Reputation: Disabled
There is no such script. The check happens if the mount command (mount -a in rc.M) finds the filesystem needs checking.


e2fsck, fsck, tune2fs

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
[SOLVED] Passing input arguments by reference in C. stf92 Programming 4 08-19-2011 08:24 PM
passing arguments to system command nathan Programming 1 12-17-2009 03:46 AM
Help with Spawning a process - passing arguments Kenhokie Programming 1 04-03-2009 01:51 PM
bash, passing arguments Four Linux - Newbie 3 02-06-2006 08:24 AM
Handline passing arguments in C AMMullan Programming 9 03-22-2004 01:37 AM

All times are GMT -5. The time now is 08:05 AM.

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