Restored file sizes fit only for smaller files
Posted: 28 Nov 2020, 02:04
This is about a crashed NTFS partition that had Wind7 on it but also lots of private data - jpeg, png, mpeg-4, mp3, aac, epub, pdf, you name it. I only care about private files - Wind7 OS can be generically be reinstalled.
I used PhotoRec 7.1 to restore lost files.
To be able to track down files I wrote scripts that indexes all internal and external partitions by using find and ls.
The find gives the full path with all sub-folders and can help restoring lost folders hierarchies.
The ls does a ls -loaR --time-style="+%Y-%m-%d %H:%M" to include only owner (omitting group), file size and using a unified date+time format.
By having these lostpartition.ls.gz and lostpartition.find.gz I tried tracking down individual files in the numerous recup_dir directories by also first creating recup.ls.gz and recup.find.gz.
Looking for a specific file by searching for its exact size like so finds a small mp3 okay.
But all larger mp3, aac or mp4 / mpeg4 fail. Are none of these larger files restored by PhotoRec 7.1, or are all restored as several files to be concatenated e.g like so
For now it also has found all png or gif or jpeg files with the file sizes matching exactly. Processing more than 320000 files in more than 640 folders takes its time, might be larger files also are not to be found by searching for their individual file size, might be failure restoring larger files only applies to aac, mp3, m4.
I used PhotoRec 7.1 to restore lost files.
To be able to track down files I wrote scripts that indexes all internal and external partitions by using find and ls.
The find gives the full path with all sub-folders and can help restoring lost folders hierarchies.
The ls does a ls -loaR --time-style="+%Y-%m-%d %H:%M" to include only owner (omitting group), file size and using a unified date+time format.
By having these lostpartition.ls.gz and lostpartition.find.gz I tried tracking down individual files in the numerous recup_dir directories by also first creating recup.ls.gz and recup.find.gz.
Looking for a specific file by searching for its exact size like so
Code: Select all
zgrep " 1234 " recup.ls.gz
But all larger mp3, aac or mp4 / mpeg4 fail. Are none of these larger files restored by PhotoRec 7.1, or are all restored as several files to be concatenated e.g like so
Code: Select all
cat part1.mp4 part2.mp4 >complete.mp4