101-500 practice question 2 of 30

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?

Full set: 246 questions
Answer options
A: tune2fs -d 200 /dev/sda1
B: tune2fs -c 200 /dev/sda1
C: tune2fs -i 200 /dev/sda1 Correct answer
D: tune2fs -n 200 /dev/sda1
E: tune2fs --days 200 /dev/sda1
Correct Answer:
C. tune2fs -i 200 /dev/sda1
Explanation

The tune2fs command is used to adjust tunable parameters on ext2, ext3, and ext4 filesystems. The -i option sets the maximum time interval between filesystem checks. The value is a number followed by an optional character specifying the unit: d for days, w for weeks, or m for months. If no unit is specified, the number is interpreted as days, so -i 200 sets the interval to 200 days.

Why Incorrect

A. tune2fs -d 200 /dev/sda1: The -d option is used to set filesystem debugging flags, not the check interval.
B. tune2fs -c 200 /dev/sda1: The -c option sets the maximum mount count between checks, which is different from a time-based interval.
D. tune2fs -n 200 /dev/sda1: This is not a valid option in tune2fs for setting a check interval.
E. tune2fs --days 200 /dev/sda1: The tune2fs command does not have a long option named --days for this purpose.

References

- Linux man page for tune2fs(8). The description for the -i option explicitly states it sets the "maximum time between two filesystem checks."

- Red Hat Enterprise Linux 8 Documentation, "Managing file systems," Section 9.10. "Adjusting file system parameters with tune2fs." This section details the usage of the -i and -c options.

- Bovet, D. P., & Cesati, M. (2005). Understanding the Linux Kernel. O'Reilly Media. Chapter 18, "The Ext2 and Ext3 Filesystems," discusses filesystem parameters managed by tools like tune2fs.

Scroll to Top