Xiaomi’s β€œlack of memory”: 7 real reasons and how to fix it

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:

  1. Go to Settings β†’ About Phone β†’ Memory and see the usage schedule.
  2. Open Settings β†’ Applications β†’ Application Management and sort by size.
  3. Use third-party analyzers, such as Files by Google or SD Maid.
πŸ“Š How often do you clear your memory on Xiaomi?
Once a week.
Only when there's a mistake.
Never cleaned.
Using automatic cleaning.

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 problemHow much does it eat?How to clean up
πŸ—ƒοΈ App cache (including Google Play Services)500MB to 3GBCleaning manually or through Settings β†’ Memory β†’ Clean cache
πŸ“Έ Photos and videos in Hidden Folder and Recycle BinUp to 5GB (not displayed in the gallery)Open the Gallery β†’ Cart or Hidden Albums
πŸ“¦ Residual files after deleting applications100-800 MB for each remote applicationUse SD Maid or Adb shell pm clear
πŸ”„ Logs and dumps of the system (created when failures occur)From 100MB to 1GBDelete 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.

  1. Go to Settings β†’ Applications β†’ Application Management.
  2. Find Google Play Services (an icon with a multi-colored triangle).
  3. Click Warehouse β†’ Clear the cache and Clear the data.
  4. Reboot the phone.

⚠️ Warning: After cleaning up Google Play Services, push notifications and geolocation may temporarily not work.

β˜‘οΈ Checklist for memory cleanup

Done: 0 / 5

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:

  1. Connect your phone to your PC and use Windows/macOS Explorer.
  2. Or install a file manager with root support (like FX File Explorer).
  3. 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?
1. Download ADB Platform Tools from Google. 2. Connect your phone to your PC and enable Debugging using USB (Settings β†’ About Phone β†’ Version MIUI β†’ 7 times click on version). 3. Enter the command: adb shell pm uninstall -k --user 0 com.xiaomi.mipicks Replace com.xiaomi.mipicks with an unnecessary application package (e.g. com.miui.analytics for telemetry). ⚠️ Don't delete system services - it will lead to a crash MIUI!

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):

  1. Manually clean the cache: Go to Settings β†’ Memory β†’ Clear the cache. Select Clear the update cache (if there is one).
  2. 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.
  3. 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/cache

5. 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:

  1. PC Defragmentation: Connect your phone to your computer. Format internal memory in exFAT (if possible for your model); Use Defraggler for defragmentation (exFAT only).
  2. 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.
  3. 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:

  1. 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.
  2. Check logs through adb logcat (look for lines with StorageManager or low storage).
  3. 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:///sdcard

This command will force the system to re-scan the files.

Reverse to the previous version of MIUI:

  1. If the bug appears after the update, download the old firmware from Xiaomi Firmware Updater.
  2. 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.

  1. Download Fastboot firmware for your model from the official website.
  2. Unpack the archive and launch the script flash_all.bat (Windows or flash_all.sh (Linux/macOS).
  3. 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!

FAQ: Frequent questions about memory on Xiaomi

❓ Why does the memory re-fill after 2 days?
Guilty: Autosave media in instant messengers (WhatsApp, Telegram, Viber). Disable in chat settings. Google Play Services cache - clear it once a week. MIUI logs - check the /MIUI/bug_report/ folder. Use Automate or Tasker to automatically clear the cache on schedule.
❓ Can I increase my memory on Xiaomi? SD-map?
Yes, but with reservations: πŸ”Ή Nana MIUI 12+ Adoptable Storage function (conversion) SD internal memory disabled. πŸ”Ή Nana MIUI 9-11 can be turned on via adb shell sm set-force-adoptable true. πŸ”Ή The speed will depend on the class of the card (needed). A2 or UHS-IIt's better to use. SD It's like a portable storage device and manually transfer files there.
❓ Why is the memory not released after resetting to factory settings?
The reason is an incomplete reset. MIUI sometimes leaves: πŸ—ƒοΈ a folder /MIUI/backup with backups. πŸ“ Residual files in /Android/obb/ and /Android/data/. πŸ”§ Mi Account settings tied to the device. Solution: reset your phone via Fastboot (complete cleaning of all partitions).
❓ How to check the health of internal memory?
Use the commands ADB: adb shell su cat /proc/mmc Look for lines with lifetime (reveals memory wear) and erase_count (number of rewrite cycles). Normal values: 🟒 lifetime A or B is memory in good condition. 🟑 lifetime C/D β€” started wear and tear, it's worth considering replacing. πŸ”΄ lifetime F β€” critical wear, change the chip urgently!
❓ What apps are the best to clean memory on Xiaomi?
Top-5 utility (checked on MIUI 14: SD Maid removes residual files and cache of system applications. Files by Google is a simple interface, finds duplicates and large files. CCleaner clears the cache and manages autoboot. 1Tap Cleaner quickly cleans the cache of Google Play Services. Storage Analyzer shows which folders take up the most space. ⚠️ Avoid "optimizers" like Clean Master - they often show false threats.