You are not logged in.

#1 2012-08-06 02:40:01

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Any way to specify options for scheduled filesystem checks?

Today I ran e2fsck -fD on my netbook's ext4 partitions, and was surprised to see the machine's cumulative boot and login time drop by about ten seconds. Evidently the "rarely necessary" nature of the -D option doesn't mean it shouldn't be done once in a while.

So I'm wondering if there's a way to make e2fscks scheduled by tune2fs use -D. Is it possible to specify the parameters through tune2fs, or some other way? The man page doesn't say; nor does there appear to be anything on it for e2fsck.conf.

Last edited by Gullible Jones (2012-08-06 02:43:28)

Offline

#2 2012-08-06 04:38:00

matse
Member
Registered: 2011-04-27
Posts: 299

Re: Any way to specify options for scheduled filesystem checks?

This should be possible via the configuration file e2fsck.conf (/etc/e2fsck.conf) - it has an own man page. If you want to change options for your root system I guess you have to create such a config file in your initramfs.
An alternative would be to boot from a live cd.
Greetings
matse

Offline

#3 2012-08-06 06:47:20

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Any way to specify options for scheduled filesystem checks?

You'll need to edit your boot scripts, and include the switch.

Offline

Board footer

Powered by FluxBB