← Back to Error Index
root@linuxfix:~/erofs$
EROFS
Read-only file system

Solutions

Prerequisites: Start by updating your system to resolve common issues and ensure the solutions provided below are compatible with your current environment.
check_latest_version && sudo apt update && sudo apt upgrade -y
Check mount status

Verify filesystem mount options:

mount | grep /path
cat /proc/mounts | grep /dev/device
findmnt /path
Remount as read-write

Change to read-write mode:

sudo mount -o remount,rw /path
sudo mount -o rw,remount /dev/device /path
Check filesystem health

Verify filesystem integrity:

sudo fsck /dev/device
dmesg | grep -i "read-only"
sudo tune2fs -l /dev/device

What is EROFS?

EROFS occurs when trying to write to a filesystem that is mounted read-only.

Common scenarios: Writing to read-only mounts, filesystem errors causing read-only mode, or USB drives with write protection.

Common Causes

  • Filesystem mounted read-only
  • Write protection enabled
  • Filesystem errors triggering read-only mode
  • Hardware write protection
  • Mount options preventing writes

Debugging Tips

lsblk -f
cat /sys/block/device/ro
hdparm -r /dev/device
blkid /dev/device

Prevention

  • Monitor filesystem health
  • Use proper mount options
  • Check hardware write protection
  • Regular filesystem checks
errno filesystem mount readonly