What happened to you is likely that you had a filesystem error (or a transient hardware glitch). In that case the HDD is remounted read-only to prevent further corruption (errors=remount-ro
in /etc/fstab).
The error message you had ("You are trying to save the file on a read-only disk") was therefore correct. You could have checked that with findmnt {mountpoint}
(likely findmnt /
), and looking for ro
(instead of rw
) in the OPTIONS
columns:
TARGET SOURCE FSTYPE OPTIONS
/ /dev/something ext4 ro,relatime,errors=remount-ro,data=ordered
The best course of action is to:
- immediately copy any important work to a new media (to avoid overwriting a valid (even if old) copy by something which is potentially corrupt).
- reboot and try to fix the problem (this may involve reinstalling to a new HDD it the worst case, or just letting the system do an auto-repair if you are lucky).
- Install the
smartmontools
package, and check the SMART data of your disk
- Take the worst-looking numbers with a grain of salt, since some manufacturer encode several bytes of data in a single number (Google how to interpret these numbers for your disk model).
- But don't overlook any disk health problems; You could have been lucky this time. Better change the disk while it's still usable (you can pick the right model/brand at the best prices since you have time), that having to to an emergency disk replacement at the work possible time (because this is when this happens: exams, project delivery, due to increased workload...)
ls -l ~/guradio
and the the result to your question