How to connect SD card and internal memory on Xiaomi: the complete guide

Xiaomi smartphone owners often face a lack of built-in storage, especially on the budget models of the Redmi series, where the memory is limited to 32 or 64 gigabytes. Installing a microSD card becomes the obvious solution, but the standard use of a flash drive as a portable drive does not allow you to install applications on it or transfer system data. The combined memory on Android, known as Adoptable Storage, allows the system to perceive external media as part of internal storage, solving the problem of space shortage.

However, starting with the MIUI 10 shell and later, Xiaomi, following Google’s policy, hid this feature from the user interface. Now activating the mode requires the use of special commands via a computer. In this article, we will discuss in detail how to safely connect the SD card and internal memory on Xiaomi, what risks exist and how to properly prepare the device for the procedure.

Before you start technical manipulation, you need to understand the difference between conventional formatting and combining. Standard mode leaves the card available for other devices, but limits its functionality. Adoptable Storage mode encrypts the card and binds it to a particular smartphone, making it impossible to read data on another device without re-formatting. This is a critical point: once combined, the card will become unreadable on a PC or other phones without a complete reset.

Preparation of equipment and software

To successfully perform the procedure, you will need not only the Xiaomi smartphone and memory card, but also a personal computer running Windows, macOS or Linux. The quality of the microSD card used is crucial: it requires high speed write and read to work as a system memory. It is recommended to use UHS-I or UHS-II cards marked Class 10, as slow cards will lead to noticeable brakes in the operation of the interface and applications.

You need to install ADB drivers on your computer, which are tools that allow you to send commands directly to the Android operating system. Without activated USB debugging mode and ADB installed, you can't make a memory connection. Also, make sure that the USB cable is working and is able to transfer data, not just charge the device.

The most important step in preparation is to back up all the data, and the process of combining requires formatting the map, which means completely removing all files, photos and videos on it, and while the risk is minimal, any manipulation of system partitions poses a theoretical threat to the stability of MIUI.

⚠️ Warning: Before starting the procedure, be sure to copy all important files from the memory card to the computer. During the setup process, the card will be formatted, and it will be impossible to restore the data.

Check your Xiaomi battery charge. It should be charged at least 60-70%. interruption of the process due to battery discharge during formatting or data transfer can cause damage to the file system and the need to flash the device.

β˜‘οΈ Preparation for memory consolidation

Done: 0 / 5

Activation of the developer mode and debugging

The first step in setting up a smartphone is to turn on the hidden menu for developers. In the standard state, Xiaomi hides these settings from ordinary users. To access, go to the Settings menu β†’ About the phone and find the line MIUI Version. You need to quickly click on it 7-10 times in a row until a pop-up notice that you have become a developer appears.

Then, a new option will appear in the main settings menu, Additional β†’ For Developers (or just for Developers), and when you enter this menu, scroll down to the Debugging section. You need to activate the USB Debugging switch. The system will issue a risk warning β€” confirm the action.

When you connect your smartphone to your computer for the first time, you'll see a request on your device screen for debugging permission from that computer. Make sure you click Allow and tick Always Allow from that computer. Without that confirmation, the computer won't be able to send a command to merge memory, and the ADB terminal will give you an authorization error.

If the developer menu disappeared after the reboot, the procedure with clicking on the MIUI version must be repeated.In some versions of the HyperOS firmware or new MIUI, access to the formatting function may be further hidden, but activating debugging over USB remains a must for any deep system intervention.

Instructions for Memory Combination through ADB

After preparing your smartphone and installing the drivers on your PC, open the command line (cmd) or terminal in the folder with the ADB installed. Enter the command adb devices to check the connection. If the list shows the serial number of the device and the status of the device, then the connection is installed correctly and you can move to managing memory partitions.

To start working with the storage, enter the command adb shell sm list-disks. SD-The map that usually looks like disk:179,64 or similar. Write down this identifier, it will be used in subsequent commands instead of the actual path.

The next command is that you format the map directly and combine it with the internal memory, and the syntax is as follows:

adb shell sm partition disk:XXX,XX private 100

Instead of disk:XXX,XX, substitute your ID. 100 at the end means that 100% of the card volume will be given to the system storage. If you want to leave some space for photos and music in normal mode, you can specify a smaller value, for example, 50, but for full integration it is recommended to use the entire available volume.

⚠️ Warning: Once you enter partition, the device may freeze for a few seconds or the screen will go out. Don't turn off the cable or restart the phone at this point, the process of creating an encrypted partition is underway.

Once the command is successfully executed, the smartphone will automatically restart or restart the storage service. In the File Manager, the card will no longer appear as a separate drive, and its volume will be added to the total internal memory. SD-map.

