Mac Data Recovery in Recovery Mode: Step-by-Step
In this article
If your Mac won't boot normally and you need to recover files, macOS Recovery Mode gives you access to Disk Utility, Terminal, and other tools that can help. This guide walks you through the process of using Recovery Mode to recover data from a Mac that won't start, whether you need to repair the disk, copy files to an external drive, or use Time Machine. Before you start, make sure you have a working external storage device (like a USB drive or external hard drive) with enough free space for the files you want to recover, and a second Mac if you plan to use Target Disk Mode.
What You'll Need
- A Mac that can enter Recovery Mode (most Macs from 2010 onward)
- An external drive or USB flash drive with enough free space for the files you want to recover
- A second Mac (optional, for Target Disk Mode or if your Mac's internal drive is completely unreadable)
- A USB-C to USB-A adapter if your external drive uses USB-A and your Mac only has USB-C ports
Step-by-Step
- Enter Recovery Mode. Shut down your Mac completely. Press the power button, then immediately press and hold one of the following key combinations, depending on your Mac's chip:
- Intel Mac: Command (⌘) + R
- Apple Silicon (M1/M2/M3): Press and hold the power button until you see “Loading startup options,” then click Options and click Continue.
- Wait for the Recovery Mode utilities window. After a few moments, you'll see a window with options like “Restore from Time Machine Backup,” “Reinstall macOS,” “Safari,” and “Disk Utility.” If you don't see this window, your Mac may not have entered Recovery Mode correctly—see Troubleshooting below.
- Connect your external drive. Plug in your external drive or USB flash drive now. If it doesn't appear in the Finder or in Disk Utility, it may need to be formatted—but if it's a new drive, you can format it later if needed. For now, just make sure it's connected.
- Use Disk Utility to repair the disk (if needed). If your Mac won't boot because of a disk error, you might be able to fix it and then boot normally. In the Recovery Mode utilities window, select Disk Utility and click Continue. In the sidebar, select your startup disk (usually named “Macintosh HD”). Click First Aid and then Run. This checks and repairs the disk. If it reports errors and fixes them, restart your Mac normally. If it says the disk is OK or can't be repaired, proceed to the next step.
- Copy files using Terminal (if Disk Utility doesn't fix the boot issue). If your Mac still won't boot, you can manually copy files to your external drive using Terminal. In the Recovery Mode utilities window, select Utilities > Terminal from the menu bar. Type
cd /Volumesand press Return. Typelsand press Return to see a list of connected drives. You'll see your internal drive (often labeled “Macintosh HD”) and your external drive (often labeled with its name). To copy a folder from your internal drive to the external drive, use thecpcommand. For example, to copy your Documents folder, type:cp -R /Volumes/Macintosh\ HD/Users/yourusername/Documents /Volumes/ExternalDriveName/(replace “yourusername” and “ExternalDriveName” with your actual username and drive name). Press Return. The files will copy. Repeat for other folders you need. Be careful: thecpcommand can overwrite files with the same name on the destination, so make sure you're copying to an empty folder or a unique folder name. - Use Time Machine backup (if you have one). If you have a Time Machine backup, you can restore from it. In the Recovery Mode utilities window, select Restore from Time Machine Backup and click Continue. Follow the on-screen prompts to select your backup and restore it to your internal drive. This will erase your current drive, so only do this if you're sure you want to restore to a previous state.
- Use Target Disk Mode (if you have a second Mac). If your Mac's internal drive is completely unreadable and you have another Mac, you can use Target Disk Mode to access your files. On the broken Mac, shut it down. Press the power button and immediately hold the T key. Keep holding until you see a Thunderbolt or FireWire icon on the screen. Connect the two Macs with a Thunderbolt or FireWire cable. On the working Mac, your broken Mac's drive should appear as an external drive. Copy files from it to the working Mac or to an external drive. When done, eject the drive and restart the broken Mac normally (or shut it down).
- Exit Recovery Mode. Once you've recovered your files, restart your Mac. If you copied files to an external drive, you can now access them from any Mac. If you repaired the disk, your Mac may boot normally. If not, you may need to reinstall macOS or take the Mac to a repair shop.
Common Mistakes
- Not waiting long enough. Recovery Mode can take a while to load, especially on older Macs or if it's downloading from the internet (when you see a spinning globe). Give it at least 10 minutes before giving up.
- Using the wrong key combination. On Apple Silicon Macs, Command+R doesn't work. You must press and hold the power button. On Intel Macs, make sure you're pressing Command+R, not Control+R (which is for recovery over the internet).
- Copying the entire drive. Copying the whole internal drive (e.g.,
cp -R /Volumes/Macintosh\ HD /Volumes/External) is slow and may fail because of permissions or system files. Copy only the user folders you need (Documents, Desktop, Pictures, etc.). - Not having enough space on the external drive. Check the size of the files you're copying. If the external drive is too small, the copy will fail midway. Use a drive with ample space or copy folders one at a time.
- Forgetting to eject the external drive before unplugging. In Terminal, type
diskutil eject /Volumes/ExternalDriveName(replace with your drive name) before unplugging to avoid data corruption.
Tips
- Use a wired connection. If Recovery Mode is loading from the internet (spinning globe), a wired Ethernet connection is more reliable than Wi-Fi.
- Know your username. In Terminal, the path to your home folder is usually
/Volumes/Macintosh HD/Users/yourusername. If you don't know your username, typels /Volumes/Macintosh\ HD/Usersto list all users. - Copy to a folder with a unique name. To avoid overwriting, create a folder on the external drive first, e.g.,
mkdir /Volumes/ExternalDriveName/RecoveredFiles, then copy into it. - Use Disk Utility's “Mount” option. If your internal drive appears in Disk Utility but is greyed out, select it and click Mount to make it accessible in Terminal.
- Back up regularly. The best recovery is a current Time Machine backup. If you don't have one, consider setting one up after you recover.
Troubleshooting
If Recovery Mode doesn't load: Try again, making sure you press the keys immediately after the power button. If you see a globe, wait longer. If it fails repeatedly, try Internet Recovery: on Intel Macs, press Command+Option+R. On Apple Silicon, press and hold the power button, then click Options. If that still fails, your Mac may have a hardware issue—contact Apple Support.
If Disk Utility says “First Aid failed”: This means the disk is damaged beyond software repair. You can still try to copy files using Terminal, but if the disk is unreadable, you may need professional data recovery services.
If Terminal says “No such file or directory”: Check the exact path. Use ls to list the contents of /Volumes to see the exact names. Remember that spaces in folder names must be escaped with a backslash (\ ) or enclosed in quotes.
If the copy process stops or freezes: Your external drive may be too slow or the internal drive may be failing. Try copying smaller folders one at a time. If it still freezes, the internal drive may be failing rapidly—stop and seek professional help.
If Target Disk Mode doesn't work: Make sure both Macs support the cable you're using (Thunderbolt 3/4 or USB-C, depending on the Macs). If the broken Mac is Apple Silicon, Target Disk Mode is not available—use the other methods instead.
Frequently Asked Questions
Can I recover files without an external drive?
Yes, if you have a Time Machine backup, you can restore from it directly. Otherwise, you need some external storage to copy files to, because the internal drive is usually the one that's failing.
Will using Recovery Mode erase my data?
No, entering Recovery Mode itself doesn't erase anything. However, options like “Reinstall macOS” or “Restore from Time Machine Backup” will overwrite your drive, so avoid those unless you're sure you have a backup or you don't need the data.
How long does it take to copy files using Terminal?
It depends on the size and the speed of your drives. A few gigabytes can take minutes; hundreds of gigabytes can take hours. Be patient and don't unplug the drive until the command finishes.
Can I use Recovery Mode to recover files from a dead Mac that won't turn on at all?
No, if the Mac won't power on, Recovery Mode won't start. You may need to remove the hard drive and connect it to another computer using an external enclosure, or seek professional help.
What if my Mac's drive is encrypted with FileVault?
You'll be prompted to enter your password when you try to mount the drive in Disk Utility or access it in Terminal. If you don't know the password, you cannot recover the data.
Is it safe to use Terminal commands in Recovery Mode?
Yes, if you're careful. Only use commands you understand. The cp command is safe if you specify the correct source and destination. Avoid commands like rm (delete) or diskutil erase unless you're sure.