Resolved How I repaired ExFat partition with "Invalid sector size: 0" problem

Discussion in 'macOS' started by AppleMacFinder, Oct 29, 2014.

  1. AppleMacFinder macrumors 6502a


    Dec 7, 2009
    I am sharing this solution, so that the people who have the same problem would be able find this thread through search engine and follow the advice

    My Macbook Pro has two partitions:
    first is "Mac OS X Extended (Journaled)" -- where Mac OS X is installed, and the
    second has ~0.5 TB ExFat filesystem (for storing torrent downloads + other junk)

    Recently, I have noticed the disappearance of ExFat partition from Finder,
    and when I went to Disk Utility I was unpleasantly surprised: instead of ExFat partition,
    all that I saw was disk0s4 grey partition which had "--" size, appeared as MS-DOS partition,
    was impossible to mount, and when I tried to Verify/Repair it failed shamelessly!

    The error log for this failure could be seen below (date/time removed for convenience):

    Disk Utility started.
    Verifying volume “disk0s4”
    Starting verification tool: 
    Checking file system
    ** /dev/disk0s4
    Invalid sector size: 0
    Error: This disk needs to be repaired. Click Repair Disk.
    Disk Utility stopped verifying “disk0s4”: This disk needs to be repaired.
    Click Repair Disk.
    Verify and Repair volume “disk0s4”
    Starting repair tool: 
    Checking file system
    ** /dev/disk0s4
    Invalid sector size: 0
    Volume repair complete.
    Updating boot support partitions for the volume as required.
    Error: Disk Utility can’t repair this disk. Back up as many of your files
    as possible, reformat the disk, and restore your backed-up files.
    Disk Utility stopped repairing “disk0s4”: Disk Utility can’t repair this disk.
    Back up as many of your files as possible, reformat the disk, and restore
    your backed-up files.
    Googling didn't reveal much, and although I have found some posts that suggested using chkdsk {drive letter}: /f command from Windows Bootcamp, that was not an option for me : I don't use Bootcamp+Windows, and for installing it I would have had to spend a lot of time and mess with still-alive Mac OS X partition, which was the least thing I wanted! Not to mention the fact that experienced Mac/Linux users should be able to accomplish their purposes without having to use Windows...

    Then, I have found this wonderful article by Craig Smith,

    which suggested to use sudo fsck_exfat -d disk0s4 terminal command.

    It scanned this troubled partition and asked to update the boot region.
    I agreed, and was told that the volume was repaired successfully.

    Then, I have restarted the Disk Utility. Initially, it looked like the problem has not been fixed - grey disk0s4 MS-DOS zero-sized partition was still present. But this time I was able to successfully verify and repair the partition! :)

    P.S. Some users have suggested that the Mac OS X implementation of ExFat support is somewhat buggy.
    Here are related threads:
  2. WYTE macrumors newbie


    Dec 10, 2016
    I had 130GB of ALL my important data on that disk to use it on Bootcamp Windows and Mac. Sadly Time Machine doesn't backup harddrives in other formats than HFS. THANK YOU!

    All my data is back.

    Thank you.

    I wish you a wonderful day!
  3. zaiten_ macrumors newbie


    Mar 21, 2018
    THANKS A LOT. solved my issue. Stupid iOS scared the heck out of me. Worked like a charm. "verify Disk" failed but "repair disk" did the trick after the sudo command was entered in the terminal.
  4. DAEMONM95 macrumors newbie


    May 29, 2018
    I know this thread is old AF, but I just wanted to tell you that I love you man. <3
  5. ThunderSkunk, Aug 31, 2018
    Last edited: Aug 31, 2018

    ThunderSkunk macrumors 68030


    Dec 31, 2007
    Colorado & Ontario
    I ah... just found this, and it's saving 20 years worth of personal data off a backup drive that died during a file move several months ago that I thought was gone forever.

    ...never go down to just one drive, for any reason. In that 4hour period, it will choose to die.
  6. nachoragone macrumors newbie


    Sep 8, 2018

Share This Page