How do you do it? SD-Main memory card on Xiaomi with MIUI 12: Complete guide

Owners of Xiaomi smartphones on the basis MIUI 12 often face a shortage of internal memory, especially if the device is equipped with a modest 32 or 64 GB. The solution seems obvious: SD-But unlike earlier versions of Android, where Adoptable Storage was out of the box, the system was a big part of the system. MIUI 12, it's a nuanced process, and we'll figure out how to expand memory, what the system limits, and what alternative methods are there.

It is important to understand that Xiaomi deliberately limits the possibility of full data transfer to the Internet. SD-It's about security policy (the risk of losing data when you extract a card) and performance optimization. However, there are legal and semi-legal ways to get around these restrictions, from standard tools to the tools that are used. MIUI before manually mounting the section through ADB. In this article, we will consider all the current methods, their pros and cons, and also give recommendations for choosing the right memory card.

Why? MIUI 12 restricts the use of SD-maps as the primary memory

In Android versions before 6.0 (Marshmallow) SD-The cards were used exclusively as portable storage for photos, music and documents. 6.0 Adoptable Storage is a feature that allows you to format the card as an internal memory. MIUI 12 (Android-based 10/11) I removed this option from the interface:

  • โšก Productivity: SD-cards (even class) A2) slower-than-integrated memory eMMC/UFS, What's stopping apps.
  • ๐Ÿ”’ Security: When you extract the card, the applications installed on it stop working, which violates the stability of the system.
  • ๐Ÿ“ฑ Optimization MIUI: Xiaomi firmware is focused on using built-in memory for cache and temporary files.
  • ๐Ÿ’พ Fragmentation: Frequent entry on SD-The card reduces its resource (especially in cheap models).

However, the limitation is bypassed. For example, devices with MIUI Global or MIUI Europe sometimes retain the hidden option of formatting the card as internal memory via ADB. And on some models (for example, Redmi Note 8 Pro or POCO X3), the function is available in the Settings โ†’ Memory menu, but it does not work stable.

โš ๏ธ Note: After formatting SD-As internal memory, it cannot be used on other devices without completely erasing data, and some applications (such as WhatsApp or bank clients) may refuse to work with an external drive.

Official method: transfer data through the settings MIUI 12

The safest method is to use built-in tools MIUI transfer files and parts of applications to SD-It's not going to make the card a "primary memory" in the full sense, but it's going to help make room in the built-in storage.

Instructions:

  1. Put it in. SD-card to slot (if your model supports hybrid slot, make sure you are not busy) SIM-card).
  2. Go to Settings. โ†’ Memory.
  3. Press on. SD-map โ†’ Format as a portable storage (if the card is new) or Transfer data.
  4. Select the file types to transfer: photo, video, audio or documents.
  5. For applications: go to Settings โ†’ Annexes โ†’ Manage applications, select the desired and click Transfer to SD-Card (not available for all programs).

Limitations of the method:

  • ๐Ÿšซ Not all apps support portability (especially system and games).
  • ๐Ÿ“ Only user data is transferred, not the user itself. APK-file.
  • ๐Ÿ”„ When you remove the map, the transferred applications will stop working.

โ˜‘๏ธ Preparation SD-map

Done: 0 / 4

Alternative method: formatting SD-As a memory, internal memory is ADB

If the official method is not suitable, you can use the hidden Android feature via ADB (Android Debug Bridge), which works on most Xiaomi devices with MIUI 12, but requires activation of the developer mode and connection to the PC.

Step-by-step:

  1. Turn on USB debugging: Go to Settings โ†’ About Phone. Tap 7 times on MIUI to activate Developer Mode. Go back to Settings โ†’ Additional โ†’ For Developers and turn on USB Debugging.

Connect your phone to your PC

Open the command line (Windows) or the terminal (macOS/Linux)

adb shell


sm list-disks

Remember the disk identifier (e.g., disk:179.64).

Formatting a card as an internal memory

sm partition disk:179,64 private

(Replace 179.64 with your ID)

Reset the device

Advantages of the method:

  • โœ… Full Memory Extension for Applications and Data.
  • โœ… Possibility of installing applications directly on the map.

Risks:

  • โš ๏ธ The card will be encrypted and tied to the device.
  • โš ๏ธ When you remove the card or reset the phone, the data will be lost.
  • โš ๏ธ Some apps (such as Google Pay) may not work.
What to do if ADB issues a file to partition disk error
Make sure that the card is formatted in FAT32/exFAT before the procedure. Try another one. USB-Reboot your phone and PC. If the error persists, the card may not be compatible with Adoptable Storage (try another model).

Choice SD-cards to be used as primary memory

Not every one. SD-The map is suitable for the primary storage, low-cost, low-speed write/read models will slow down the system:

CharacteristicsMinimum requirementRecommended option
Class speedClass 10 or UHS-IA2 (optimized for applications)
Capacity32GB128-256 GB (for long-term use)
ManufacturerAny known brand.SanDisk Extreme, Samsung EVO Plus, Kingston Canvas Go!
File systemFAT32 (up to 32 GB) or exFAT (over 32 GB)exFAT (supports files >4 GB)

