PrepAway - Latest Free Exam Questions & Answers

Which e2fsck option is used to automatically repair an ext2 filesystem?

Which e2fsck option is used to automatically repair an ext2 filesystem?

PrepAway - Latest Free Exam Questions & Answers

Answer: -p

Explanation:
From the man pages:
e2fsck – check a Linux ext2/ext3/ext4 file system
-p Automatically repair (“preen”) the file system. This option will cause e2fsck to automatically fix
any filesystem problems that can be safely fixed without human intervention. If e2fsck discovers a
problem which may require the system administrator to take additional corrective action, e2fsck will
print a description of the problem and then exit with the value 4 logically or’ed into the exit code.
This option is normally used by the system’s boot scripts.

2 Comments on “Which e2fsck option is used to automatically repair an ext2 filesystem?

  1. hustle says:

    Automatically repair (“preen”) the file system. This option will cause e2fsck to automatically fix any filesystem problems that can be safely fixed without human intervention. If e2fsck discovers a problem which may require the system administrator to take additional corrective action, e2fsck will print a description of the problem and then exit with the value 4 logically or’ed into the exit code. (See the EXIT CODE section.) This option is normally used by the system’s boot scripts. It may not be specified at the same time as the -n or -y options.




    0



    0

Leave a Reply