LPIC-1 Exam 101 v5 (Linux Administrator) — Question 83
After a power outage, the XFS file system of /dev/sda3 is inconsistent. How can the existing file system errors be fixed?
Answer options
- A. By using mount -f to force a mount of the file system
- B. By running xfsck on the file system
- C. By mounting the file system with the option xfs_repair
- D. By running xfsadmin repair on the file system
- E. By running xfs_repair on the file system
Correct answer: E
Explanation
The correct answer is E, as xfs_repair is specifically designed to repair XFS file systems. Option A is incorrect because forcing a mount does not fix underlying file system errors. Option B is wrong since xfsck is not applicable to XFS file systems, and option C is misleading because xfs_repair is not a mount option. Option D is incorrect as xfsadmin does not have a repair function.