In this guide, we will show you a couple of methods to fix the Not Enough Space to Resize Partition error while flashing a GSI ROM. The custom development is no longer as active as it once used to be. Moreover, the developers have also dropped the support for ROM development for numerous devices and only a few popular ones continue to enjoy these customized firmware.
There are quite a few reasons for the same, the primary among which is the complications and drawbacks introduced by Google. For starters, there have been numerous code base changes and with the QPR2 release, things have gotten all the more complicated. On top of that, the Play Integrity might fail on these custom ROMs [even if you manage to find a working fingerprint to pass this test, Google will patch it within the next few days].
Not to mention the fact that numerous OEMs now pack most of the features in their underlying OS skin, so the need for a custom ROM might not even arise in some cases. With that said, there are still quite a few devices that are hardly blessed with any ROMs as such. One reason for the same is its lack of popularity among users.
Since the developers build these ROMs for free and use their valuable time and resources, they are usually inclined towards building ROMs for more popular devices, and we can’t blame them either. But this then leaves the users out in the lurch. Well, not necessarily. You still have the option to flash a Generic System Image onto your device and welcome abode the likes of LineageOS, PixelOS, crDroid, and EvolutionX, among others.
However, since these aren’t specially made keeping in mind your device’s specifications, you might come across a few issues while installing them. The most common error among them is the Not Enough Space to Resize Partition error while flashing a GSI ROM. Fortunately, there exist quite a few nifty methods that could help you rectify this issue. So without further ado, let’s check them out.
Fix Not Enough Space to Resize Partition while Flashing GSI
It is recommended that you try each of the below-listed methods and then check which one spells out success for you. Moreover, please take s backup of all the data on your device. Thedroidwin wouldn’t be held responsible if something happens to your device and data after carrying out the below steps.
FIX 1: Flash Non-GApps Build
As opposed to GApps, the Vannila builds do not come with any Google apps, packages, and frameworks, As a result of this, they will be smaller in size [a difference of around 300-400MB] so you should consider flashing it onto your device and then check if it works out for you or not.
FIX 2: Flash Slim Build
Some ROM developers trim down some of its features and release a Slim variant, which will only have the important features, without many customization tweaks. This, when combined with its Vanills build, will be quite small in size when compared with its normal variant. Therefore, if your preferred GSI ROM has a Slim variant, then flash it onto your device and check if it fixes the Not Enough Space to Resize Partition error or not.
FIX 3: Delete Both Product Partitions
By default, you only have to delete the current active product partition so as to make space for the GSI ROM, which should be flashed in the same active system partition. In other words, if you have deleted the product_a partition, then the GSI ROM should be flashed in the system_a partition only.
If you end up flashing the GSI in system_b [after deleting product_a] or if you delete the product_a partition [and flash GSI in system_b], then in both these cases, there’s a high chance of you being greeted with the said error. To rectify it, you should consider deleting both the product partitions, which could be done as follows:
- To begin with, download and extract the Android SDK Platform Tools.
- Then enable USB Debugging and connect your device to the PC via USB.
- Now open the Command Prompt window inside the platform-tools folder.
- Now refer to the steps listed in this guide for flashing a GSI ROM on Android.
- Carry out the steps till STEP 12 from there until you reach the FastbootD Mode.
- Now delete the Product partitions A & B to free up some space on your device:
fastboot delete-logical-partition product_a fastboot delete-logical-partition product_b
- Then type in the below command to flash the GSI ROM:
fastboot flash system gsi.img
- Now type in the below command to format the data:
fastboot -w
- Finally, execute the below command to boot your device to the newly flashed OS:
fastboot reboot
- Check if it fixes the Not Enough Space to Resize Partition error while flashing a GSI ROM.
FIX 4: Delete COW Partitions
Some devices such as OnePlus have temporary COW partitions that end up taking quite a lot of unnecessary space in the super partition. Therefore, you should delete those COW partitions and then flash the GSI ROM. However, do note that once you plan to go back to stock, then you’ll have to manually re-create the COW partitions [as explained at the end]. So if that’s well and good, then let’s get started.
- To begin with, boot your device to FastbootD Mode.
- Now connect your device to your PC via a USB cable.
- Then download and extract Fastboot Enhance Tool.
- Go to the Partitions tab and type in COW partitions.
- Note down all these COW partitions somewhere safe.
- Then select all those partitions and then delete them.
- Now try flashing the GSI ROM and check the results.
When you are flashing the stock firmware, then it might happen that it would require to first recreate and flash the deleted logical partitions. For that, boot your device to FastbootD Mode and then use the below command to create and flash all those COW partitions that you have deleted [noted down in STEP 5 above]. Also, make sure to replace partition_name accordingly in the below command:
fastboot create-logical-partition partition_name 0
That’s it. These were the four different methods that should help you fix the Not Enough Space to Resize Partition error while flashing the GSI ROM. 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.