How to Fix and Recover Data from Mac Hard Drive Failure. A failing internal drive is one of the most stressful issues a Mac user can encounter. Whether you are seeing a flashing folder with a question mark at startup, experiencing frequent kernel panics, or watching your system freeze while accessing files, storage degradation requires immediate, methodical action to prevent permanent data loss.
Drive issues manifest in two main ways: logical corruption (software-level errors in the file system) or physical hardware failure (bad NAND blocks, degraded read/write controllers, or failing mechanical platters on legacy drives).
Step 1 Run Hardware Diagnostics to Isolate the Issue
Before attempting repair commands that stress the storage controller, determine if the drive is physically failing.
On Apple Silicon (M1/M2/M3/M4)
-
Shut down your Mac completely.
-
Press and hold the Power Button (or Touch ID) until “Loading startup options” appears.
-
Press and hold
Command (⌘) + Don your keyboard until the Mac restarts into Apple Diagnostics.
On Intel-Based Macs
-
Shut down your Mac.
-
Press the power button, then immediately press and hold the
Dkey (orOption + Dfor internet diagnostics). -
Release the key when the progress bar or language selection screen appears
Step 2: Boot into macOS Recovery & Run Disk Utility
If hardware diagnostics pass or yield no conclusive physical failure, boot into Recovery Mode to check the integrity of your APFS (Apple File System) container.
Booting to Recovery
-
Apple Silicon: Press and hold the Power button until Startup Options display, click Options, then click Continue.
-
Intel Macs: Power on and immediately press and hold
Command (⌘) + R.
Repairing the Drive Structure
-
Select Disk Utility from the Recovery Utilities menu.
-
Click View > Show All Devices in the top-left toolbar.
-
Select your drive’s volumes in this exact bottom-to-top order:
-
Individual APFS Volumes (e.g., Macintosh HD – Data, then Macintosh HD)
-
APFS Container
-
Physical Storage Device (e.g., APPLE SSD AP…)
-
-
Click First Aid for each level and select Run.
If Disk Utility returns “Operation successful” or repairs the volume map, restart your Mac normally. If it reports “First Aid failed” or “Unable to unmount volume for repair,” advanced command-line interventions are necessary.
Step 3: Command-Line APFS Repair via Terminal
When Disk Utility’s graphic interface fails, running manual file system checks directly through the Recovery Terminal gives deeper insight into APFS structure errors.
-
In Recovery Mode, select Utilities > Terminal from the top menu bar.
-
List all mounted disks to find your identifier
-
Locate your primary system container (typically
disk1ordisk2, marked asAPFS Container Scheme). -
Execute the APFS repair tool directly against the raw disk device:
The -y flag automatically attempts fixes on damaged object maps, corrupt checkpoints, and invalid extent records. If terminal outputs The volume /dev/rdisk1 appears to be OK after repair, reboot the system.
Step 4: Recovering Data from an Unbootable Mac
If the operating system refuses to load but the internal SSD responds, extract your files prior to attempting a clean erase or hardware service.
Option A: Share Disk Mode (Apple Silicon)
-
Connect your unbootable Mac to a working host Mac using a Thunderbolt 3 or Thunderbolt 4 cable.
-
Boot the non-working Mac into Recovery Mode.
-
Select Utilities > Share Disk.
-
Select your startup disk (Macintosh HD) and click Start Sharing.
-
On the host Mac, open Finder. The shared drive will appear under Locations, allowing you to manually copy critical folders.
Option B: Target Disk Mode (Intel Macs)
-
Turn off the target Intel Mac.
-
Connect it to another Mac using Thunderbolt or FireWire.
-
Turn on the target Mac while holding down the
Tkey until the Thunderbolt icon displays on screen. -
Mount the drive on the secondary Mac as an external volume to back up files.
Option C: Terminal File Transfer via External Drive
If no second Mac is available, plug an external USB hard drive or SSD into your Mac while in Recovery Terminal.
