How to partition your storage on Android using ADB

Share on facebook
Share on twitter
Share on linkedin
Share on telegram
Share on whatsapp

Table of Contents


Partitioning is a very useful trick often used with PC hard drives to divide storage space into multiple parts. Thus get two storage units (or more), even if you only have one physical. For what purpose? It depends on the user, but normally this is done to create backup copies (if the data of one party is corrupted, the data of the other is not damaged), better organize the files and even install two operating systems.

In Android it is not possible to partition the internal storage, but it is possible to partition the external one. In fact, you can partition your Android’s SD card to use a part of its storage as internal memory Of the device. That way, if you’re running out of space to install new apps, you’ll gain extra space without losing the SD card’s external storage benefits.

And, believe it or not, to make this partition no need to have root. You should only use a series of ADB commands as explained below.

Steps to partition your Android storage using ADB

commands to partition an sd card for android

Before continuing, you should know that everything you have on the microSD that you will partition on your Android will be lost during this process. So make a backup of the card. With that said, let’s then see the steps to partition storage on Android using ADB:

  • First of all, you must have USB debugging enabled on your Android and ADB installed on your PC.
  • Also, format your microSD card from your Android or PC.
  • Once you meet those three requirements, connect your mobile to PC with a USB cable and accept USB debugging when a notification appears.
  • Open a command window from the ADB folder (type CMD in the folder address bar and press Enter) and enter the command: adb shell
  • Next, type the command: sm list-disks adoptable
  • Copy the number that appears after “disk:”, which would be the Disk ID. In my case it is 179.64.
  • Now, partition the SD card with this command: sm partition disk: mixed <% external memory>
    • For example: sm partition disk:179.64 mixed 25. With this command I am making my SD card split into 25% external storage and 75% internal storage.

expand android internal memory with microsd

Ready! It’s that simple to partition the storage of a microSD on Android to have more internal memory, conserving the external storage.

You can also turn any USB drive into internal memory

By the way, if you have a flash drive or a hard drive connected to your mobile, you can also partition it to convert it into the internal memory of your Android with the command sm set-force-adoptable on. By following the same steps as above, you will have no problem partitioning your USB drive on Android.

How to remove SD card partition on Android?

format microsd card on android

Although having your microSD storage as internal memory is very beneficial, as it allows you to install more apps and save more app data, it also has its drawbacks:

  • Apps are slowerbecause SD cards are slower than internal memory.
  • Heavy games don’t work or crash.
  • There is a risk that SD card gets corrupted and damages internal memory data.
  • If you remove the SD card, some apps will stop working because they cannot access the data they saved on the card.

For these reasons, you will surely be interested to know how to reverse the process of partitioning a microSD on Android. Well, what you should do is format the SD card in this way:

  • Go to the Setting of the mobile.
  • Choose Storage.
  • press the option SD card.
  • press on Format as portable.
    • Make sure the card is empty or doesn’t have anything you don’t want to lose before tapping this option.

That’s it! If you have any questions about it, let us know from the comments so we can help you.

Suscribe to our newsletter

We will not send you SPAM mail. We hate it as much as you do.

error: Alert: Content is protected !!