Feature Request - Display File Currently Being Written
Posted: 17 Mar 2024, 08:04
Hi,
One thing I came across running Photorec recently. The disk I was running Photorec on had about 2.5TB of free space at the end of it (never used and so all zeroes), because it was largely unfragmented. Somewhere just before that free space, I assume it found a header matching .tar.gz files. But because the rest of the disk was zeroes, it was attempting to recover a 2.5TB tar file that it would never find the end of.
This mattered because while I had enough storage to recover the 3.5TB of this 6TB disk I knew was used, I didn't have enough storage for all 6TB.
The only way I was able to figure out which file it was currently writing was with some low level Linux system utilities (think like, strace for Linux, dtrace for BSD, or the Windows equivalent would be procmon/filemon). Once I found it, I realized the file it was writing was all zeroes, so, it was a false positive bounded only by the end of the disk. It would have been a LOT easier if Photorec simply had a running display of which file it was currently writing. I would have noticed the same file being written to for an inordinate amount of time.
Adding "[S]kip Current File" would be a nice touch.
One thing I came across running Photorec recently. The disk I was running Photorec on had about 2.5TB of free space at the end of it (never used and so all zeroes), because it was largely unfragmented. Somewhere just before that free space, I assume it found a header matching .tar.gz files. But because the rest of the disk was zeroes, it was attempting to recover a 2.5TB tar file that it would never find the end of.
This mattered because while I had enough storage to recover the 3.5TB of this 6TB disk I knew was used, I didn't have enough storage for all 6TB.
The only way I was able to figure out which file it was currently writing was with some low level Linux system utilities (think like, strace for Linux, dtrace for BSD, or the Windows equivalent would be procmon/filemon). Once I found it, I realized the file it was writing was all zeroes, so, it was a false positive bounded only by the end of the disk. It would have been a LOT easier if Photorec simply had a running display of which file it was currently writing. I would have noticed the same file being written to for an inordinate amount of time.
Adding "[S]kip Current File" would be a nice touch.