Retrieve mp3's from corrupt hard disk
I have an image of a corrupt 20 GB disk (with dd). I would like to try to retrieve all mp3's on the disk.
I've already found the following example to retrieve jpg files. Would it be possible to use the same kind of script to retrieve mp3 files? Which solution do you suggest? >> I also assumed there was no fragmentation, and then proceeded >> to 'dd' anything that looked like an EXIF header +1.5MB to disk >> as individual files. >>Something along these lines: hexdump -C sda1_flashdisk.dd | grep -i "exif" >headers.hex cat headers.hex | awk --non-decimal-data '{print (sprintf("%d","0x"$1)/512)}' > headers.512.dec cat headers.512.dec | xargs --replace bash -c "dd skip={} if=sda1_flashdisk.dd bs=512 count=3000 of=./{}.jpg" |
I had some success once using photorec to rescue some multimedia files from a disk I accidentally reformatted. In spite of the name, it will try to recover files of all kinds. It's very simple though, and I don't think you can set it to search for any specific type of file. It just rescues everything it comes across.
|
Thanks for the tip. I was able to retrieve most of my data with photorec.
Best regards Ivan |
All times are GMT -5. The time now is 01:27 AM. |