LFCS · Question #698
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. To change the maximum time interval (in days) between filesystem checks for an ext3 filesystem, use the tune2fs command with the -i option.
Question
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
(51 responses)- A2% (1)
- C92% (47)
- D4% (2)
- E2% (1)
Why each option
To change the maximum time interval (in days) between filesystem checks for an ext3 filesystem, use the `tune2fs` command with the `-i` option.
There is no `-d` option in `tune2fs` to set the check interval in days; `-d` typically relates to directory hash algorithms.
`tune2fs -c 200 /dev/sda1` sets the maximum *mount count* between two filesystem checks, not the time interval in days.
The `tune2fs` command is used to adjust various tunable parameters of ext2, ext3, and ext4 filesystems. The `-i interval-days` option specifically sets the maximum time (in days) that can pass between filesystem checks, ensuring checks occur after a certain time period regardless of mount count.
There is no `-n` option in `tune2fs` that serves the purpose of setting a check interval in days; `-n` is sometimes used to suppress certain actions or enable no-op mode.
`--days` is not a valid or recognized option for `tune2fs` to set the check interval; the correct option for this functionality is `-i`.
Concept tested: Ext3 filesystem parameter tuning
Source: https://man7.org/linux/man-pages/man8/tune2fs.8.html
Topics
Community Discussion
No community discussion yet for this question.