[Errno 30] Read-only file system

I have been using fedora 35. It was running fine until today when I was going to edit some files but it could not be saved. All file has become read-only. I made a reboot which changed nothing. Upon attemting for up-gradation by sudo dnf upgrade --refresh , it is showing the following error.

Config error: [Errno 30] Read-only file system: '/var/log/dnf.log': '/var/log/dnf.log'
Need help.

1 Like

The most likely cause of this is a failing hard drive, so the kernel mounts it as read only to give yourself a chance to get data off before it fully dies. Usually there will be clues about it in dmesg.

1 Like

dmesg returns a large amount of output. Shall I post everything here?

1 Like