nerdexam
CompTIA

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.

Devices, Linux Filesystems, Filesystem Hierarchy Standard

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)
  • A
    4% (1)
  • B
    4% (1)
  • D
    93% (25)

Why each option

The tune2fs command modifies ext2/ext3/ext4 filesystem parameters, including the maximum mount count that triggers an automatic e2fsck check.

Adebugfs

debugfs is an interactive filesystem debugger used for low-level inspection and repair, not for adjusting mount-count thresholds.

Bdumpe2fs

dumpe2fs displays filesystem superblock and block group information in read-only mode; it cannot modify filesystem parameters.

Cmode2fs

mode2fs is not a valid Linux command; no standard utility by that name exists for ext filesystem management.

Dtune2fsCorrect

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.

Emke2fs

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

#tune2fs#mount count#e2fsck#filesystem maintenance

Community Discussion

No community discussion yet for this question.

Full LX0-103 Practice