Xiaomi smartphones based on firmware MIUI They organize file storage in a unique structure that often raises questions among users. Unlike pure Android, it has as standard directories (/DCIM/ For photos, and corporate folders like MIUI/ or Xiaomi/, If you can't find a downloaded document, a screen recording, or an archive from a messenger, the problem isn't with you, it's with the Xiaomi file system.
In this article, we will discuss in detail:
- π Where photos, videos, music and documents are physically stored on Redmi smartphones, POCO Xiaomi (including models with hybrid drives).
- π How to find hidden folders with backups, logs, and cache applications (including.nomedia and.miui).
- βοΈ Why do files disappear after an update? MIUI How to recover them without losing data.
- π± Differences in file storage on separate memory devices (internal) + Memory card) and combined (via Flex Storage).
We will pay special attention to the pitfalls: for example, why the Download folder can be duplicated in three places at the same time, or how to use the same file. MIUI It automatically sorts files by type, even if you didn't ask for it, and it's valid for all firmware versions, including: MIUI 14 and HyperOS.
1. Standard file storage structure on Xiaomi
Xiaomi file system follows the logic of Android, but with an additional layer of customization from the MIUI. All personal data of the user is stored in the root directory of internal memory β /storage/emulated/0/ (or /sdcard/ This path is displayed in any file manager as "Internal drive".
The main folders that you will see immediately:
- π· DCIM/ β Photos and video from the camera (including screenshots in the subfolder) Screenshots/ and screen recording ScreenRecords/).
- π΅ Music/ β audio files added to Mi Music player (but not all downloaded tracks are automatically included here!).
- π₯ Download/ β files downloaded via browser or messengers (but not always β see the section on duplicates).
- π Documents/ β documents created in office applications (for example, WPS Office or Google Docs).
- π MIUI/ β service data firmware: wallpaper, sounds, backups (backup/) logistic (debug_log/).
- π€ Android/ β application data (cache, settings, OBB-game files. Subfolder data/ It's hidden here without root rights.
Xiaomi automatically creates.nomedia files in some folders (for example, in the case of the.nomedia file, MIUI/camera/), To see their content, you either need to delete.nomedia or use a file manager with the option "Show hidden files" (for example, Mi File Explorer or Solid Explorer).
2 Where are photos and videos stored: folder analysis DCIM and MIUI
Photos and video files on Xiaomi are distributed in several folders depending on the source:
| File type | Storage folder | Notes |
|---|---|---|
| Photo from the main camera | DCIM/Camera/ | File names: IMG_YYYYMMDD_HHMMSS.jpg. The folder can be divided into subfolders by date. |
| Screenshots | DCIM/Screenshots/ or Pictures/Screenshots/ | Format: PSC_YYYYMMDD_HHMMSS.png. On the new versions MIUI screenshots are duplicated in MIUI/screen_capture/. |
| Screen recordings | DCIM/ScreenRecords/ or Movies/ScreenRecords/ | Format: SCR_YYYYMMDD_HHMMSS.mp4. Videos with sound are saved only if the option is enabled in the recording settings. |
| Photo from messengers | Android/data/[package]/files/ | For example, for WhatsApp: Android/data/com.whatsapp/media/WhatsApp Images/. Folders hidden without root. |
| Backup photos | MIUI/backup/AllBackup/ | Created by using the βLocal Backupβ function in Settings β The phone. β Backup. |
Critical Feature: If you use cloud backup MI Cloud, then the miniatures of the photos can be stored in MIUI/miui_cc/thumb/, The originals are in the cloud, and if you reset your phone without saving those files locally, you risk losing high-quality versions of your images.
β οΈ Attention: Folder DCIM/.thumbnails/ It contains cached previews of a photo, and removing the contents of the photo won't hurt the originals, but it can slow down the gallery the next time you open it. MIUI/thumb/ β Previews are stored there for system needs (for example, for lock wallpapers).
Duplicates and Ghost Folders: Why Files Appear in Multiple Places
Many Xiaomi users are faced with a situation where the same file is displayed in different folders. MIUI File Manager and Media Provider: Here are the main reasons for duplicates:
- π Media indexing: The system scans files and creates virtual links in the database, for example, a photo from WhatsApp can be displayed in the database. DCIM/, ot Pictures/, Although physically only one place is located.
- π Symbolic references: MIUI It uses simlinks to be compatible with old apps. /sdcard/ actually leads to /storage/emulated/0/.
- ποΈ Automatic Sorting: The file manager groupes files by type, even if they are stored in the same folder. Download/ It can be duplicated in the virtual folder "Documents".
- βοΈ Cloud Services: Files from MI Cloud or Google Drive can be cached locally to Android/data/com.miui.cloudservice/ and displayed as "local".
To find the physical location of the file:
- Open Mi File Explorer (or any other root-access manager)
- Find the file through a search.
- Click on three dots next to the file β "Information" β Look at the "Location" field".
- If the path begins with /storage/emulated/0/, This is the real location. /root/ or /data/ β No file is on the user section.
π‘
To disable automatic file sorting by category in Mi File Explorer, go to Manager Settings β species β Turn off Categories, it'll only show the physical structure of the folders.
4 Hidden folders and system data: what can be deleted and what can not be deleted
At the root of Xiaomi's internal memory, there are many hidden folders that don't show up by default, some that can be safely cleaned, and some that are critical to the system. Here are the main directories and their purpose:
| folder | Appointment | Can I remove it? |
|---|---|---|
| .estrongs/ | File manager cache ES File Explorer (if installed). | Yes, but it is better to clean through the app settings. |
| .miui/ | Firmware configuration files, including theme and animation settings. | No, it will cause interface failures. |
| Android/obb/ | Additional game data (graphics, levels, etc.) | Yeah, but the games will have to be re-downloaded. |
| MIUI/debug_log/ | System error logs for debugging. | Yeah, but they're automatically regenerated. |
| lost.dir/ | Recovered files after file system failures. | Yes, if files are not needed (usually fragments of corrupted data). |
How to turn on the display of hidden folders:
- Open the Mi File Explorer.
- Slip on three horizontal lines (menu) β "Settings".
- Activate the option "Show hidden files".
- Root rights are required to access system folders (e.g. /data/).
β οΈ Attention: Folder MIUI/backup/AllBackup/ Contains local backups created through Settings β The phone. β Backup. Deleting files from here won't make room in the Others section (they're counted as system data), but it will make it impossible for you to reset after the reset. To really clear the place, use the Cleanup feature in the backup menu.
Remove the app cache in Settings β Annexes β [Select an application] β Memory. β Clear the cache
Clear the file. Download/ from unnecessary files
Remove the old ones APK from Download/ or APK/
Clear the cache of the gallery in DCIM/.thumbnails/
Remove logs from MIUI/debug_log/ (unless necessary for diagnosis)
-->
5. Features of storage on devices with a memory card
On Xiaomi smartphones with microSD support (for example, Redmi Note 10 Pro or POCO X3 Pro) the file system works differently than on models without a card slot:
- π± Separate Memory: Internal storage and memory card are displayed as two separate devices. apps by default save data to internal memory, but you can transfer it manually.
- π Flex Storage: Available on some models (e.g. Mi Max 2) The memory card is formatted as part of the internal storage and the system distributes files automatically.
- π Adaptive storage (MIUI 12+): The system analyzes usage and suggests transferring rarely used files to a memory card (memory optimization function in Settings). β Memory).
How to transfer files to a memory card:
- Open the Mi File Explorer.
- Select files or folders (long press).
- Slip "More" β "Move in".
- Select a memory card (usually displayed as a /storage/XXXX-XXXX/, where XXXX β ID map).
- Please note: some system files (e.g., confirm the transfer, OBB Games cannot be moved without root.
Important for memory card users: If you use the card as internal memory (the option is βFormat as internal storageβ), then:
- The card will be encrypted and will not be read on other devices.
- When you retrieve the card without prior "Safe Retrieval" (in notifications) the data may be damaged.
- Some apps (like WhatsApp) wonβt be able to save media to such a map.
What to do if the memory card is not identified?
6. Search and recovery of lost files
If the files are missing after the update MIUI, If you reset or accidentally delete the settings, you can try to restore them:
Step 1. Check the basket.
- Open the Mi File Explorer β "Cart" (icon in the bottom menu).
- The files are stored there for 15 days, after which they are permanently deleted.
- For recovery, select files β "Restore".
Step 2: Use the built-in recovery MIUI:
- Go to Settings β About Phone β Backup β Local Backup.
- Check if there are any fresh backups in the MIUI/backup/AllBackup/.
- If yes, restore the data from there (but note that this will overwrite the current settings).
Step 3: Connect your phone to your PC and use recovery software:
- π₯οΈ Recuva (for Windows) β a free utility with support for Xiaomi.
- π₯οΈ DiskDigger (for Android) β requires root rights for deep scanning.
- π₯οΈ EaseUS MobiSaver β a paid solution with a high recovery rate.
Step 4: Check the cloud backups:
- π₯οΈ MI Cloud: Settings β Accounts. β Mi Cloud β Data recovery.
- π₯οΈ Google Photos: Open the app β "Recycle bin" (files are stored for 60 days).
- π₯οΈ Google Drive: Check the "Backups" section".
β οΈ Note: If you use device encryption (optional in Settings) β Lockdown and protection β Encryption, and you can't recover files from resets without an encryption key, and in that case, even professional software like R-Studio won't help.
π‘
The faster you start recovering from deletion, the better the chances of success, and when you write new data to the disk, old files are overwritten, and their recovery becomes impossible.
7 Storage optimization: how to free up space without data loss
If the internal memory is full and the memory card is not, you can optimize storage without deleting important files.
1. Cleaning of cache and unnecessary files:
- π§Ή Go to Settings. β Memory. β Cleaning (or βFree space").
- π§Ή Select Deep Clean to delete temporary files, cache, and residues from remote applications.
- π§Ή Manually check the folders: Android/data/ β Application cache (can be cleared for specific applications in their settings). Download/ β arch-load. MIUI/debug_log/ β logistic.
2. Transfer applications to a memory card (if supported):
- Go to Settings β Applications β Application Management.
- Select the application β "Memory" β "Change" (if the option is active).
- Note that not all applications support portability (especially system applications).
3. Using cloud services for automatic cleaning:
- βοΈ Enable Autoboot in Google Photos (Settings) β Backup and synchronization).
- βοΈ Set up "Memory Optimization" in MI Cloud (Settings) β Mi Cloud β Optimizing memory).
- βοΈ Install Files by Google β the app offers to remove duplicates and unnecessary files.
4. Compression of media files:
- πΈ Xiaomi Gallery can compress photos and videos without noticeable loss of quality: Open the album β highlight files β "More" β "Select quality (e.g., "High" instead of "Original").
- π₯ For video, use apps like Video Compress or InShot.