What to do if the team is not executed?
If the terminal produces a "not a valid disk" or similar error, check the disk ID is correct. Make sure the card is formatted in FAT32 or exFAT before starting the procedure. Some write-protected cards (physical switch) can also block partition command.

Comparison of drive modes

It is important for users to understand the difference between standard card usage and Adoptable Storage mode to choose the best option for their needs. Below is a table showing the key differences between these two approaches in the Xiaomi ecosystem.

CharacteristicsPortable storage (Standard)Internal Memory (Adoptable)
Access to PCFull access without restrictionsImpossible (reset required)
Installation of applicationsOnly manually for each applicationAutomatically, as in the built-in memory
Speed of operationDepends on the class of the card.Priority, but depends on the map
Security of dataData is available on any deviceData is encrypted and linked to the device
Risk of data lossLow.High when retrieving the card

The standard mode is convenient for those who often change memory cards or transfer media files between devices, and the internal memory mode is designed solely to expand the space for installing heavy games and programs that normally occupy a critical system partition.

It's worth noting that MIUI sometimes misrepresents the total amount of memory after the merge, and the storage settings may indicate that 100% is occupied, even though there's still physical space, which is a visual interface bug that doesn't affect the actual operation of the file system.

πŸ“Š What mode of use SD You prefer cards?
Photo and Music Only (Portative)
For installation of applications (Internal memory)
I don't use an SD card.
I use cloud services.

Possible problems and ways to solve them

When combining memory, users may encounter a number of common errors, including the most common one when the card is damaged or not supported, often when using fake memory cards or low-speed cards, and Android can block the use of slow drives as a system partition to prevent interface lags.

Another problem is that you can't write a command to the terminal, and if ADB sees a device but the sm partition doesn't work, it might have blocked the function at the firmware level, and in these cases, it helps to use third-party launcher apps for ADB, like Bugjaeger, that can be installed directly on a smartphone and run a command without a computer.

  • πŸ“‰ Low speed: If the phone starts to run slower after the connection, the memory card is likely to be unable to handle the load (IOPS).
  • πŸ”’ Encryption error: If the encryption process fails, the card can become unreadable.The only way out is to format through the Xiaomi settings menu, which will lead to complete data loss.
  • πŸ“± Application conflicts: Some applications, especially banking and system utilities, may not work properly if their data is migrated to the Internet. SD-It is better to leave critical applications on the internal memory.

If the smartphone stopped loading after manipulating partitions, you need to enter Recovery mode. For Xiaomi, this is done by pressing the volume button up and the power button. In the Recovery menu, select Wipe Data, which will return the device to the factory state, but delete all user data.

⚠️ Note: Do not remove the memory card after combining until you have completed the unmount or format command through the settings. Physically removing the working card can cause the system to crash.

How to cancel the merger and return the card to its original state

If you decide to stop using the card as part of internal memory, the procedure can be canceled. β†’ Storage. It'll show the combined volume. Click on the name. SD-You can select Format, and the system will tell you that all data will be deleted, so confirm the action.

Once formatted, the card will become a portable drive again, all the applications that were installed on it will stop working and will have to be reinstalled again, and photos and documents saved to the encrypted partition will also be lost if you don't have backups beforehand.

In some cases, if the standard menu does not allow you to format the card (button is inactive), you can use the ADB command to divide:

adb shell sm partition disk:XXX,XX public 100

This command will force the card to be reclaimed as a public repository, but using the command line to reverse the process carries great risks, and it is preferable to use the regular MIUI interface tools.

πŸ’‘

For maximum performance, buy microSDXC memory cards labeled A1 or A2. These standards are specifically designed to run applications from external media.

πŸ’‘

Memory consolidation is an irreversible procedure for card data, but reversible for phone settings. Always back up important files before you start any partition manipulation.

Frequently Asked Questions (FAQ)

Can I combine memory on Xiaomi without a computer?
Officially, no, it's hidden in MIUI. However, there are third-party apps from Google Play (like Activity Launcher) that allow you to access the hidden system formatting menu, but using such methods is less stable and can lead to errors, so the ADB and PC method is considered the most reliable.
Will the phone work faster after memory is combined?
The process of combining does not speed up the processor or RAM, but if the internal memory has been filled by more than 90%, the release of the system partition by transferring the data to the memory. SD-Map can improve overall system responsiveness and application speed.
Will Xiaomi’s warranty work after such manipulations?
Using USB debugging and standard ADB commands is not a hack (root rights are not required) and should not formally void the warranty. However, if a device with a corrupt file system is brought to the service center due to incorrect card formatting, this can be classified as a software failure due to the user's fault.
What is the maximum card size that Xiaomi supports?
Most modern Xiaomi models support cards up to 256 GB and even 512 GB officially. In practice, 1 TB cards often work, if they are formatted into the exFAT file system.