After some two hours it was just about finished downloading 600M from filesharing site. Saw the download had been truncated, so hit restart in order to get the last few megs downloaded. To my consternation showed only 50K downloaded! Looked further down saw entry of a finished download of 600M with same file name. Sinking feeling in pit of stomach. Cancelled failed download. File nowhere to be found in folder. Searched web for deleted file recovery, and found two promising methods.
- lsofProduced nothing.
Code: Select all
lsof | grep filename
- TestDisk https://itsfoss.com/recover-deleted-files-linux/
However in Step 8 of the link, did not get option to delete. Only got: [Type] [Image] [Creation] [Quit].
So leading one to suspect file was not deleted but truncated, and that differnet approach needed.
TestDisk was installed with USM, had missing ntfs-3g library dependency. Also of interest was an entry for PhotoRec in menu. It appears one also gets PhotoRec thrown in when one installs TestDisk.
More Precisely Need to be able to iterate thru all used inodes in order to find the orphaned ones for comparison.