Factory Images

Using Nexus 9 as an example, the flash-all.bat contains:

fastboot flash bootloader bootloader-flounder-
fastboot reboot-bootloader
ping -n 5 >nul
fastboot -w update image-volantis-lrx21l.zip

image-volantis-lrx21l.zip contains recovery.img and the other images. Can I remove the recovery.img to avoid having to re-flash TWRP?

Do I need to use a different parameter for fastboot? ie. not update or -w?

  • 1
    No personal experience with that, but doesn't fastboot support flashing single partitions – so you could e.g. extract system.img and flash it directly using fastboot flash system system.img?
    – Izzy
    Commented Nov 5, 2014 at 15:21
  • @Izzy: That may work but there are a few images: (boot, cache, recovery, system, vendor). Is there a similar command for each?
    – Enigma
    Commented Nov 5, 2014 at 15:24
  • AFAIK yes. See my answer appearing in a few minutes :)
    – Izzy
    Commented Nov 5, 2014 at 15:26

1 Answer 1


According to the CyanogenMod Wiki, you should be able to flash each partition separately – if you've got an image for it. Quoting:

Common fastboot commands
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot flash cache cache.img
fastboot flash userdata userdata.img
fastboot flash system system.img

Following this list come instructions on Installing recovery using fastboot, which should apply (with the partition/file names replaced accordingly) be valid for the other partitions. Basically, with activated and your device connected to your computer (which has the appropriate tools installed):

# Boot the device into bootloader mode:
adb reboot bootloader

# Make sure fastboot can "see" it:
fastboot devices

# Flash the image:
fastboot flash recovery your_recovery_image.img

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .