Page 1 of 1
Recover Julia Files
Posted: 17 Aug 2024, 07:15
by stumarcus
I removed a folder in my home directory on Ubuntu Linux via: 'rm -r folder_name'. The folder contained a bunch of Julia (.jl) scripts in several subfolders contained in folder_name. Is it possible to recover the .jl files using PhotoRec?
Re: Recover Julia Files
Posted: 17 Aug 2024, 10:53
by recuperation
No.
Look here:
https://www.cgsecurity.org/wiki/File_Fo ... y_PhotoRec
Have the files been deleted on an SSD?
Re: Recover Julia Files
Posted: 17 Aug 2024, 15:34
by stumarcus
The files were deleted on an ext4 drive. I will have to check if it is a SSD.
Re: Recover Julia Files
Posted: 17 Aug 2024, 17:30
by stumarcus
Yes, the files were deleted on a SSD. The folder that was deleted ('/home/stuart/julia_code/Gen7_BPM/archive_6_29_2024') was on the partition /dev/nvme0n1p2, which is an ext4 file system.
$ lsblk -o name,rota
NAME ROTA
loop0 0
loop2 0
loop3 0
loop4 0
loop5 0
sda 0
└─sda1 0
nvme0n1 0
├─nvme0n1p1 0
└─nvme0n1p2 0
$ df -T /home/stuart/julia_code/Gen7_BPM/
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/nvme0n1p2 ext4 3844033552 765602156 2883090392 21% /
Re: Recover Julia Files
Posted: 17 Aug 2024, 20:27
by recuperation
Modern file systems such as your linux notify your SSD about freed space using the TRIM command.
There should be no data remains.
If you are in doubt, you can run PhotoRec. Your Julia files might fall in the text category. You would need to postprocess the results of PhotoRec.
You can test this behaviour - maybe proving that I am wrong.
Copy some Julia scripts on a USB pen drive and delete those Julia files.
Run PhotoRec only searching the unallocated space:
https://www.cgsecurity.org/wiki/PhotoRe ... space_only
When PhotoRec is done, check the found txt-files.
Re: Recover Julia Files
Posted: 23 Aug 2024, 03:57
by stumarcus
PhotoRec searched the entire partition for *.txt files, but the Julia scripts were not found. A search for 'JuMP' (which appeared in all of the Julia scripts) was not found in any of the text files found by PhotoRec. PhotoRec did not give the option to only search over the unallocated space in the partition.
Re: Recover Julia Files
Posted: 23 Aug 2024, 10:22
by recuperation
Unfortunately you did not perform my proposed test. Therefore you can't interpret the failure to detect Julia files.
Please post a picture following the screen with the disk selection in PhotoRec. I guess you did something wrong.
Re: Recover Julia Files
Posted: 23 Aug 2024, 20:45
by stumarcus
Your test did work. A Julia script was copied onto a USB pen drive and then removed from the command line with 'rm'. PhotoRec was able to find the deleted Julia script, searching the unallocated space.