Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Recover a bad block file using dd' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Recover a bad block file using dd
Authored by: macwebmac on Aug 10, '05 12:52:49PM

This is great tip, that I used to recover file with bad block, to new file.

One mpeg 400MB 20min file on my harddisk couldnt be copied or opened. Always returned error. I used command recomanded, but not on whole harddisk but only on file.

in terminal I put

dd bs=512 if=/Volumes/HD1/badfile.mpg of=/Volumes/HD2/newrecoveredfile.txt conv=noerror,sync

/Volumes/HD1/badfile.mpg is location of bad file
/Volumes/HD2/newrecoveredfile.mpg is new recoverd file path

Sync in file was not lost cos recovered file was padded with zeros where bad block was. New file out of 20mins only had 15frames in bad block, and resulting recoverd mpeg only had 15frames freezed picture.

Great tip!!!
Thanks








[ Reply to This | # ]
Recover a bad block file using dd
Authored by: macwebmac on Aug 10, '05 01:12:43PM

dd bs=512 if=/Volumes/HD1/badfile.mpg of=/Volumes/HD2/newrecoveredfile.mpg conv=noerror,sync


you want same file extension as original, but you can put any nam, and change later in finder



[ Reply to This | # ]