I started a badly written script to combine two binary files (via ssh), it needed more space than available in the RAM, presumably started using disk space as swap. My ssh connection dropped, cannot reconnect.
Three days later I am physically in the same room as the computer, it is unresponsive, in the end I have to press the restart button.
First restart the computer won't boot, gives many many of errors of the form;
Failed to write entry (# items, ### bytes), ignoring: Read-Only file system.
Pressed on and off again, computer starts normally this time. For a little while everything seems to be OK.
Recently I can connect to the computer via ssh, but the disk has become read only, so most commands give
Input/Outputerror (cannot write to tmp). For example
FileNotFoundError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/home/clumsycat'].
It's like when I restarted after the first problem part of the disk was still earmarked as swap? I will try a factory reset when I'm next in the same room as the computer, but do you think I have physically damaged the hard disk (ssd really)?