CompTIA Linux+ XK0-006 (V8) Practice Question

A Linux administrator is investigating why users suddenly cannot create files in the /data mount point. The following commands are run:

$ cp /etc/hosts /data/
cp: cannot create regular file '/data/hosts': Read-only file system

$ mount | grep /data
/dev/sdb1 on /data type ext4 (ro,relatime,errors=remount-ro)

$ dmesg | tail
[ 2875.872] EXT4-fs error (device sdb1): ext4_journal_check_start:61: Detected aborted journal
[ 2875.872] EXT4-fs (sdb1): Remounting filesystem read-only

Which of the following actions will MOST likely restore write access to /data while minimizing the risk of further data loss?

  • Recreate the filesystem with mkfs.ext4 /dev/sdb1 and restore the latest backup.

  • Edit /etc/fstab to add the rw option for /data and execute mount -o remount,rw /data.

  • Run chmod -R 777 /data to give all users full permissions on the directory tree.

  • Unmount /data and run fsck.ext4 -f /dev/sdb1, then mount the partition again with its normal options.

CompTIA Linux+ XK0-006 (V8)
Troubleshooting
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot