fsck -fy fails. please help!!

"The volume Macintosh HD could not be repaired after 3 attempts."


User uploaded file

This started happening after iMac installed the latest version of MacOS Sierra.


iMac crashed while running a YouTube video on Safari, then went into a reboot loop. Presently it doesn't boot normally (progress bar moves and very slowly finishes and then system shuts down; gets heated up too) and "fsck -fy" fails in the Single User Mode.


Please help!!

iMac (27-inch Mid 2011), MacOS Sierra

Posted on Jun 1, 2017 4:50 PM

Reply
6 replies

Jun 1, 2017 7:43 PM in response to John Galt

Thank you for your help so far. Assuming my hard disk is not entirely dead, should I?


  1. Pull the hard drive from the iMac and put it into an external case, to be read by another mac.
  2. Connect my iMac to my MacBook Pro via a Thunderbolt cable and boot the iMac in target disk mode.


Thanks again, just hoping to save the data before I replace the hard disk.

Jun 1, 2017 5:55 PM in response to John Galt

Is there no other way than replacing the hard disk, like formatting the hard disk and reinstalling OS?


Also how do I take back-up of my stuff as nothing happens when I start with "Command + R". I never see the Mac OS X Utilities screen just a blank screen.


I currently have my hard disk partitioned into Macintosh HD and Windows.


On one of the blogs someone had suggested doing -

To Debug, Repair, Force (and fix errors automatically)

/sbin/fsck_hfs -drfy /dev/disk0s2

To scan for bad blocks:

/sbin/fsck_hfs -S /dev/disk0s2

Jun 1, 2017 6:35 PM in response to Gogar

Is there no other way than replacing the hard disk, like formatting the hard disk and reinstalling OS?


You can certainly try that. Try those other options if you wish also, but the failure is likely to occur again, perhaps in a short period of time. Disk Utility already executed those identical commands, several times.


If you have no backups already, it's a bit late for that now.

Jun 1, 2017 8:02 PM in response to Gogar

Option 2 is easier, and identical to Option 1 as far as the MacBook Pro is concerned, so that's what I recommend. Assuming it mounts, you could then exhaust every alternative to extract its data or "repair" it using whatever method you choose — keeping in mind any "repair" should be considered temporary, and used for the sole purpose of creating a backup or extracting uncorrupted data.

Jun 2, 2017 6:10 AM in response to Gogar

Disk Utility and its 'repair disk' option actually uses the same fsck command that you appear to have run from singleuser mode.


What fsck does is attempt to repair corruption to the directory of the disk drive, sometimes the corruption is so bad fsck cannot repair it. Whilst it is possible the drive has a hardware failure like John Galt suggests it maybe merely that the corruption is too bad for fsck.


In which case you have two options. You could completely reformat the drive, obviously this will lose all files on the drive but if the format succeeds you could restore the files from a backup. You do have a backup don't you? 😉 Alternatively and I am surprised no-one else has mentioned it already there is a tool called DiskWarrior. This works in a totally different way to Disk Utility aka fsck in that DiskWarrior does not attempt to repair the existing disk directory, instead it builds a new copy from scratch. There is no guarantee that DiskWarrior will succeed but over the years it has helped a lot of people where Disk Utility could not.


See https://www.alsoft.com/

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

fsck -fy fails. please help!!

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.