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

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

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

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.



Leave a Reply 2

Your email address will not be published. Required fields are marked *


hustle

hustle

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.

sp1der

sp1der

preen – To smooth or clean (feathers) with the beak or bill.