Modern Xiaomi, Redmi and POCO smartphones often feature a memory expansion slot that allows users to store thousands of photos, videos and apps. However, there are situations where it is necessary to force an external drive to be disabled by software before it is physically removed or simply to free up system resources. Mishandling the file system can lead to loss of important data or damage to the directory structure.
Unmounting the storage in the MIUI or HyperOS shell is simple enough, but hidden from the eyes of the inexperienced user in the depths of the settings menu. Secure extraction ensures that no writing process is interrupted, which is especially important for applications using the database on an external medium. Ignoring this step can lead to read errors in the future.
In this article, we will take a look at all the available methods for disabling a memory card, from standard system settings to advanced diagnostic methods, how to put the drive to rest to safely remove it from the slot, and what to do if the system writes that the device is occupied.
Why you need a software disabling drive
Many users are used to simply pulling a memory card from a working device, relying on the system to caching data. However, in an Android environment, and in MIUI in particular, background processes can record logos, save photos or update the application cache to an external medium.
Software shutdown, or unmounting, sends a signal to the system that all I/O operations have been completed, and then the operating system marks the partition as inactive, stopping power to the card controller in the slot, a critical step in maintaining data integrity, especially if you use the drive to install applications or as internal memory.
β οΈ Warning: Never remove a memory card while the storage activity indicator is flashing or if you know that the file is being downloaded or copied.
There are also times when the drive itself gets incorrect: artifacts appear, files stop opening, or the phone starts to hang, in which case a temporary software shutdown allows the system to stop polling the faulty device, returning the interface to speed until you replace the card with a new one.
Standard method through storage settings
The most reliable and correct way to disable an external drive is to use the built-in operating system tools.The path to the desired option may vary slightly depending on the version of Android and the Xiaomi shell, but the logic remains the same for all devices of the brand.
First, you need to go to the main settings menu, find the partition that controls the memory of the device, which is often called About Phone in modern firmware versions, or is placed in a separate item called Memory, and this is where you can see the full information about occupied and free space.
βοΈ Safe shutdown algorithm
Once you go to the drive management menu, you will see a button that may be called βDisableβ, βExtractβ or have an appropriate icon, and clicking on it will initiate the unmounting procedure, and the system will warn you that some applications may stop working because they will lose access to their data.
After confirmation of the action, the card icon in the notification curtain will disappear, and in the settings menu the status will change to the following Β«SD-The card is not connected, or something like that, and now the physical extraction is completely safe, the logical shutdown is complete, and the currents on the slot contacts are no longer applied.
Use of USB mode and debugging
There are situations where the standard menu is not available or blocked by system errors, in which case you can try to turn off the power of the slot via USB connection modes. This method is less obvious, but sometimes effective when the memory controller freezes.
Connect your smartphone to your computer through USB-In the mode selection menu that appears (usually pops up at the bottom of the screen or in the notification curtain), select the option βCharge onlyβ. In some cases, this action causes the system to reconnect all external interfaces, including the microSD slot.
A more advanced method involves using a developer mode. If you have USB debugging enabled, you can try changing the USB configuration, which can cause the memory controller to temporarily reset, but this requires caution and an understanding of how data protocols work.
adb shell am broadcast -a android.intent.action.MEDIA_EJECTThe command above, which is executed via ADB (Android Debug Bridge), emulates a system media extraction event, which is the software analog of pressing the "Extract" button in the interface. If the phone is connected to a PC and debugging is allowed on it, this command will force the card to be unmounted even if the phone interface is not responding.
Formatting as an internal storage device
One of the features of Android is that it combines an external memory card with the phone's internal memory, which is encrypted and becomes an integral part of the system, and it requires a special approach to disabling it, since it stores application data and settings.
If you decide to disable a card that is running in internal storage mode, the system will warn that all applications installed on it will stop running. Data encryption binds the card to a particular device, so simply moving it to another phone without formatting will not work.
| Parameter | Portable mode | The "Internal" mode |
|---|---|---|
| Access to PC | Aye (via cable) | No (formatting required) |
| Transfer to another phone | No restrictions. | Impossible without resetting |
| Application speed | Depends on the card. | Optimized by the system |
| Security of data | Basic | High (encryption) |
To turn off the card in this mode, you first need to transfer all the data back to the internal memory of the smartphone through the storage settings menu, only after freeing up space and transferring files, the system will allow you to unmount the drive, which can take a long time depending on the amount of data.
What happens when you format?
Diagnostics and Solving Disconnection Problems
Often, users are faced with a situation where the system says "Failed to retrieve" or "Device is busy," which means that some background process or application holds an open file on the memory card, and it is difficult to find the culprit by standard means, but you can try to close all working applications.
Try closing all running programs through the multitasking menu. If that doesn't work, turn on flight mode. Sometimes network services, such as synchronizing a gallery or downloading torrents, block access to files. The mode flies network activity and can free up a resource.
β οΈ Warning: If the system persistently refuses to disable the card, do not remove it by force. Try to reboot the phone with the card already inserted, and then immediately after turning on, until heavy services start, try again to perform the procedure of disabling.
In extreme cases, if the card is physically damaged or its controller is gone in protection, the software shutdown may not work, in which case the phone may freeze when trying to access the memory menu, the only way out is to completely turn off the smartphone before removing the card, which is a less convenient but safe method.
π‘
If the memory card often causes shutdown errors, check its status on the computer using the h3testw utility or CrystalDiskInfo. This will help identify broken sectors before data is lost.
Physical extraction and care of the slot
Once you have successfully completed the software shutdown, you can move to the physical part. The card slot in Xiaomi smartphones is usually combined with the slot for the second. SIM-Removal will require a special paper clip that comes with a kit, or a thin needle.
Find a hole on the end of the device (usually at the bottom or top). Light pressure with a paper clip will cause the tray to extend. Be careful: do not exert excessive effort to avoid damaging the mechanism. Mechanical damage to the contacts can make the slot unusable in the future.
Once you take out the tray, remove the memory card, holding it by the edges. Try not to touch the golden contacts with your fingers, as fatty traces can oxidize over time and worsen the connection. Before re-installing, make sure that the contacts are free of dust or pile.
Installation is done in reverse order: insert the card into the tray, keeping the cutout shape, and gently push the tray into the phone before clicking. Once turned on, the system automatically detects a new drive and prompts it to be configured. If you just removed the card to transfer files, after returning it will be available immediately.
π‘
The rule is, always do software unmounting before you physically extract it, which extends the life of the file system and keeps your data intact.