A read-only filesystem is different from an ordinary file-permission problem. It means the operating system has mounted the filesystem in read-only mode, so applications cannot modify its contents.
This can happen when the system detects filesystem errors or underlying storage problems.
Here's what you should investigate:
- Check mount status: Use
findmnt or mount to identify which filesystem is mounted as read-only.
- Review kernel logs: Run
dmesg or inspect system logs for filesystem, I/O, or storage errors.
- Check disk health: Investigate whether the VPS storage device is reporting read/write failures.
- Check filesystem integrity: Filesystem corruption may require an offline repair using the appropriate recovery procedure.
- Contact your provider: If the underlying virtual disk has storage problems, your hosting provider may need to investigate the physical infrastructure.
Don't repeatedly force the filesystem into read-write mode without understanding why it became read-only. If there is an underlying storage failure, doing so could make data loss worse.