I challenge you to help me save broken files

Discussion in 'macOS' started by DYER, Jul 30, 2013.

  1. DYER macrumors 6502

    Joined:
    Oct 4, 2008
    Location:
    London, UK
    #1
    Here's one for you: How can I save broken files.

    Basically I have a broken windows *shudder* hard drive (it got smashed and now has many many bad sectors) and I want to save the corrupted data. Thing is, Mac's are smart and abort copying when they sense bad files.
    I need my mac to ignore this sane advice and copy it anyway.

    Anyone have any idea as to how I can make my Mac copy stuff without it stopping the transfer every time it tries to copy a bad file?

    Many thanks,

    Chris
     
  2. DYER thread starter macrumors 6502

    Joined:
    Oct 4, 2008
    Location:
    London, UK
    #2
    Come on guys, surely one of you must know how to do this? :(
     
  3. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #3
    There is a command line utility called rsync you can access in OS X Terminal that might get this to work for you. If you Google search "rsync skip errors" you will find some tips that might get you going on an rsync command that would just skip over broken files.

    Here is an overview of rsync.
     
  4. ElectricSheep macrumors 6502

    ElectricSheep

    Joined:
    Feb 18, 2004
    Location:
    Wilmington, DE
    #4
    You might also look into using dd with the conv=noerror,sync options specified. This will attempt to copy files with bad sectors anyway, filling the unreadable portions with NUL characters.

    Another alternative would be to install and use ddrescue, which has a few other tricks to try and recover information from bad blocks.
     
  5. DYER thread starter macrumors 6502

    Joined:
    Oct 4, 2008
    Location:
    London, UK
    #5
    Thank you both for your guidance! I will have a go tomorrow evening and hopefully save the data. Really appreciate you help.

    Thanks,

    Chris
     

Share This Page