LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Retrieve mp3's from corrupt hard disk (https://www.linuxquestions.org/questions/linux-hardware-18/retrieve-mp3s-from-corrupt-hard-disk-587467/)

eulaersi 09-26-2007 06:20 AM

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"

David the H. 09-26-2007 03:46 PM

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.

eulaersi 09-27-2007 01:00 AM

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.