Home > Tips and Tricks

Fix writing ‘system’ FAILED (remote: ‘Partition not found’)

In this guide, we will show you the steps to fix the writing ‘system’ FAILED (remote: ‘Partition not found’) error. There are quite a few errors and issues that you might come across while dealing with custom development. Some of them clearly lay down what exactly is the underlying issue, hence the user could fix it accordingly. Then there are other issues that aren’t well documented and leave users scratching their heads as to what the error message exactly meant.

However, the issue that we are about to discuss right now is an amalgamation of the two. While the issue spells out where and what lies the problem, but it might not make sense for many users. This is because the error says that the system partition is not found. Well, we all know that isn’t the case, as the system partition will be there on your device. If it would have been a recovery slot, then it would’ve still made sense

This is because many A/B devices don’t have the recovery partition (the boot partition takes care of everything). However, the system partition has to be there on your device, since it is the place where the OS is installed. So what is the plausible reason for this issue and more importantly how could it be rectified? Well, this guide shall help you out to fix the writing ‘system’ FAILED (remote: ‘Partition not found’) error.

How to Fix writing ‘system’ FAILED (remote: ‘Partition not found’)

How to Fix writing ‘system’ FAILED (remote ‘Partition not found’)

This issue mostly arises when we are trying to make any changes to the system partition via Fastboot Commands. One of the most common cases is when you are flashing a GSI ROM via Fastboot. In my case, this is what happened:

fastboot flash system system-arm64-ab-vanilla.img 
Sending sparse 'system' 1/3 (676429 KB)            OKAY [ 22.9843s]
Writing sparse 'system' 1/3                        FAILED (remote: 'Partition not found')
Finished. Total time: 23.050s

So how could this writing ‘system’ FAILED (remote: ‘Partition not found’) be fixed? Well, we would be using the device’s FastbootD partition to fix this issue. Do keep in mind that this is different from the regular Fastboot Mode. Furthermore, there have been a few instances where a custom recovery such as TWRP is known to prevent the device from booting to FastbootD. Hence it is recommended to revert to the stock recovery.

While you may directly flash the stock recovery via fastboot flash recovery recovery.img, but it is recommended to flash the entire stock firmware. For that, you may refer to our guide to How to Flash Stock Firmware via Fastboot Commands. Or you may also use the device-specific tool for this purpose (such as the Mi Flash Tool for Xiaomi devices). Anyways, once you are back to stock, proceed with the below steps to fix the writing ‘system’ FAILED (remote: ‘Partition not found’)  error.

Install Android SDK

install adb platform tools windows

First and foremost, you will have to install the Android SDK Platform Tools on your PC. This is the official ADB and Fastboot binary provided by Google and is the only recommended one. So download it and then extract it to any convenient location on your PC. Doing so will give you the platform tools folder, which will be used throughout this guide.

Enable USB Debugging and OEM Unlocking

Next up, you will also have to enable USB Debugging and OEM Unlocking on your device. The former will make your device recognizable by the PC in ADB mode. This will then allow you to boot your device to Fastboot Mode. On the other hand, OEM Unlocking is required to carry out the bootloader unlocking process.

oem-unlock-oneplus-unlock-bootloader-t-mobile

So head over to Settings > About Phone > Tap on Build Number 7 times > Go back to Settings > System > Advanced > Developer Options > Enable USB Debugging and OEM Unlocking.

Unlock The Bootloader

If you are planning to flash a file to the system partition (or to any partition for that matter), then you would have to unlock the device’s bootloader. Most of you would have already done so. If that is not the case, then please refer to our guide on How to Unlock Bootloader of Any Android Device

Boot to Fastboot Mode

oneplus-fastboot-mode-unlock-bootloader-t-mobile

  1. Connect your device to the PC via USB cable. Make sure USB Debugging is enabled.
  2. Then head over to the platform-tools folder, type in CMD in the address bar, and hit Enter. This will launch the Command Prompt.
  3. Type in the following command in the CMD window to boot your device to Fastboot Mode
    adb reboot bootloader

Reboot to FastbootD Mode

  1. Now use the below command to boot your device to FastbootD from the current Fastboot Mode:
    fastboot reboot fastboot
  2. Once booted to FastbootD, you shall now execute the desired commands and you would no longer face the issue.

So with this, we conclude the guide on how to fix the writing ‘system’ FAILED (remote: ‘Partition not found’) error. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution at the earliest.


Share:
  • Hehe, 3y from the time of writing, but still actual, THANKS!

    People, if u see CH letters and OP logo in your recovery – this isn’t a recovery, this is (hidden) fastboot. And from this fastboot you’ll be able to flash every image w/o errors.

  • Gottfried

    I was trying to flash the ‘boot’ partition and got this error message. I was successful without needing to ‘fastboot reboot fastboot’, by loading the latest version of platform-tools (Per stackoverflow answer: https://stackoverflow.com/questions/53550328/failed-to-write-to-partition-not-found-android-pixel-3/53606679#53606679 downloading: https://developer.android.com/studio/releases/platform-tools )

  • Jaime gomez

    El equipo quedo bloqueado en fastboot cuando paso a recovery se qyeda en pantalla blanca, cuando ejecuto flash system en fastboot me aparece partition not found, si ejecuto fastboot reboot fastboot me sale tarjeta no encontrada ,si ejecuto flashall me sale android product no found estoy bloqueado en fastboot el pc me reconoce el equipo pero sale carpetas vacias en blanco realme x50 5g rmx2051 con los botones siempre reinicia en fastboot si me puedes alludar gracias

  • Buen dia, deseo un apoyo para la solucion al problema al fastboot flash recovery twrp.img
    al ejecutarlo me da la siguiente respuesta.
    remote: this partition doesn`t exist

  • fastboot reboot fastboot
    after this command, fastboot devices not showing for fastboot flash command

  • Hi, I followed the whole tutorial yet still getting the same error.