2

So, I have been using the gedit text editor for years, often with multiple files open at a time in tabs.

Today, I find that my two gedit sessions and all the files open in them are suddenly all in "[read only]" mode and won't let me edit the files I was editing earlier with that same loading of the program (but a couple of days ago, and the computer has been put to sleep and awakened a few times since).

I'm still logged in as my usual account, the files are owned by that account and the owner (me) has permissions to edit them.

Opening new files in a new gedit window also results in them being loaded read-only.

I have looked through the various menus I could find and see nothing that seems relevant.

None of what I have done is new to my experience, and I have used gedit for years in this sort of way without ever having seen this happen to me. What's it caused by and how could I get the files back to editable short of closing and reloading them?

4
  • What happened before this issue Jun 24, 2018 at 9:33
  • 1
    Is your disk mounted read-only? See github.com/waltinator/pathlld.git - Bash script to answer "Why can't I read/write that file?"
    – waltinator
    Jun 24, 2018 at 15:39
  • @GeorgeUdosen Before this I have been using the computer about as usual. Firefox, gedit, compiling and running my OpenFrameworks C++ projects, running system updates, viewing PDFs. My file manager is PCManFM. The unusual things would be whatever the updates were (since an update is always something new, though I didn't pay attention this time), backing up my source code to an external drive by dragging files in PCManFM (I do remember pressing the Eject Media icon for it in PCManFM before closing the lid to sleep).
    – Dronz
    Jun 24, 2018 at 16:37
  • @waltinator I noticed after posting this last night that yes, it wasn't just gedit - the whole file system was in read only. My first symptom may actually have been GIMP, which I loaded and noticed it freaking out about not being able to make a temp file, but GIMP has done that before without being unable to save files, so I just thought it was GIMP.
    – Dronz
    Jun 24, 2018 at 16:40

1 Answer 1

2

After posting this last night, I noticed that gedit (Text Editor) was NOT to blame. The whole file system had been set to read-only somehow, so gedit was just behaving correctly.

Why the filesystem was read-only suddenly, I don't know. Could be my hard drive is dying, so I'll try to test for that.

Update: After running some analysis of the disk, there were some logical errors but no physical errors. Correcting the logical errors and restarting cleared up the problem, though I still don't know what the cause was. It clearly was not gedit, though.

2
  • Please remember to click the grey check mark next to your answer later on. This will let other users know it is the correct solution. Jun 24, 2018 at 17:33
  • Well done for letting us know! Jun 24, 2018 at 17:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .