LX0-103 · Question #125
Which utility would be used to change how often a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem?
The correct answer is C. tune2fs. tune2fs is the administrative tool for adjusting ext2/ext3/ext4 filesystem parameters in place, without reformatting or destroying data.
Question
Which utility would be used to change how often a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem?
Options
- Amod2fs
- Bfsck
- Ctune2fs
- Dmke2fs
- Efixe2fs
How the community answered
(24 responses)- B4% (1)
- C88% (21)
- E8% (2)
Why each option
tune2fs is the administrative tool for adjusting ext2/ext3/ext4 filesystem parameters in place, without reformatting or destroying data.
mod2fs does not exist as a standard Linux utility.
fsck is used to check and repair a filesystem, not to configure how often checks are scheduled.
tune2fs allows an administrator to change tunable parameters on an existing ext2 filesystem - including the maximum mount count and time interval between forced checks - without touching any stored data. It directly modifies the filesystem superblock metadata, so all user data remains intact. This makes it the correct tool for adjusting fsck frequency settings like -c (max mount count) or -i (interval).
mke2fs creates a new ext2 filesystem, which would destroy all existing data on the partition.
fixe2fs does not exist as a standard Linux utility.
Concept tested: ext2 filesystem parameter tuning with tune2fs
Source: https://man7.org/linux/man-pages/man8/tune2fs.8.html
Topics
Community Discussion
No community discussion yet for this question.