Cannot save or delete files in a folder <Solved>
Posted: Sun 14 Jun 2020, 04:35
G'day clever-types:
In the file attached you see the content of a folder: inq-text. (The file is in the posting below)
The files in the folder are text files and (until a few minutes ago) I edited and saved some files (today: 14 June). Now, suddenly I can edit a file but I cannot save a file. See, as an example, inq_d04_98-0205-n.txt. Edited the file below, (- ie same name both w/out -n) I could not save my work.
I edited inq_d01 (- check the date: June 14 - today-) and saved that file.
I cannot delete inq_d06_a_blank_file.txt. I created that file in April - probably 'touched' it into existence. I can open it with Geany. It's an empty file. Also, note the size: 0 B. Again, that suggests and empty file.
Can any-one suggest what's going on here? What am I missing?
(Additional info).
I have a copy of this directory (along with others) on a thumb-drive.
I took that thumb to another PC (a lap-top) last week and edited some of the files in the directory on the thumb.
Then, this morning, I copied the 'freshly edited' files back onto the (conventional) drive you see in this snapshot. Can't say exactly which files - I used the terminal command 'find' to located anything I worked on last week - then 'copied' from the thumb to sda1 (the main rotating drive on my desktop).
I am logged in (at the moment) as 'root' (at least on the terminal).
When I open d06 - the blank file and try to save a small change I see the msg: Error saving file. Operation not permitted.
BUT! If I copy the _d06_a_blank_file.txt to /mnt/ram1/ and open-edit-save (the file, using Geany) THEN (miracle of miracles) I can save the changes back to the RAM drive.
Clearly I can solve the problem by creating a new directory, copying all the files and then deleting the previously (perfectly functional) working directory 'nq-text'.
Has Linux failed? Is the world ending? Say it ain't so, Huck! Say it ain't so!
Maybe my desktop has got the Kung-flu? I hear it is going around ...
Help received with appreciation.
Leslie (in NSW Australia).
In the file attached you see the content of a folder: inq-text. (The file is in the posting below)
The files in the folder are text files and (until a few minutes ago) I edited and saved some files (today: 14 June). Now, suddenly I can edit a file but I cannot save a file. See, as an example, inq_d04_98-0205-n.txt. Edited the file below, (- ie same name both w/out -n) I could not save my work.
I edited inq_d01 (- check the date: June 14 - today-) and saved that file.
I cannot delete inq_d06_a_blank_file.txt. I created that file in April - probably 'touched' it into existence. I can open it with Geany. It's an empty file. Also, note the size: 0 B. Again, that suggests and empty file.
Can any-one suggest what's going on here? What am I missing?
(Additional info).
I have a copy of this directory (along with others) on a thumb-drive.
I took that thumb to another PC (a lap-top) last week and edited some of the files in the directory on the thumb.
Then, this morning, I copied the 'freshly edited' files back onto the (conventional) drive you see in this snapshot. Can't say exactly which files - I used the terminal command 'find' to located anything I worked on last week - then 'copied' from the thumb to sda1 (the main rotating drive on my desktop).
I am logged in (at the moment) as 'root' (at least on the terminal).
When I open d06 - the blank file and try to save a small change I see the msg: Error saving file. Operation not permitted.
BUT! If I copy the _d06_a_blank_file.txt to /mnt/ram1/ and open-edit-save (the file, using Geany) THEN (miracle of miracles) I can save the changes back to the RAM drive.
Clearly I can solve the problem by creating a new directory, copying all the files and then deleting the previously (perfectly functional) working directory 'nq-text'.
Has Linux failed? Is the world ending? Say it ain't so, Huck! Say it ain't so!
Maybe my desktop has got the Kung-flu? I hear it is going around ...
Help received with appreciation.
Leslie (in NSW Australia).