nerdexam
CompTIA

XK0-005 · Question #1679

The users of a Linux system are unable to use one of the application filesystems. The following outputs have been provided: Output 1: $ cd /app $ touch file touch: cannot touch 'file': Read-only…

The correct answer is A. umount /app. The kernel log shows Buffer I/O errors on /dev/sdc1, and the mount output confirms the filesystem was automatically remounted read-only (ro) as a self-protection mechanism. The resolution requires two steps: first unmount the filesystem with 'umount /app' so it is no longer in…

Troubleshooting

Question

The users of a Linux system are unable to use one of the application filesystems. The following outputs have been provided: Output 1: $ cd /app $ touch file touch: cannot touch 'file': Read-only file system Output 2: /dev/sdc1 on /app type ext4 (ro,relatime,seclabel,data=ordered) Output 3: /dev/sdc1 /app ext4 defaults 0 0 Output 4: [ 302.048075 ] Buffer I/O error on dev sdc1, logical block 0, asyng page read [ 302.048490 ] EXT4-fs (sdc1): Attempt to read block from filesystem resulted in short read while trying to re-open /dev/sdc1 Which of the following actions will resolve this issue?

Options

  • Aumount /app
  • Bxfs_repair /dev/sdc1
  • Cumount /app
  • Dfsck -y /dev/sdc1

How the community answered

(40 responses)
  • A
    70% (28)
  • B
    15% (6)
  • C
    10% (4)
  • D
    5% (2)

Explanation

The kernel log shows Buffer I/O errors on /dev/sdc1, and the mount output confirms the filesystem was automatically remounted read-only (ro) as a self-protection mechanism. The resolution requires two steps: first unmount the filesystem with 'umount /app' so it is no longer in use, then run 'fsck -y /dev/sdc1' to check and repair the filesystem errors. Note: Options A and C are identical in this question (both say 'umount /app'), which appears to be a typo-the intended full fix is unmount followed by fsck. xfs_repair (Option B) is incorrect because the filesystem type is ext4, not XFS.

Topics

#Filesystem Management#Troubleshooting#Linux Commands#Disk I/O Errors

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice