The internal memory of smartphones Xiaomi based MIUI often becomes a source of problems: it becomes clogged with unnecessary files, slows down the system or interferes with the transfer of data to the SD card. Many users want to completely disable the built-in storageto use only an external drive or reset the device to factory settings without unnecessary data. However, the standard Android settings do not provide a direct function for deactivating the internal memory - you can only format it as a portable device or hide it through system commands.

In this article we will look at three working methods: from simple formatting via Settings to use ADB and manual editing of system files. It is important to understand that completely disabling the internal memory may disrupt the operation of some functions. We will also explain in which cases this is really necessary, and when it is better to make do with alternative solutions - for example, moving applications to an SD card or clearing the cache. will lead to the loss of all data and may interfere with some functions MIUI. We'll also explain when it's really necessary and when it's better to use alternative solutions, such as moving apps to an SD card or clearing the cache.

If your goal is simply to free up space, it may be enough alternative methods without radical steps. But if you are determined to disable the built-in storage (for example, for testing or flashing), follow the instructions below, taking into account all the warnings.

๐Ÿ“Š Why do you want to disable the internal memory on Xiaomi?
To use only the SD card
To reset to factory settings
The device slows down due to full memory
Experiments with firmware
Another reason

1. When do you really need to turn off the internal memory?

Before moving on to the instructions, evaluate whether you really need it complete shutdown. In most cases, the problem is solved in less radical ways:

  • ๐Ÿ“ฑ Reset to factory settings โ€” if the goal is to clean the device, a standard one is sufficient Hard Reset (data will be deleted, but the memory will remain active).
  • ๐Ÿ”„ Transfer applications to an SD card โ€” MIUI there is a function Storage โ†’ Data transfer, but it does not work with all applications.
  • ๐Ÿงน Junk cleaning - tool Security โ†’ Cleaning Deletes cache and temporary files without risk to the system.
  • ๐Ÿ”ง Changing priority storage โ€”in some firmware you can specify the SD card as the default primary storage.

Disabling internal memory is justified in three cases:

  1. You use your smartphone as media player with an external drive and want to avoid writing data to the built-in storage.
  2. Prepare the device for flashing via Fastboot and you need to eliminate conflicts with memory partitions.
  3. Internal memory physically damaged (for example, read errors appear), and you want to switch to the SD card.
โš ๏ธ Attention: After turning off the internal memory Xiaomi it may stop booting or lose access to system files. This method is not recommended for everyday use!

2. Method 1: Formatting the internal memory as a portable device

The safest method is format internal memory so that the system perceives it as a removable drive. This will not disable it completely, but will only allow you to use the external SD card for data storage. The method works on most devices Xiaomi s MIUI 12 and newer.

Instructions:

  1. Open Settings โ†’ Memory.
  2. Tap on Internal memory (or Device storage).
  3. In the upper right corner, click on three dots (โ‹ฎ) and select Storage settings.
  4. Select Format as portable device.
  5. Confirm the action and wait for completion (takes 5-10 minutes).

After formatting, the internal memory will be appear as a separate drive, but system files will remain in place. This method is suitable if you want to divide the data, but are not ready for radical measures.

Back up important data

Charge the phone at least 50%

Make sure that the SD card is inserted (if you plan to use it)

Disable pattern/password protection (can be reset)-->

3. Method 2: Disabling via ADB (for advanced users)

If you you need full. deactivate internal memory, you will need to use ADB (Android Debug Bridge). This method is suitable for Xiaomi Redmi, POCO and other models based on MIUI, but requires an unlocked bootloader and rights root.

Step-by-step guide:

  1. Activate Developer mode: go to Settings โ†’ About phone and tap 7 times on MIUI version.
  2. Go back to Settings โ†’ Advanced โ†’ For developers and enable USB debugging.
  3. Connect your phone to the PC, install ADB-tools and run the command:
adb shell

su

sm set-force-adoptable true

Then format the internal memory as removable:

sm partition disk:179,64 private

After reboot, the internal memory will be disabled, but the device may lose stability.. To get everything back, use:

sm set-force-adoptable false
โš ๏ธ Attention: Incorrect ADB commands can lead to device brick. If you are not sure of your actions, use the first method or contact a specialist.
What to do if ADB does not recognize the device?

Make sure that the drivers Xiaomi are installed on the PC (download from the official website).

Try a different USB connection (the original cable is better).

Enable in the developer settings Allow USB debugging (safe mode).

Restart your phone and PC.

Method 3: Manually editing the fstab file (for root only)

To completely disable internal memory at the system level, you need to edit the file fstabthat is responsible for mounting partitions. This method requires. root access is only suitable for experienced users.

Instructions:

  1. Install a file manager with support root (for example, Root Explorer or Solid Explorer).
  2. Navigate to the path /etc/fstab.qcom (or /vendor/etc/fstab.qcom for new models).
  3. Find the line with /data and add the symbol in front of it # (comment out) Example:
# /dev/block/bootdevice/by-name/userdata /data ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check,formattable

Save the file, reload. the device. The internal memory will no longer be mounted, but the system may refuse to boot without it. To get everything back, delete the symbol #.

Method Complexity Required root access? Risk to the system Reversibility
Formatting as a portable device Low No Minimal Yes
ADB commands Medium Yes (for complete shutdown) High Yes
Editing fstab High Yes Critical Yes
๐Ÿ’ก

Before any manipulations with memory, create a full backup via TWRP or Mi PC Suite. This will help restore data if something goes wrong.

5. Possible problems and their solutions

Disabling internal memory can lead to the following errors:

  • ๐Ÿšจ Cyclic reboot โ€” if the system does not find the partition /data, the phone may constantly reboot. Solution: return the original settings fstab via TWRP.
  • ๐Ÿ“ต No network - some models Xiaomi store IMEI in the /datasection. If it is disabled, mobile communications will be lost. Solution: restore the backup nvram.
  • ๐Ÿ”‹ Rapid battery drain โ€”the system will constantly try to mount the disconnected partition. Solution: roll back the changes or use a custom kernel.
  • ๐Ÿ›‘ Error "No Command" - appears when the partition is damaged /data. Solution: flash the stock firmware via Fastboot.

If after turning off the memory the phone stops booting, try:

  1. Boot into Recovery Mode (hold Power + Volume Up).
  2. Select Wipe โ†’ Format Data (this will delete all data, but restore the partition).
  3. Reflash the device via Mi Flash Tool.
โš ๏ธ Attention: On some models Xiaomi (for example, Redmi Note 10 Pro or POCO X3 Pro) disabling the internal memory leads to loss of access to the camera - its data is stored in a protected section /data.

6. Alternative solutions: when you donโ€™t need to turn off the memory

In 90% of cases, instead of turning off the internal memory, it is enough:

  • ๐Ÿ—‘๏ธ Clear application cache โ€” in Settings โ†’ Applications select unnecessary apps and click Clear cache.
  • ๐Ÿ“ฒ Move applications to an SD card โ€”not all apps work, but they are suitable for games and instant messengers.
  • โ˜๏ธ Use cloud storage โ€” Mi Cloud or Google Drive automatically synchronize photos and documents.
  • ๐Ÿ”„ Reset settings to factory settings - deletes all data, but leaves working memory.

If the goal is increase memory, consider:

  • ๐Ÿ’พ SD card with support Adoptable Storage โ€”formatted as internal memory (but works slower).
  • ๐Ÿ”Œ OTG drive โ€”connect a flash drive via an adapter and use it as main storage.
๐Ÿ’ก

Disabling internal memory is a last resort. In most cases, clearing the cache, transferring data to an SD card or resetting settings is enough.

7. Common errors and how to avoid them

Users often encounter the following problems when working with memory on Xiaomi:

  • ๐Ÿ”„ "Could not format as a portable device" - an error appears if the memory encrypted. Solution: reset the settings or disable encryption in Settings โ†’ Security.
  • ๐Ÿ”Œ ADB does not see the device โ€”check if USB debugging is enabled and if the drivers are installed. On Windows, you may need to sign the driver manually.
  • ๐Ÿ“ฑ The phone does not turn on after editing fstab โ€”it means you have disabled the critical partition. Solution: flash the stock firmware via Fastboot.
  • ๐Ÿ“ The files remain on the internal memory despite the transfer โ€”some applications (for example, WhatsApp) are not transferred to SD card. Solution: use App2SD or manual copying.

To avoid errors:

  1. Always do backup via TWRP or Mi PC Suite.
  2. Check method compatibility with your model Xiaomi (for example, Redmi 9A and POCO M3 not all work ADB commands).
  3. Do not disconnect the memory if it is stored Mi account data - this may block access to the device.
โš ๏ธ Attention: On devices with MIUI 14 and newer, some system commands (sm partition) may be blocked. In this case, only manual editing fstab or flashing custom recovery will help.

FAQ: Answers to frequently asked questions

Is it possible to disable internal memory without root access?

Partially yes. You can format it as a portable device (method 1), but complete disabling requires ADB with root or editing system files. Without root, only cosmetic changes are available.

Will I void my warranty if I turn off the internal memory?

Yes. Any manipulations with memory sections ADB or root are considered a violation of the warranty terms. If the device is under warranty, use alternative methods. (clearing cache, resetting settings). Xiaomi. If the device is under warranty, use alternative methods (clearing cache, resetting settings).

Is it possible to use a phone without internal memory?

Technically yes, but with serious limitations: many system functions will not work, access to the camera, mobile network and some applications will be lost. This mode is only suitable for experiments.

How to get the internal memory back after. shutdown?

The methods depend on the shutdown method:

  • If you used ADB - run the command sm set-force-adoptable false.
  • If you edited fstab - delete the symbol # before the line with /data.
  • If the phone does not turn on, flash the stock firmware via Mi Flash Tool.
Why is it still used after formatting the internal memory as portable?

The system MIUI can automatically mount a partition to store temporary files. To avoid this, after formatting:

  1. Go to Settings โ†’ Memory.
  2. Select internal memory and press Eject (if the option is available).
  3. Set the SD card as the default storage.