Exam LFCS All QuestionsBrowse all questions from this exam
Question 103

Which utility would be used to change how often a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem?

    Correct Answer: C

    The correct utility for changing how often a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem is 'tune2fs'. The tune2fs command is specifically designed to adjust various parameters of ext2, ext3, and ext4 filesystems, including the interval between filesystem checks. This can be done safely without affecting the stored data, making it the appropriate choice for this task.

Discussion
StribOption: C

C. tune2fs The tune2fs command is used to adjust various parameters of an ext2, ext3, or ext4 filesystem. One of the parameters that can be modified using tune2fs is the interval between filesystem checks, also known as the "check interval" or "maximum mount count." This interval determines how often the filesystem is checked for errors during the boot process.

Strib

By using tune2fs, you can adjust the filesystem check frequency without losing any data stored on the filesystem. It is a safer alternative compared to running fsck directly, which is primarily used to repair filesystem errors rather than modifying the check interval.