Modern Xiaomi smartphones are often equipped with an impressive amount of built-in storage, but over time even 128 or 256 GB can be busy. 4K-Video, heavy games and huge music libraries: standard installation of applications on a memory card in new versions MIUI Often unavailable or not working properly, leading users to look for deeper storage management techniques.
Fortunately, there is a possibility of forced physical union. SD-System partition cards, turning an external drive into a full-fledged extension of internal memory, a process known as Adoptable Storage, allows the system to perceive the card as an integral part of the smartphone, which allows you to install any application and system data on it. However, unlike simple file transfer, this procedure requires accuracy and an understanding of the risks involved.
Before you start manipulating, you need to realize that with the standard tools of the Settings menu, it is almost impossible to make a full-fledged partition merge on Xiaomi global firmware. You will need access to debugging over USB and a computer with an installed set of ADB tools. Ignoring the quality requirements of the memory card can lead to data loss or unstable operation of the device, so preparation is a key stage of success.
Preparation of equipment and selection of memory card
The success of the memory integration operation depends on the quality of the storage device used. Xiaomiβs built-in memory runs at high speeds, and if you plug in a slow card, the system interface will start to slow down and applications will run longer. It is recommended to use UHS-I or UHS-II cards with a speed class of at least A1 or A2.
Make sure to back up all important data from the memory card, as all information will be permanently deleted during the formatting process. Also make sure that the battery charge of the smartphone is at least 60% to avoid sudden shutdown during the critical partition redistribution phase. Connect the device to the computer with original or quality cable.
To work, you'll need to install a minimum set of drivers and Google's Platform Tools utility on your computer, which is the official tool that allows you to send commands to your device via the command line interface, and without this software, you'll be shutting down hidden memory management functions.
Why aren't old cards good?
Configure debugging over USB and install ADB
The first step in activating hidden features is to turn on the developer mode. Go to Settings β About Phone and quickly click on the MIUI version seven times. After the message "You became a developer" appears, go back to the main settings menu and find the option Additional β For developers.
In the menu that opens, you need to activate the debugging slider on USB. When you connect your smartphone to your PC, you will see a request for debugging permission on the screen β be sure to tick "Always allow from this computer" and confirm the action. Now the device is ready for the command cue.
Download the SDK Platform-Tools archive from the official Android developer site. Unpack it to the root of the disk (for example, in the C:\platform-tools folder) so that the path does not contain Cyrillic characters. Open the command line in this folder and enter the adb device command. If a device with a serial number appears in the list, the communication is established successfully.
βοΈ Verification of readiness for modification
It's important to understand that the commands are entered case-sensitively, and a single-letter error can cause the command to fail. If the computer can't see the phone, try replacing it. USB-cable or port, as some cables only support charging, but not data transmission.
Formatting the map as an internal storage
The most critical point is the command that forces Android to format the card and create a file system compatible with system requirements. In the command line, type in the adb shell to go to the device shell. Next, use the sm list-disks command to find out your card ID (usually it looks like disk:179.64).
For formatting, use the sm partition disk:XXX private command, where XXX is your card ID. Once you do this, the system will overwrite the card structure, making it unreadable for ordinary card readers without special encryption keys.
β οΈ Note: Once you execute the sm partition command, all the data on the card will be destroyed. If you try to remove the card and paste it into another phone or computer, the system will require formatting, since the data is encrypted with the key of a particular device.
If it's a success, you'll see in the Warehouse menu that the total memory has increased, but the system may not show the card as a separate logical disk. Now it's part of a single storage pool. Some versions of MIUI may hide this fact from the user, but applications can already be installed on a new volume.
π‘
Use the sm list-disks command before formatting to make sure the system sees the card correctly and doesnβt confuse the disk identifiers.
Transferring applications and data to a new volume
Once memory is combined, the system does not always automatically transfer all applications to the map. Often requires manually running this process or using special commands to force it to move. Go to Settings β Applications, select a heavy application, and check if the Change button appears in the storage section.
If the standard interface does not allow you to move the application, you can use the pm move-package command. To do this, first find out the name of the package (for example, com.example.app) and the ID of the target storage command pm get-max-storage-disk.
adb shell pm move-package com.example.app disk_uuidThis method allows for flexible management of data distribution, freeing up precious built-in space for system processes that require high response speeds. Moved applications will work normally, but their removal will now occur along with the cleaning of the map.
| Parameter | Built-in memory | SD-map (after merger) |
|---|---|---|
| Reading speed | High (up to 500 Mb/s) | Medium (up to 100 Mb/s) |
| Reliability | Tall. | Depends on the quality of the card. |
| Possibility of replacement | No. | Only with data loss. |
| Encryption | Hardware. | Software (device key) |
π‘
Memory integration makes the card an integral part of the system, so removing the drive will cause the displaced applications to fail.
Possible problems and ways to solve them
Users may encounter a number of specific problems during the operation of combined memory, one of the most common being a message of damage. SD-This often happens if you've used a low-quality card or expired cell overwriting.
If your smartphone is slow, try clearing the system cache or resetting your application settings. In rare cases, re-formatting the map through the storage settings menu helps, but this will require deleting all data completely, and there may be conflicts with some MIUI protections that can block writing to external partitions.
β οΈ Warning: Do not remove the memory card while the phone is on. Since the system considers the card to be part of the internal drive, abrupt extraction can cause a critical file system error and require a complete reset of the smartphone.
Use utilities like SD Insight or built-in speed tests to diagnose the condition. If the write speed drops below 10 MB/s, it is advisable to replace the drive with a more productive one, since this directly affects the speed of the entire interface.
Return to factory storage settings
If you decide to abandon the idea of combined memory or sell the card, you need to return it to its original state. β Storage select your card and click "Format as portable storage." The system will warn you of data loss - confirm the action.
After that, the map will be available for reading on computers and other devices again, and all applications that have been moved to it will stop working and require reinstallation, a routine that completely cleans the partitions created by the sm partition command.
In some cases, if standard formatting is not available, you have to reset your smartphone completely via the Recovery menu, which is guaranteed to remove all encryption keys and return the device to the βout of the boxβ state, after which the card will be perceived as normal.