Tuesday, March 8, 2016

How To Backup Recovery and Boot.img for Flashing Via Fastboot

If you want to backup the boot or recovery image of your device for flashing via fastboot, read and follow the guide below carefully.

1. Connect the device to PC and launch cmd from your adb folder

2. Type the follow commands
adb shell
cat proc/mtd
This last command will list all the partitions of your device and their mtd block id. For instance:

dev:    size   erasesize  name
mtd0: 000a0000 00020000 "misc"
mtd1: 00480000 00020000 "recovery"
mtd2: 00300000 00020000 "boot"
mtd3: 0fa00000 00020000 "system"
mtd4: 02800000 00020000 "cache"
mtd5: 093a0000 00020000 "userdata"

Take note of the recovery mtd id/number. The continue below: Type
dd if=/dev/mtd/mtd1 of=/sdcard/recovery.img bs=4096
Replace mtd1 with the recovery mtd id of your device that is displayed after the cat proc/mtd command.

The recovery image will be dumped in your sdcard. Get it from there and flash via fastboot.

Note: Root access is required on the device you're dumping from.

If you have questions, please ask in the comments section.

Write replies
  1. adb can't recognize my device. fastboot can. please help. thanks.

    1. I think you should reinstall adb driver. Download here.

      Again, what's your phone's chipset? Spreadtrum, Mediatek, etc

  2. Bro i need your help, i had kindle fire hdx 8.9 4th generation (saturn)... my device is soft bricked and stuck at fastboot mode, i searched for unbrick process in xda and google but i found no development for that device and there is even no custom recovery images like twrp and no software flashing tools too. so could you please help me on this issue.

    1. Besides searching for a custom recovery, did you search for it's complete stock firmware?


If your comment is unrelated to this article, post the problem, request or suggestion here instead.