CyberTek - the future at the present!
Google

Maximum number of mount before check ext2/ext3

Posted by: admin (Jan 11)

If we want to change the maximum number of mount between a check and the other (mount count), we can the-c option in combination numero_max_di_mount program tune2fs (position to make things interesting), as:

# Tune2fs-c 90 / dev/sda5

In this way, if our sda5 partition contains the root "/" or "/ home", the system will force a check at least every 90 bootsdel system.

Alternatively, we can set the maximum time between two verifications (maximum mount count). The-i intervallo_max_tra_verifiche is what makes the job. If only as a parameter, using a number that is assumed as N days, if followed by the suffix w is understood as a number of weeks, if sseguito suffix m is understood as a number of months, in some examples:

# Tune2fs-i 10 / dev/sda1 'every 10 days'

# Tune2fs-i 2w / dev/sda1 'every 2 weeks'

# Tune2fs-i 2m / dev/sda1 'every 2 months'

We can naturally combine the two options, example:

# Tune2fs-c 60-i 1m / dev/sda5 'every 60 boot the system or after 1 months'

To see the current mount count and maximum count set to mount a partition, you use the-l, as:

# Tune2fs-l / dev/hda1 | grep-i "mount count"

Published in: linux, tips

Add A Comment

Powered by CyberTek - Remote Assistance