LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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: slackware64-current
Posts: 506

Rep: Reputation: 47
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: 526

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: Rocky Linux
Posts: 4,781

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
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: 526

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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:57 AM.

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