Important: Class A1 cards are suitable for file storage, but for installing applications, you should choose A2 - they have a random write speed of at least 4000 IOPS. Also avoid forgeries: check the card for speed using applications like A1 SD Bench.

๐Ÿ“Š What? SD-You are using the card in your Xiaomi?
SanDisk
Samsung
Kingston
Another (write in the comments)
I don't use it.

Limitations and problems in use SD-maps as the primary memory

Even after successful formatting SD-And you can have a lot of problems with your internal memory cards:

  • ๐Ÿข Slowdown: Annexes to the SD-The card is run longer, especially if the class card is A1 lower.
  • ๐Ÿ”Œ Errors in Retrieval: The system can issue data corruption alerts if the card was retrieved without safely shutting down.
  • ๐Ÿ“ฆ Application incompatibility: Some programs (such as Netflix or Fortnite) block installation on external drives.
  • ๐Ÿ”„ Problems after update MIUI: After major updates, the system may "forget" the link to the SD-map, requiring re-formatting.

Decisions:

  • To speed up work, turn off animation in Settings โ†’ Additional โ†’ For developers โ†’ Animation scale (off).
  • Use only original cards with warranty โ€“ counterfeits often cause reading errors.
  • Before extracting the card, always click Safe Retrieval in the notification curtain.

โš ๏ธ Note: If, after transferring applications to SD-card they have started to fly out or are not updated, try clearing their cache in Settings โ†’ Annexes โ†’ [Title of the annex] โ†’ Warehouse โ†’ If that doesn't work, move the app back to internal memory.

Alternative ways to expand memory on Xiaomi

If none of these methods are suitable, consider alternatives:

  1. Cloud storage: โ›… Mi Cloud (5GB free) or Google Drive (15GB). ๐Ÿ“ Automatic upload of photos/video to the cloud through the Gallery โ†’ Settings โ†’ Cloud.
  2. OTG-accumulator: ๐Ÿ”Œ Connect the flash drive through USB-OTG Adapter (works on most Xiaomi models). ๐Ÿ“‚ Files can be opened directly from a flash drive, but applications cannot be installed.

Cleaning the system

  • ๐Ÿงน Use the built-in cleaner in MIUI (Settings โ†’ Memory. โ†’ Clean up).
  • ๐Ÿ—‘๏ธ Remove the app cache and unnecessary APK-Files from Google Files.

For users who are ready for radical measures, there is another option - unlock the bootloader and install custom firmware (for example, LineageOS or Pixel Experience), which has Adoptable Storage function without restrictions, but this voids the warranty and requires technical skills.

๐Ÿ’ก

If you often shoot videos in 4K, Set them apart from each other. SD-Recording high-quality video requires high speed recording (minimum) U3 or V30), Otherwise, there will be lags and cliffs of recording.

Frequent mistakes and their solutions

When you try to do SD-And the most common mistakes that people have with their primary memory card are the ones that they're going to get corrected:

Mistake.Reason.Decision
Command failed: Volume partition failedCard damaged or incompatibleFormat the card on PC in FAT32 and repeat the procedure
SD card is slowLow-speed card classReplace the card with a Class A2 or UHS-I model
Applications are not installed on the mapManufacturer or Android RestrictionUse ADB for forced transfer: adb shell pm set-install-location 2
The card is not determined after the rebootMounting failureReconnect the map or format it again

If none of the methods worked, check:

  • ๐Ÿ”ง Compatibility with your Xiaomi model (some devices only support certain file systems).
  • ๐Ÿ”„ Relevance of the firmware: update MIUI Up to the latest version through Settings โ†’ Updating the system.
  • ๐Ÿ› ๏ธ Card slot integrity: try inserting the card into another device to check.

๐Ÿ’ก

If your device does not support formatting SD-The memory of the card as an internal memory, even ADB, The only working options are using the card as a portable storage or buying a smartphone with a large amount of internal memory.

FAQ: Answers to Frequent Questions

Can we do this? SD-Main memory card on all Xiaomi models with MIUI 12?
No, not all. On some devices (e.g. Redmi 9A or POCO M3), Adoptable Storage is locked at the firmware level. Check your model's support on the XDA Developers or 4PDA forums.
What happens if you take it out? SD-A card formatted as internal memory?
The applications installed on the card will stop working, and the system will give an error. When you reconnect the card, the data can be restored, but there are no guarantees. Always use Safe Retrieval.
How to get it back SD-map to its original state after use as internal memory?
Connect the card to your PC and format it into FAT32 or exFAT via Disk Management (Windows) or Disk Utility (macOS).
Can I install MIUI 13 or 14 to circumvent the restrictions?
No, in the newer versions. MIUI restriction SD-In addition, since Android 11, Google has tightened security policies for external drives.
Which applications cannot be transferred to SD-map?
As a rule, these are system utilities, widgets, applications with DRM-protection (e.g. Netflix, Amazon Prime Video) and banking clients (e.g. Sberbank Online or Tinkoff).