How to Reset Xiaomi via Fastboot: A Complete Guide with Commands and Warnings

Introduction: when you need a reset via Fastboot and how it differs from the standard

Fastboot resets on Xiaomi smartphones are a radical method of restoring the device to health when standard methods (via the settings menu or Recovery) do not help. Unlike a conventional reset that only clears user data, Fastboot mode allows you to reflash critical parts of the system, including recovery, boot and even modem. This is true in case of "bricks" (software breakdowns), when the phone does not load beyond the Mi logo, hovers on the screensaver or gives a No command error in Recovery.

The main scenarios when you need to reset via Fastboot:

  • ๐Ÿ”„ The device is booted into an infinite loop (bootloop) after an unsuccessful update.
  • ๐Ÿ”ง The smartphone does not respond to standard reset via Recovery Mode.
  • ๐Ÿ›ก๏ธ Custom software must be removed (e.g., after installing LineageOS or Pixel Experience).
  • ๐Ÿ”’ You need to unlock the bootloader before the firmware (unlock bootloader).
  • ๐Ÿ“ฑ The phone was "buzzed" after experimenting with Magisk or TWRP.

Itโ€™s important to understand that Fastboot resets are not just about cleaning up data, but about completely rewriting system partitions using official or custom firmware. The process requires a PC, a USB- cable, special utilities (Mi Flash Tool, ADB/Fastboot) and command knowledge. Errors here are fraught with a final โ€œbrick,โ€ so instructions should be followed carefully.

๐Ÿ“Š Why did you need to reset through Fastboot?
The device is not switched on.
We need to remove custom firmware.
I want to unlock the bootloader.
Another case

Preparation for resetting: what to do before the procedure

Before starting a reset, make sure all the preconditions are met. Failure to comply with at least one item can lead to data loss or device failure!

List of mandatory training:

  • ๐Ÿ”‹ Charge your smartphone at least 50 percent (preferably 80 percent) and interrupting the process due to battery drain is almost guaranteed to turn the device into a brick.
  • ๐Ÿ’ป Prepare a PC with Windows 7/10/11 (for the Mi Flash Tool) or Linux/macOS (for ADB/Fastboot). Virtual machines are not recommended due to driver issues.
  • ๐Ÿ“‹ Install Xiaomi drivers (you can download it on the official website). Fastboot requires Qualcomm HS-USB QDLoader 9008 package.
  • ๐Ÿ”— Download the official firmware for your model (.tgz or.zip format) from the Xiaomi Firmware Updater. The firmware must correspond to the region of the device (Global, China, EEA).
  • ๐Ÿ” Unlock the bootloader (unlocked) and this requires the device-based Mi Account (up to 72 hours).

Also prepare:

  • ๐Ÿ”Œ High-quality USB- cable (preferably original from Xiaomi) cheap cables can interrupt the connection.
  • โณ Time: The process can take anywhere from 10 minutes to an hour depending on the model and the speed of the PC.
  • ๐Ÿ“ Write down IMEI and the serial number of the device (under the battery or on the box) which may be needed to restore the network after the reset.

โ˜‘๏ธ Checklist before reset via Fastboot

Done: 0 / 5

โš ๏ธ Warning: If your device was purchased with rooted firmware or has unofficial Recovery (e.g., TWRP), a reset via Fastboot may result in IMEI loss or network problems. In this case, save the nvram partition using the adb backup command before resetting.

How to enter Fastboot mode on Xiaomi: step-by-step instructions

To start resetting, you first need to transfer the smartphone to Fastboot mode. The ways of entering depend on the state of the device:

Method 1. Through buttons (if the phone is switched off or got stuck)

  1. Turn off the smartphone (if it freezes โ€“ press the power button for 10-15 seconds).
  2. Press the Power button + Volume down at the same time.
  3. Hold until the Fastboot logo appears (Mi Bunny robot with the inscription FASTBOOT).

Method 2. via ADB (if the phone is turned on but you need to go to Fastboot)

  1. Enable USB debugging in settings (Settings โ†’ About Phone โ†’ MIUI version โ€“ press 7 times, then go back to Additional Settings โ†’ For Developers).
  2. Connect your phone to your PC and execute the command: adb reboot bootloader

