nerdexam
CompTIA

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.

Devices, Linux Filesystems, Filesystem Hierarchy Standard

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)
  • A
    4% (1)
  • B
    4% (1)
  • C
    81% (22)
  • D
    11% (3)

Why each option

The tune2fs -i flag sets the maximum time interval between forced filesystem checks, measured in days by default.

Atune2fs -d 200 /dev/sda1

tune2fs does not have a -d flag that controls filesystem check intervals; this is not a valid option for this purpose.

Btune2fs -c 200 /dev/sda1

The -c flag sets the maximum number of mounts allowed between filesystem checks, which is a count-based trigger, not a days-based interval.

Ctune2fs -i 200 /dev/sda1Correct

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.

Dtune2fs -n 200 /dev/sda1

tune2fs does not have a -n flag for setting day-based check intervals.

Etune2fs --days 200 /dev/sda1

--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

#tune2fs#ext3#fsck interval#filesystem tuning

Community Discussion

No community discussion yet for this question.

Full LX0-103 Practice