Backing up via Fastboot is one of the most reliable ways to save data on Xiaomi smartphones when standard methods (via Mi Cloud or Local Backup) are not available, a technique that is especially relevant for owners of devices with unlocked bootloader, custom firmware or after βbrickingβ the phone. Unlike backup through recovery, Fastboot backup allows you to save all memory partitions, including boot, and userdata, which is critical for full system recovery.
The process requires minimal technical skills, but has its pitfalls, from the need to install drivers to the risk of data loss if commands are not executed correctly. In this article, we will take a step-by-step look at how to backup through Fastboot on any Xiaomi phone (including Redmi, POCO What tools are needed and how to avoid common errors.We will pay special attention to the nuances of working with different versions of firmware. MIUI and alternative OS type LineageOS.
What is Fastboot Backup and Why You Need It
Fastboot mode is a low-level interface for interacting with the hardware of a smartphone that allows you to perform operations with memory partitions directly, bypassing the operating system. Backup via Fastboot involves creating byte copies (dump) of all or selected partitions of the phone, which can then be restored even on a dead device.
The main advantages of the method:
- π§ Full control: you choose which partitions to save (for example, only the userdata with personal data or the entire system for cloning firmware).
- π‘οΈ Reliability: copies are created at the memory level, which eliminates the impact of viruses or OS failures.
- π Universality: Works even if the phone doesnβt turn on or hovers on the Mi logo.
- π± Compatibility: Suitable for all Xiaomi models on Qualcomm and Mediatek chips (if drivers are available).
However, there are limitations to the method, such as the Fastboot backup is not encrypted, it is not secure to store it on cloud services, and it will require the same phone (or an identical model with the same memory markup) to recover, and it is important to understand that some partitions (such as modem or bluetooth) may contain unique calibration data, which will lead to problems with the network or sensors.
Preparation of telephone and computer
Before you start creating a backup, you need to prepare both the phone and the PC. On the side of the smartphone you will need:
- π Unlocked bootloader (without this, Fastboot will not give access to partitions).
- π Battery charge of at least 50% β the process can take up to an hour.
- πΆ Lockdown disabled. MI-account (if the phone is linked to a Xiaomi account).
- π Original. USB-cable (cheap cables can cause data transmission errors).
You need to install:
- Xiaomi Drivers: Download Mi Phone Manager or use Googleβs universal ADB/Fastboot drivers.
- Backup program: We recommend MiFlash (the official Xiaomi utility) or Fastboot Enhance (for advanced users).
β οΈ Warning: If you are using Windows 11, disable driver signature verification. To do this, reboot your Shift-clamped PC, select Diagnostics β Additional parameters β Loading parameters β Reboot, then press. F7 (disable mandatory signature verification).
Before connecting the phone to the PC, perform in the command line:
adb devicesIf the device appears on the list, the drivers are installed correctly. If not, reinstall them or try another one. USB-port (preferably) USB 2.0).
Step-by-step: creating a backup through Fastboot
When you're done, you can start backing up, and the whole process is three steps: go to Fastboot mode, execute partition dump commands, and save files to your PC.
Step 1: Transfer your phone to Fastboot mode
Turn off the phone. Press the Volume Down + Power buttons at the same time and hold them for 5-10 seconds until the screen with the rabbit in the hat appears.
Step 2: Checking the connection
Open the command line in the platform-tools folder (press Shift + right mouse button β Open in the terminal) and do:
fastboot devicesIf the device is determined (the serial number will show), you can continue. If not, check the drivers or cable.
Step 3: Creating a partition dump
For backup of all sections, use the command:
fastboot getvar allThis command will list all the available partitions, copy their titles (e.g. boot, system, userdata) and do for each:
fastboot dump [section name] > [section name].imgExample for the userdata section:
fastboot dump userdata > userdata.imgYou can use a script to speed up the process (save as backup.bat):
@echo off
for %%i in (boot system vendor userdata) do (
echo Dumping%%%...
fastboot dump %%i > %%i.img
)
pauseβ οΈ Note: Userdata can weigh tens of gigabytes. Make sure there is enough space on the disk, otherwise the process will be interrupted by an error. Use compression: fastboot dump userdata | gzip > userdata.img.gz (requires an installed gzip).
βοΈ Checklist before backup
Which sections must be backed up
Not all memory areas are equally important, and below is a table describing key sections and recommendations for backup:
| Section | What it keeps. | Should I backup? | Notes |
|---|---|---|---|
| boot | The kernel and boot files | β Yes. | It's critical to boot the system. Without it, the phone won't turn on. |
| system | Firmware (MIUI or custom OS) | β Yes. | It allows you to restore the original firmware. It weighs 2-4 GB. |
| userdata | Personal data, applications, settings | β Yes. | Largest partition (10-128 GB) and can be backed selectively. |
| vendor | Drivers and brand settings Xiaomi | β Yes. | It is necessary for the correct operation of the camera, network and sensors. |
| modem | Network calibration (IMEI, radio) | β οΈ If you wish, | Backup is only needed if you plan to change your firmware, and restoring someone else's modem will lead to loss of network! |
For most users, it is enough to save boot, system, vendor and userdata. Partitions such as cache or metadata can be skipped - they are restored automatically.
π‘
If you backup your phone before selling, delete the userdata section after the fastboot erase userdata team has created a copy, which will erase your personal data completely, but leave you with the option to restore it to the new device.
Recovery of the phone from the Fastboot backup
To recover data from the backup, reset the phone to Fastboot mode and connect to the PC. For each partition, run the command:
fastboot flash [section name] [section name].imgExample for the system:
fastboot flash system system.imgImportant nuances:
- π Recovery order: first boot, then system, vendor, and only at the end of userdata.
- π« Version incompatibility: You canβt restore the system from MIUI 14 on the phone with MIUI 13 - that'll lead to bootloop.
- π Lockdown MI-account: if the phone was linked to the account, after the recovery of the userdata, you will need to enter a password.
After restoring all sections, perform:
fastboot rebootThe first run can take up to 10 minutes β donβt interrupt the process!
β οΈ Warning: If the phone is stuck on the Mi logo after recovery, try resetting the cache: fastboot erase cache. If that doesn't work, you'll have to reflash the device from scratch.
Common mistakes and their solutions
Even with the correct following of the instructions, errors can occur.
| Mistake. | Reason. | Decision |
|---|---|---|
| waiting for device | Phone is not defined by PC | Check the cable, drivers, USB port. Try another version of the platform-tools. |
| FAILED (remote: 'Not allowed in Lock State') | bootloader locked | Unlock the bootloader through the Mi Unlock Tool. |
| No such file or directory | Wrong path to the backup file | Place.img files in the folder from fastboot.exe or specify the full path. |
| Invalid sparse file format at header | Backup file damaged. | Recreate the backup or restore the partition from another source. |
If a FAILED (remote: 'Not allowed to flash userdata') error appears when you restore userdata, it means that partition protection is enabled on the phone.
- Enter Fastboot.
- Run fastboot oem edl (transition to EDL mode).
- Use MiFlash to firmware the full image.
What if the backup is interrupted?
Alternative ways of backup for Xiaomi
If Fastboot doesnβt work for some reason, consider alternative methods:
- π₯οΈ Mi Cloud: Automatic backups of contacts, photos and apps. minus the limit on the volume (5 GB on a free account).
- π± Local backup: built-in function in Settings β The phone. β Backup: Save applications and settings, but not system files.
- π§ TWRP Recovery: Custom recovery with backup function. Suitable for devices with unlocked bootloader.
- πΎ Titanium backup: an application for backup data and applications. Requires superuser rights.
Comparison of methods:
| Method | Unlocking required | Save system files | Recovery on another device |
|---|---|---|---|
| Fastboot | β Yes. | β Yes. | β No (only on the same model) |
| Mi Cloud | β No. | β No. | β Yes (partially) |
| TWRP | β Yes. | β Yes. | β No. |
| Local backup | β No. | β No. | β No. |
For most users, the best solution is a combination of Fastboot (for system files) and Mi Cloud (for personal data).
π‘
Fastboot backup is the only way to save all Xiaomi memory partitions, including boot files and firmware, which is indispensable when switching to custom OSes or after serious crashes.