Troubleshooting

After a series of I/O errors, an application reports that it cannot write to /data. The mount output shows the ext4 filesystem on /dev/sdb1 is now mounted read-only, and dmesg contains "EXT4-fs error" and "Remounting filesystem read-only." What is the BEST next step?

Show the answer

Correct answerB. Back up the data, unmount the filesystem, and run fsck on /dev/sdb1

The kernel remounted the filesystem read-only to protect it after detecting errors, so it should be repaired with fsck while unmounted. Forcing a read-write remount ignores the underlying corruption and risks further data loss; permissions and quotas are not the cause.