Method 3: Mi Flash Tool (if the phone doesn't respond to buttons)

  • ๐Ÿ–ฅ๏ธ Connect the phone turned off to the PC.
  • ๐Ÿ”ง Press Volume up + Volume down and, holding them, connect the USB- cable. The device will be defined as Qualcomm HS-USB QDLoader 9008.

If none of these things worked, there may be a hardware problem (e.g., a power button malfunctioning), which would require TestPoint, a procedure for power users.

What if Fastboot is not defined by PC?
If the device is not recognized in Fastboot mode, check: 1. USB cable and port (try another port, preferably USB 2.0). 2. Drivers (remove the old ones through Device Manager and install again). 3. Disable the antivirus - it can block the connection. 4. Try another PC (especially if you have Windows 11 with Secure Boot).

Reset via Mi Flash Tool: the official method from Xiaomi

Mi Flash Tool is Xiaomi's official Fastboot firmware utility, which supports most Redmi, POCO and Mi models, but requires an unlocked bootloader.

Step 1 Download and install the Mi Flash Tool

  • ๐Ÿ“ฅ Download the latest version from the official website (Tools section).
  • ๐Ÿ“‚ Unpack the archive into a folder without Cyrillic characters (e.g., C:\MiFlash).
  • ๐Ÿ–ฅ๏ธ Run MiFlash.exe on behalf of the administrator.

Step 2: Connect your phone in Fastboot mode

  • ๐Ÿ“ฑ Transfer the device to Fastboot (see previous section).
  • ๐Ÿ”Œ Connect it to a PC. The Mi Flash Tool should have a device (e.g., COM4).

Step 3: Select firmware and set the settings

  • ๐Ÿ“ Press Select and specify the path to the unpacked firmware (the folder must contain images and flash_all.bat files).
  • ๐Ÿ”ง Select firmware mode at the bottom: Clean all (removes everything, including internal memory); Clean all and lock (reset + lock bootloader (not recommended if you plan custom firmware); Save user data is firmware without data cleaning (rarely works correctly).

Step 4. Start firmware.

  • โš™๏ธ Press Refresh, then Flash.
  • โณ Wait until it's finished (progress will be displayed in the log). The phone will reboot automatically.
Xiaomi modelSupported mode in Mi FlashNotes
Redmi Note 10/11Clean allYou need a firmware labeled Global or EEA.
POCO F3/X3Clean all and lockAfter the firmware is installed, the loader will be locked.
Mi 11/12Save user dataOften leads to errors โ€“ it is better to use Clean all.
Redmi 9A/9CClean allThe firmware takes ~15 minutes.

โš ๏ธ Warning: If the Mi Flash Tool logo has a critical partition flashing error is not allowed, then the bootloader is locked. Unlock it through the official Xiaomi tool.

๐Ÿ’ก

If the Mi Flash Tool gives you a โ€œCouldnโ€™t find fastbootโ€ error, try running it in Windows 7 compatibility mode or turn off driver signature verification (click F8 when you boot your PC and select โ€œDisable Mandatory Driver Signature Verificationโ€).

Resetting via Fastboot commands: a manual method for power users

If the Mi Flash Tool is not suitable (e.g. for older models or custom firmware), you can use manual Fastboot commands. This method requires knowledge of the console, but gives you more control over the process.

Step 1 Install ADB and Fastboot

  • ๐Ÿ“ฅ Download Google's Platform Tools.
  • ๐Ÿ“‚ Unpack into the folder C:\platform-tools.
  • ๐Ÿ–ฅ๏ธ Open the Command Prompt in this folder (Shift + PCM โ†’ Open the PowerShell window here).

Step 2. Check the device connection

Enter the command:

fastboot devices

If the phone is determined (the serial number will appear), you can continue. If not, check the drivers.

Step 3. Perform reset.

For complete cleaning, use the commands:

fastboot erase boot


fastboot erase system




fastboot erase userdata




fastboot erase cache

Then, run the official firmware (if you have a flash_all.bat file, run it).

Step 4: Reset the device

fastboot reboot

If you need to flash specific sections (e.g., recovery only), use:

fastboot flash recovery recovery.img

๐Ÿ’ก

Fastboot manual commands allow only damaged partitions to be replayed point by point, but require a precise knowledge of the firmware structure. It is safer for beginners to use the Mi Flash Tool.

Frequent Fastboot Reset Mistakes and How to Fix Them

Even with the correct following of the instructions, errors can occur, and let's consider the most common and ways to solve them:

Mistake.Reason.Decision
waiting for devicePC can't see the phone.Check the cable, the drivers, the USB port. Try another PC.
FAILED (remote: 'Flashing is not allowed')The bootloader is locked.Unlock it through the Mi Unlock Tool.
Invalid sparse file format at headerThe firmware file is damaged.Download the firmware again and check the checksum (MD5).
The phone does not turn on after the firmware.Incompatible firmware or interrupted process.Repeat the firmware with the correct version of the software.
No such file or directoryWrong way to file.Check the location of the firmware and command.

Additional advice:

  • ๐Ÿ”„ If the firmware is 99% interrupted, try turning off the antivirus or firewall.
  • ๐Ÿ“ก If there is no network after the reset, check IMEI with the command *#06#. If it is lost, restore it using the SN Writer Tool.
  • ๐Ÿ”ง If the phone is stuck on the logo after firmware, press Power + Volume up for 20 seconds for a forced reboot.

โš ๏ธ Warning: If the phone requires a password from your Mi Account after being reset via Fastboot (even if you didn't), this means that Mi Account Lock was previously enabled. Unlocking will require entering a login/password from your associated account. If you don't remember them, contact Xiaomi Support with proof of ownership of the device.

Recovery of data after reset: what can be returned

Fastboot resets all data from internal memory, including:

  • ๐Ÿ“ธ Photos and videos (unless synced with Google Photos or Mi Cloud).
  • ๐Ÿ“ฑ Contacts (unless saved in a Google or Mi Account)
  • ๐ŸŽต Music, documents and downloads.
  • ๐ŸŽฎ Application and game data (progress, save)

What can be restored:

  • ๐Ÿ”„ Backups: If you have backups done through Mi Cloud, Google Drive, or TWRP, recover the data after you first set up your phone.
  • ๐Ÿ“Ž Files on the SD- card: If there were, the memory card is not affected when reset via Fastboot.
  • ๐Ÿ”ง IMEI and serial number: If they are missing, recover via SN Writer Tool (Nvram backup required).

Data recovery programs (if there is no backup):

  • ๐Ÿ› ๏ธ DiskDigger โ€“ scans internal memory for file residues.
  • ๐Ÿ” Recuva โ€“ Recovers deleted photos and documents (requires root rights).
  • ๐Ÿ“ฑ GT Recovery is a mobile recovery app (not available on all models).

The chances of recovery depend on how much data was written to the phone after the reset, and the earlier you start the recovery, the higher the probability of success.

How to make a backup before resetting if the phone is not turned on?
If the device does not boot, but is determined in Fastboot mode, you can save critical partitions: 1. Connect the phone to the PC. 2. Run the command to create a dump partition userdata: adb pull /dev/block/mmcblk0pXX userdata.img (replace XX by the partition number, you can find it through fastboot getvar all). 3. Save the file on PC. After the reset, you can try to extract data using Hex editors or specialized utilities.

FAQ: Answers to Frequent Questions about Fastboot Reset

โ“ Can I reset through Fastboot without unlocking the bootloader?
No, Fastboot firmware on most Xiaomi models requires an unlocked bootloader, except for some older devices (such as the Redmi 4X or Mi A1), where you can only flash recovery without unlocking.
โ“ Why the Mi Flash Tool can't see my device?
There are several reasons: Qualcomm or MediaTek drivers are not installed (depending on the processor); USB 3.0 is used (try USB 2.0 port); Antivirus blocks the connection (disable it temporarily); the cable is not original (use a cable from Xiaomi); also check if the device in Device Manager is identified as Android Bootloader Interface.
โ“ What if after resetting the phone asks for a password from the Mi Account?
This means that Mi Account Lock (anti-theft protection) was previously activated. Solutions: Enter the linked email and password. If you do not remember the data, restore access via account.xiaomi.com. If the phone is purchased from hand and the previous owner did not untie the account, contact Xiaomi Support with a purchase check. Attention: Bypassing this protection is illegal and may lead to the device being blocked.
โ“ Can I flash custom firmware (e.g. Pixel Experience) through Fastboot?
Yes, but you do: Unlock the bootloader. Download the firmware in fastboot-ROM (not recovery-ROM). Use a modified flash_all.bat (if you have it in the archive). For most custom firmware (LineageOS, HavocOS), it is recommended to stitch through TWRP, not Fastboot.
โ“ How long does it take to reset via Fastboot?
Time depends on the model and method: Mi Flash Tool: 10โ€“30 minutes (including unpacking the firmware); Manual commands: 5โ€“15 minutes (if only key partitions are flashed); custom firmware: up to 1 hour (due to signature verification); If the process takes more than 40 minutes, check the log for errors.