You try to install an app, take a photo, or upgrade your system, but Xiaomi stubbornly makes a mistake: "Not enough memory," and the storage settings show that 5-10 GB is free, or more. What's the catch? Why is the system lying, and how do you make the phone work properly?
This problem is familiar to Redmi, POCO and Mi owners of all generations, from the budget Redmi 9A to the flagship Xiaomi 14 Ultra. The error is not only due to physical space shortages, but also for hidden reasons, from MIUI firmware bugs to cache malfunctions. We have dismantled 7 key reasons and collected working solutions from basic to advanced, including commands for ADB.
Importantly, if you see a message that says, "Not enough memory to update," this is a separate case, because it's associated with the /cache partition and requires a different approach, and we'll talk about it in a special block.
1. Why is Xiaomi lying about free memory?
Your smartphone shows 8 GB of free space, but gives an error when installing an application weighing 200 MB. This is not a glitch - this is how the storage markup in MIUI works. Memory in Xiaomi is divided into:
- π System partition (/system) β firmware, kernel, preinstalled applications. Here, the user will not change anything.
- π± User section (/data) is your files, applications, settings, and that's what you see in the storage settings.
- π Cache partition (/cache) β temporary files for updates and system operation, often causing errors.
- π‘οΈ Reserved space β MIUI blocks ~1-3 GB of "pro-reserve" for stable operation.
When you try to install an app, the system checks not only for free space in /data, but also for:
- β οΈ Available volume in /cache (if it is clogged, updates and installation APK are blocked).
- π Memory fragmentation (if there are many small files, the system may not see the free blocks).
- π File system limitations (on Xiaomi with F2FS or ext4 this is more common than on exFAT).
β οΈ Warning: If you use a SD- card as internal memory (Adoptable Storage function), an error may occur due to a slow write rate to the card. MIUI blocks operations if the speed is below 10MB/s.
To know exactly where the memory is leaking, check:
- Go to Settings β About Phone β Memory and see the usage schedule.
- Open Settings β Applications β Application Management and sort by size.
- Use third-party analyzers, such as Files by Google or SD Maid.
2. Top-3 memory eater on Xiaomi (and how to stop them)
Even if you don't install games, the memory on Xiaomi melts like snow in the sun.
| Source of the problem | How much does it eat? | How to clean up |
|---|---|---|
| ποΈ App cache (including Google Play Services) | 500MB to 3GB | Cleaning manually or through Settings β Memory β Clean cache |
| πΈ Photos and videos in Hidden Folder and Recycle Bin | Up to 5GB (not displayed in the gallery) | Open the Gallery β Cart or Hidden Albums |
| π¦ Residual files after deleting applications | 100-800 MB for each remote application | Use SD Maid or Adb shell pm clear |
| π Logs and dumps of the system (created when failures occur) | From 100MB to 1GB | Delete through Settings β Memory β Files β Logs |
The most insidious item is the Google Play Services cache, which can take up to 2 GB and not be cleaned by standard methods.
- Go to Settings β Applications β Application Management.
- Find Google Play Services (an icon with a multi-colored triangle).
- Click Warehouse β Clear the cache and Clear the data.
- Reboot the phone.
β οΈ Warning: After cleaning up Google Play Services, push notifications and geolocation may temporarily not work.
βοΈ Checklist for memory cleanup
3. Hidden folders and system debris: where to look?
MIUI creates dozens of hidden folders that are not visible in standard conductor.
- π /MIUI/backup/AllBackup - System backups (can weigh up to 3GB).
- π /Android/data/com.xiaomi.midrop/.cache is a file transfer cache over Mi Drop.
- π /Android/obb/ - Additional game files (sometimes left after the game is deleted).
- π /DCIM/.thumbnails β Photo and video thumbnails (can take up to 1 GB).
To see these folders:
- Connect your phone to your PC and use Windows/macOS Explorer.
- Or install a file manager with root support (like FX File Explorer).
- Enable the display of hidden files in the manager settings.
The critical folder is /MIUI/bug_report/, which stores error reports that can weigh 500 MB each, and delete all of the contents of this folder if you don't plan to send the log to developers.
If you are using Mi Cloud, check the /MIUI/backup/MiCloud/ folder. There may be outdated backups that duplicate data in the cloud.
How to remove system APKs without root?
4. Update error: "Inadequate memory in /cache"
If an error occurs when you try to update MIUI through Settings β System Update, the problem is in /cache. It is responsible for temporary firmware files and is usually fixed in size (500 MB-1 GB). If the update weighs more, the system blocks the installation.
Solutions (from simple to complex):
- Manually clean the cache: Go to Settings β Memory β Clear the cache. Select Clear the update cache (if there is one).
- Delete the update file: Open the file manager and go to /cache or /data/ota_package. Delete the file with the name update.zip or miui_*.zip.
- Update via Recovery: Download the full firmware package for your model from the official website. rename the file to update.zip and place it at the memory root. Press Volume Up + Power to log in to Recovery, and select Install update.zip.
β οΈ Warning: If you see E: Footers are wrong in Recovery, it means that the update file is corrupted. Download it again and check the checksum (MD5).
For models with unlocked bootloader, you can extend /cache through TWRP:
adb shell
twrp resize2fs /dev/block/bootdevice/by-name/cache5. Memory fragmentation: why 10GB is free but space is "no"?
The file system on Xiaomi (usually F2FS or ext4) fragments over time, which means that the free space is broken down into small blocks, and the system cannot write a large file (such as a game or update), even if the total space is enough.
Signs of fragmentation:
- π’ The phone slows down when copying files.
- π When installing an app, it writes βnot enough memory,β although free 3+GB.
- π After the reboot, a temporary vacant space appears.
How to fix it:
- PC Defragmentation: Connect your phone to your computer. Format internal memory in exFAT (if possible for your model); Use Defraggler for defragmentation (exFAT only).
- Factory Reset: This is a radical method, but it completely clears the fragmentation. backup your data via Mi Cloud or Google Drive. Go to Settings β Additional β Restore and Reset β Reset.
- Switching to ext4 (for advanced): Requires an unlocked bootloader and TWRP. The ext4 file system is less fragmented, but can be slower on budget models.
π‘
If you install/delete games frequently, use a SD- A2 card (such as SanDisk Extreme) as internal memory, which will reduce the load on the main storage.
6 MIUI Bugs: When the System "cannot see" memory
Sometimes, the βlack of memoryβ error is caused by software failures in MIUI.
- π After updating the firmware, the system does not correctly calculate the free space.
- π± Security is a security application that blocks access to the storage.
- π§ Mediaserver malfunctions (responsible for scanning files).
How to diagnose:
- Restart your phone in Safe Mode (press the power button β Restart in Safe Mode). If the error disappears, the third-party app is to blame.
- Check logs through adb logcat (look for lines with StorageManager or low storage).
- Turn off memory optimization in Settings β Battery β Memory optimization.
Methods of correction:
- π App Settings Reset Security: Go to Settings β Applications β Application Management β Security. Press Storage β Clear Data. Reboot your phone.
Re-registration of media files:
adb shell am broadcast -a android.intent.action.MEDIA_MOUNTED -d file:///sdcardThis command will force the system to re-scan the files.
Reverse to the previous version of MIUI:
- If the bug appears after the update, download the old firmware from Xiaomi Firmware Updater.
- Install it via Fastboot or Recovery.
π‘
If the error occurred after upgrading to MIUI 14/15, try to roll back on MIUI 13 - in the new versions there are bugs with the calculation of free space for budget models (Redmi 9/10, POCO M3).
7 Radical methods: when nothing helps
If you have tried everything but the mistake remains, it is time to move on to heavy artillery.
Method 1: Manually changing memory markup via ADB
This is a method that works for models with an unlocked bootloader, and allows you to extend the user partition /data to the system partition.
adb shell
su
umount /data
e2fsck -f /dev/block/mmcblk0pX # Replace X with your section number
resize2fs /dev/block/mmcblk0pXβ οΈ Danger: Incorrect commands can lead to data loss!
Method 2: Fastboot Flashing
Complete flashing removes all partitions and creates them again, removing fragmentation and markup errors.
- Download Fastboot firmware for your model from the official website.
- Unpack the archive and launch the script flash_all.bat (Windows or flash_all.sh (Linux/macOS).
- Wait until the phone is finished (the phone will reboot automatically).
Method 3: Replace internal memory (for advanced)
On some models (Redmi Note 8 Pro, POCO X3), internal memory (eMMC/UFS) may fail.
- π Memory disappears after rebooting.
- π’ Reading/write files takes forever.
- π The phone spontaneously restarts when the memory is filled.
The solution is to replace the memory chip in the service center, which costs between 3,000 and 8,000 β½ depending on the model.
β οΈ Warning: If you see errors in the adb shell such as mmc0: error -110 or I/O error on the device mmcblk0, this confirms a hardware memory malfunction. Repair is mandatory!