LX0-103 · Question #180
Which of the following commands will allow an administrator to adjust the number of mounts after which an existing filesystem will be checked by e2fsck?
The correct answer is D. tune2fs. The tune2fs command modifies ext2/ext3/ext4 filesystem parameters, including the maximum mount count that triggers an automatic e2fsck check.
Question
Which of the following commands will allow an administrator to adjust the number of mounts after which an existing filesystem will be checked by e2fsck?
Options
- Adebugfs
- Bdumpe2fs
- Cmode2fs
- Dtune2fs
- Emke2fs
How the community answered
(27 responses)- A4% (1)
- B4% (1)
- D93% (25)
Why each option
The tune2fs command modifies ext2/ext3/ext4 filesystem parameters, including the maximum mount count that triggers an automatic e2fsck check.
debugfs is an interactive filesystem debugger used for low-level inspection and repair, not for adjusting mount-count thresholds.
dumpe2fs displays filesystem superblock and block group information in read-only mode; it cannot modify filesystem parameters.
mode2fs is not a valid Linux command; no standard utility by that name exists for ext filesystem management.
tune2fs with the '-c' option sets the maximum number of mounts before the filesystem is automatically checked by e2fsck on the next boot. For example, 'tune2fs -c 20 /dev/sda1' causes a check after every 20 mounts. This is a post-creation tuning operation applied to an existing ext filesystem.
mke2fs creates a new ext filesystem on a device and cannot adjust parameters on an already existing filesystem.
Concept tested: Adjusting ext filesystem mount-count check interval with tune2fs
Source: https://man7.org/linux/man-pages/man8/tune2fs.8.html
Topics
Community Discussion
No community discussion yet for this question.