Backup Data in Recovery Mode: Guide and Methods
In this article
You cannot directly perform a traditional file backup while inside a standard Recovery Mode menu because these environments are designed for system repair, not file management. To save your data when the OS won't boot, you must use a specialized tool like ADB (Android Debug Bridge) for Android devices or macOS Recovery's Terminal and Disk Utility for Macs. This process allows you to pull files from the internal storage to an external drive or computer before performing a factory reset or system reinstall.
What You'll Need
- A computer (Windows, macOS, or Linux) with the necessary drivers installed.
- A high-quality USB data cable compatible with your device.
- For Android: ADB platform tools installed on your computer.
- For Mac: An external hard drive or USB flash drive formatted for Mac.
- USB Debugging enabled (for Android) or an administrator account password (for Mac).
Step-by-Step
Depending on your device, the method for extracting data from a non-booting state varies. Labels and menu paths may differ slightly based on your device version, region, or manufacturer.
Method 1: Android using ADB Sideload/Shell
- Connect your Android device to your computer using the USB cable.
- Boot the device into Recovery Mode. This is typically done by holding the Power and Volume Down (or Volume Up) buttons simultaneously while the device is off.
- In the Recovery menu, use the volume buttons to navigate to "Mount /system" or "Advanced" and select "Mount /data" if the option is available. This makes the user partition accessible to the computer.
- On your computer, open a Command Prompt or Terminal window in the folder where ADB platform tools are installed.
- Type
adb devicesto ensure your computer recognizes the device. You should see a serial number followed by "recovery". - To pull a specific folder (such as the DCIM folder for photos), use the command:
adb pull /sdcard/DCIM C:\BackupFolder. Replace "C:\BackupFolder" with the actual path on your computer where you want the files saved. - Wait for the transfer to complete. If you want to backup the entire internal storage, use
adb pull /sdcard/ .to copy everything to the current directory on your PC.
Method 2: macOS Recovery and Target Disk Mode
- If your Mac cannot boot to the desktop, shut it down completely.
- Boot into macOS Recovery. For Intel Macs, hold Command + R during startup. For Apple Silicon Macs, press and hold the power button until "Loading startup options" appears, then select Options.
- Connect an external hard drive to your Mac.
- From the top menu bar, select Utilities > Terminal.
- In the Terminal, you need to find the path of your internal drive and your external drive. Type
ls /Volumesto see the names of all connected disks. - Use the copy command to move your user folder to the external drive. The command format is
cp -R /Volumes/[InternalDriveName]/Users/[YourUsername] /Volumes/[ExternalDriveName]/. - Alternatively, if you have another Mac, you can use Target Disk Mode (Intel) or Share Disk (Apple Silicon). For Apple Silicon, go to Options > Utilities > Share Disk, select your drive, and click Share to Make Available. Connect the two Macs via Thunderbolt, and the struggling Mac's drive will appear as an external disk on the healthy Mac.
Common Mistakes
One of the most frequent errors is attempting to use ADB on a device where USB Debugging was never enabled in the developer settings before the crash. ADB requires this permission to communicate with the system; if it was off, the computer will likely reject the connection in recovery mode. Another common mistake is using a "charging only" cable. Many USB cables provided with cheap accessories do not have data lines, meaning the computer will never see the device regardless of the mode it is in.
On macOS, users often forget to check the file system format of their external backup drive. If you are trying to move large folders from a Mac to a drive formatted as FAT32, the transfer will fail for any single file larger than 4GB. Always ensure your backup drive is formatted as APFS or Mac OS Extended (Journaled) for the best compatibility during recovery operations.
Finally, avoid the temptation to "Wipe Cache Partition" or "Factory Reset" before you have confirmed that your adb pull or cp command actually worked. Once a wipe is initiated, the encryption keys are deleted, and the data is permanently unrecoverable, even with professional forensic tools.
Tips
To speed up the process on Android, target specific high-value folders rather than the entire storage. Focus on /sdcard/DCIM for photos, /sdcard/Documents for files, and /sdcard/WhatsApp (or other app-specific folders) for chat backups. This reduces the chance of the connection timing out or crashing due to a corrupted system file.
For Mac users, using Target Disk Mode is significantly faster and more reliable than using the Terminal in Recovery Mode. It treats the crashed Mac as a simple external hard drive, allowing you to use the Finder's drag-and-drop interface to move files, which provides a visual progress bar and better error handling.
Always keep your computer's drivers updated. For Android, ensure you have the specific OEM USB drivers for your brand (Samsung, Google, Xiaomi, etc.) installed on Windows. Without these, the device may appear as "Unknown Device" in the Device Manager, preventing any data extraction.
Troubleshooting
If your computer does not recognize the device in recovery mode, first try a different USB port. Rear ports on a desktop PC are connected directly to the motherboard and provide more stable power and data transfer than front-panel ports. If that fails, restart the computer and the device, then try a different USB cable.
If you receive a "Permission Denied" error while using ADB, it is likely because the data partition is encrypted. Some recovery modes allow you to "Decrypt Data" by entering your lock screen PIN or password. Look for a prompt in the recovery menu that asks for your password to mount the /data partition. If you cannot decrypt the partition, ADB cannot read the files.
If the macOS Terminal command cp hangs or returns an I/O error, it suggests that the internal SSD or HDD has physical bad sectors. In this case, stop using the Terminal and attempt to boot into Safe Mode (hold Shift on Intel Macs) to see if the OS can boot minimally. If it cannot, you may need to use a third-party data recovery tool via a bootable USB drive.
Frequently Asked Questions
Can I backup my apps and app data in recovery mode?
Generally, no. You can backup the files stored in the shared storage (photos, downloads, documents), but the internal app data (databases, login sessions) is stored in the /data/data folder, which is protected. Accessing this folder requires root access, which is not available in standard recovery mode.
Will this process delete my data?
No, the adb pull and cp commands are "read-only" operations for the source device. They copy data from the device to the computer without modifying or deleting the original files. However, avoid selecting any menu option that says "Wipe," "Format," or "Reset."
How long does it take to backup data this way?
The speed depends entirely on the amount of data and the USB standard (USB 2.0 vs 3.0/USB-C). A few gigabytes of photos may take a few minutes, while a full 128GB storage backup could take several hours. Ensure your device is plugged into a power source or has sufficient battery.
What if I forgot my lock screen password?
If the data partition is encrypted (which is default for most modern Android and Mac devices), you cannot mount the data or pull files without the password. Recovery mode preserves the encryption for security; without the key, the files remain scrambled and inaccessible.
Do I need to be a programmer to use ADB?
No. While ADB uses a command-line interface, you only need to copy and paste a few specific commands. As long as you follow the syntax exactly—specifically the paths to your folders—you do not need any coding knowledge.