LX0-103 · Question #174
What command can be used on an existing (formatted) partition, to configure the interval between disk checks when mounting partitions?
The correct answer is B. tune2fs. The tune2fs command modifies tunable parameters on existing ext2/ext3/ext4 filesystems, including the maximum interval between automatic fsck checks.
Question
What command can be used on an existing (formatted) partition, to configure the interval between disk checks when mounting partitions?
Options
- Ae2fsckconfig
- Btune2fs
- Cmke2fs
- Dconfig2fs
- Ee2fsck
How the community answered
(41 responses)- A2% (1)
- B90% (37)
- C5% (2)
- E2% (1)
Why each option
The tune2fs command modifies tunable parameters on existing ext2/ext3/ext4 filesystems, including the maximum interval between automatic fsck checks.
e2fsckconfig is not a valid or standard Linux filesystem utility command.
tune2fs adjusts filesystem parameters stored in the superblock of an existing ext2/ext3/ext4 partition without reformatting it. The -i option sets the maximum time interval between forced filesystem checks and -c sets the maximum number of mounts before a check is triggered. These settings are applied directly to the already-formatted filesystem in place.
mke2fs creates (formats) a new ext filesystem from scratch and cannot be used to reconfigure an already-existing partition.
config2fs is not a real Linux command and does not exist in standard distributions.
e2fsck is the ext filesystem checker and repair tool used to scan and fix filesystem errors, not to configure check intervals.
Concept tested: Configuring ext filesystem check intervals with tune2fs
Source: https://linux.die.net/man/8/tune2fs
Topics
Community Discussion
No community discussion yet for this question.