erfanoabdi / ErfanGSIs

Just a tool to make GSI out of firmware from any phone
GNU General Public License v3.0
491 stars 450 forks source link

<12> <N/A> "ext4_allocate_best_fit_partial: failed to allocate X blocks, out of space?" #201

Open starfoxdot64 opened 1 year ago

starfoxdot64 commented 1 year ago

Describe the bug

During the recompilation(?) process, make.sh only gets as far as creating the new image before failing with a size error. It doesn't finish, and leaves an empty IMG/log.

To Reproduce

Steps to reproduce the behavior:

cd ~/ErfanGSIs/testrom
sudo mount system.img root
sudo mount vendor.img root/vendor
cd ..
sudo bash make.sh testrom/root Generic AB output

Expected behavior

I was expecting the command to finish without issues, resulting in a working, mountable GSI image.

Logs

Because the script fails to complete properly, there are no running logs available, except for the following:

[jay@vmHost ErfanGSIs]
 $ sudo bash make.sh testrom/root/ Generic AB output
Create Temp dir
Making copy of source rom to temp
Resigning to AOSP keys
Patching started...
Using device specific overlays is not supported in this rom. Skipping...
Creating Image: Generic-AB-12-20230722-ErfanGSI.img
error: ext4_allocate_best_fit_partial: failed to allocate 556 blocks, out of space?
Remove Temp dir

The output folder contained this fingerprinting data:

Android Version: 12
Brand: Raspberry
Model: Raspberry Pi 4
Codename: rpi4
Build Type: lineage_rpi4-userdebug
Build Number: SQ3A.220705.004
Incremental: eng.tuomas.20230313.094444
Tags: dev-keys
Security Patch: 2023-02-05
Fingerprint: Raspberry/lineage_rpi4/rpi4:12/SQ3A.220705.004/tuomas03130931:userdebug/dev-keys
Description: lineage_rpi4-userdebug 12 SQ3A.220705.004 eng.tuomas.20230313.094444 dev-keys
Raw Image Size: 1.61 GiB

Smartphone (please complete the following information):

Additional context

I was using an ATV image, but this still happens on normal Android images - I tested with OneUI 2.5 for star2qlte (Galaxy S9+ G965U1).