How to restore a deleted file in ubuntu?

I have in the working folder missing a very important file I was working on for a long time. I want to try to restore it. The file was in the folder /home/stas/ called

I read on the Internet how to do it.
Established a scalpel. However, it turned out that it restores a very limited list of file types. Basically the media.My kind were gone.

Next I installed photorec. There are a lot of file types but also my fiction.

Next I installed gparted and gpart addition to it. As I understand it, he can not recover data from the drive where the OS is installed and it restores together indiscriminately.

Friends. I need to restore just one small file. I know where he was and what was the name. I thought it was supposed to be a very simple task. But now I'm scared that I will overwrite this file with your own experiments sooner than impeccably renovated. Please help find the simplest solution.

Thank you!
June 27th 19 at 15:17
2 answers
June 27th 19 at 15:19
Set scalpel
You probably already killed the possibility of recovery. The first thing to do after removal is to remount the partition in read-only. In any case, nothing to install, shut down all programs that use the disk, etc. Now file, with a probability of 95%, and overwritten several times.
Besides, if you have a SSD, everything is much more complicated recovery.
I have a 32 gb SSD. When the missing file I don't remember, maybe a few days ago. All this time I have actively used a netbook. - duane_Howe20 commented on June 27th 19 at 15:22
: can for it to put a candle only. It is not - jennings_Kozey commented on June 27th 19 at 15:25
June 27th 19 at 15:21
1) NOTHING to INSTALL on the drive where the lost file (or the file can just be overwritten), everything to do with Live USB
2) If the file system is fat*, ext*, NTFS you can recover the data using testdisk

Find more questions by tags Ubuntu