LX0-103 · Question #98
Which of the following commands changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting?
The correct answer is C. tune2fs -i 200 /dev/sda1. The tune2fs -i flag sets the maximum time interval between forced filesystem checks, measured in days by default.
Question
Which of the following commands changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting?
Options
- Atune2fs -d 200 /dev/sda1
- Btune2fs -c 200 /dev/sda1
- Ctune2fs -i 200 /dev/sda1
- Dtune2fs -n 200 /dev/sda1
- Etune2fs --days 200 /dev/sda1
How the community answered
(27 responses)- A4% (1)
- B4% (1)
- C81% (22)
- D11% (3)
Why each option
The tune2fs -i flag sets the maximum time interval between forced filesystem checks, measured in days by default.
tune2fs does not have a -d flag that controls filesystem check intervals; this is not a valid option for this purpose.
The -c flag sets the maximum number of mounts allowed between filesystem checks, which is a count-based trigger, not a days-based interval.
The -i option in tune2fs sets the maximum time between two filesystem checks (the interval). When a plain integer is provided, such as 200, the unit defaults to days, so tune2fs -i 200 /dev/sda1 configures the filesystem to require a full check after 200 days have elapsed since the last check. This is the dedicated flag for time-based check intervals, separate from the mount-count-based check flag.
tune2fs does not have a -n flag for setting day-based check intervals.
--days is not a valid tune2fs long option; the correct flag for the time interval is -i.
Concept tested: tune2fs -i option for filesystem check interval
Source: https://man7.org/linux/man-pages/man8/tune2fs.8.html
Topics
Community Discussion
No community discussion yet for this question.