LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-18-2012, 11:28 AM   #1
Geremia
Member
 
Registered: Apr 2011
Distribution: Slackware 14.1
Posts: 204

Rep: Reputation: 5
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/?

Thanks
 
Old 11-19-2012, 07:25 PM   #2
ljb643
Member
 
Registered: Nov 2003
Posts: 264

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
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 1,383

Rep: Reputation: 587Reputation: 587Reputation: 587Reputation: 587Reputation: 587Reputation: 587
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
ljb643
Member
 
Registered: Nov 2003
Posts: 264

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.
 
  


Reply

Tags
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 03:23 PM.

Main Menu
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