This website uses cookies to ensure you get the best experience on our website.

8 min read 50 comments

How to format MicroSD cards as internal memory

Do you want to use your MicroSD card as a real memory extension and install apps on it? Then you have to format it as internal memory. Unfortunately, some manufacturers such as Sony, LG or Samsung, can't do this from the factory. But if your smartphone has Android Marshmallow or newer, a command-line prompt will help. Prevent grief from system updates by following the new tips at the beginning of this article.

Android updates and Nougat issues with this method

Some readers have reported difficulties when installing system updates. The update to Android 7.0 Nougat especially does not seem possible with the manually partitioned MicroSD cards as described below. Our review devices, which have already been updated to Android 7.0 Nougat, do not even respond to the console commands shown below.

In the absence of documentation on the net, we can therefore only advise you to reverse the steps described below before a system update. Back up photos or music on your computer or in the cloud and free up as much memory on the SD card and smartphone as you can. Uninstall unnecessary apps and migrate your data back into the internal memory. Then format the MicroSD card as removable media. Only then is it safe to install an Android update.

There was no problem in Android 6.0 Marshmallow

When a MicroSD card is formatted as internal memory, apps can be completely stored on it. This means that if you download applications with a total size of 2 GB, then there should be 2 GB of space taken up on the SD card. If, however, the MicroSD card is only formatted as a backup memory, this is not the case, as PLATYPUS_DIARRHEA writes on Reddit.

With an option in Android Marshmallow, it is theoretically possible to treat MicroSD cards as internal memory. It allows the complete migration of your apps with their data. So the smartphone memory is actually expandable. Unfortunately, some smartphone manufacturers have omitted the menu option to format SD cards as internal memory for their Marshmallow variant.

androidpit micro sd 3
Use only fast MicroSD cards, otherwise the memory upgrade will be a tempo downgrade. / © AndroidPIT

Can't do it, it's not there

Just because the menu option is invisible doesn't mean that it doesn't work. A few days after the Reddit post, a command-line prompt became known, with which someone could also format MicroSD cards as internal memory in the Galaxy S7. We have successfully tested the instructions with the Samsung Galaxy S7, the Sony Xperia Z5 and the LG G4 while running Android 6.0 Marshmallow.

All three smartphones run from the factory, or via update, with Android 6.0 Marshmallow and have a slot for MicroSD cards. In addition, the menu option for formatting the MicroSD card as internal memory is missing. The entry is only available with HTC in the One A9 and with Motorola in all Moto smartphones.

Darth Vader micro SD ANDROIDPIT
Come to the dark side of memory expansion. / © AndroidPIT

Why Samsung, LG and Sony do not show us this menu option escapes me. I connected each of the three smartphones to the computer, and each had one MicroSD card inside.

Then I typed into the ADB tools the command-line commands that Paul O'Brien described in his blog post. As soon as you have the command line window open and the smartphone connected, you can enter the first command:

adb shell

Now the command line is ready for you to issue system commands to your smartphone. In this case, we want to format the SD card or a part of its memory as an internal memory. Even if Sony, Samsung and LG deny us the possibility by a graphical user interface, we can still transfer the command to the smartphone as a console command. First, however, we need the ID of the SD card. We find these with the following command:

sm list-disks

In my case, the disk is called 179.64. For you, perhaps, it is different. Note the exact identifier. In the next command, we will format and partition the MicroSD card. Your content will be deleted. If important files are on the card, copy them to another disk. If you want to keep the MicroSD card permanently in the smartphone, you can now partition all of your memory. To do this, type:

sm partition disk: 179.64 private

The operation takes several seconds or minutes, depending on the capacity of the memory card. If you want to use a certain percentage so that it can be read by other devices, you must exclude it from the private partition. The 50:50 partitioning command looks like this:

sm partition disk: 179.64 mixed 50

This is the end of Paul O'Brien's guide, but not the end of the work. If you now want to use the adopted memory as such, you must also migrate apps and data. This can be done through the storage section of your Android settings menu. Tap the MicroSD card, then move to the top right of the menu and click on Move data. You could not select this menu item before partitioning.

internal sd move data 1
Migrate the data after partitioning the SD card. / © AndroidPIT

Now, and in the future, downloaded apps are fully written to the MicroSD card. Only system apps and updates use the internal memory. This means, you should never again get error messages due to lack of space if an app update is pending.

internal sd move data 2
With the Sony Xperia Z5, the total memory is strangely displayed. The memory of the SD card is the one you must keep in mind. / © AndroidPIT

Where's the hook

MicroSD cards are not as fast as the internal memory of the smartphone. So don't waste money on the cheaper ones, and instead get yourself memory cards with a reasonable read throughput. The Extreme Pros and the Extreme Plus MicroSD cards by Sandisk have proved to be the best value for the money in our opinion. With 74 MB/s write throughput, you should not experience any delays in everyday life and profit from a considerably larger memory.

SanDisk Extreme PLUS 64GB microSDXC

Interestingly, only the LG G4 was able to correctly read the acquired memory. Samsung showed unnaturally high amounts of occupied memory and Sony's value was even negative. Nevertheless, we did not have any complications, and even when we were connected to the computer, we were able to access all of our data properly, even though we could only see the shared, and not private, portion of the memory there. Difficulties arose only when it came to system updates (see above).

Storage space gain: a complete success

We have subjected the manually partitioned devices to a uniform endurance test. We have installed Final Fantasy IX on all devices. The game is 1.8 GB in size. After installation, it's easy to see which of the two memories, internal or SD card, had its memory space used. In all cases, after the installation on the SD card, 1.8 GB less space was available. A success of this extent cannot be achieved with SD cards formatted as interchangeable memory, since complete data migration is not possible.

Compare the values of the internal memory and the SD card memory in the screenshot for proof.

internal sd move data 3
Here's the picture proof: only the memory of the SD card is affected by the game. / © AndroidPIT

What happens…

Of course, the question is what happens when the MicroSD card is removed from the system. Actually, it creates a serious problem for your apps. After all, they can no longer access their data. Since the partitions with your operating system and the information for a factory reset are still stored in the internal memory, a removed or broken SD card can't do any harm. When we removed the MicroSD card, app icons were quickly replaced by a placeholder, which were immediately restored when reinstalled.

If you lose the SD card or it has a defect, your data is lost. Since these are encrypted as the internal memory, you should not hope for a data recovery. Instead, regular backups are appropriate. But this rule applies anyway. So have fun with the cheap memory expansion of your Marshmallow smartphone.

Safely remove an internally partitioned SD card

To safely remove the SD card from the smartphone, you must reverse the above process. Since your storage space on the internal memory is probably not sufficient, you first have to transfer pictures to another form of storage and uninstall apps. Then you go back to the Memory & USB settings and tap Move data under Internal memory in the menu. Then you go to the SD card and format it as mobile memory. Do both steps (backing up and formatting) so that your data cannot be lost and you can use the SD card with other devices.

Has this process worked for you? Which MicroSD card do you use? Let us know in the comments below.



Write new comment:
Saving... Draft saved to this device. No drafts are saved when editing

  • I wish you guys would say storage, instead of memory. You can't increase memory, unless the phone's software is set up to make a swap file, so this article should change from "memory" to "storage".

  • Jay B. 2 weeks ago Link to comment

    Thanks for the information, I was able to perform these steps on my Samsung Galaxy s5 Sport that is running Android version 6.0.1 and convert my 32GB SD card to internal storage. At first I thought that it did not work because my internal memory was too full to allow apps to be moved to the SD card. After I figured that out and uninstalled several apps then I could move the other movable other apps to the SD card.
    I hope that I have been able to move a sufficient number of apps to the SD card that I will not be constantly notified that I do not have insufficient storage space.
    Unfortunately even after moving all of the moveable apps to the SD card I still have 13.77 GB of 16 GB used in my internal storage. This leads me to the opinion that too many developers, including Google, are too lazy, too uninformed or to filled with their own sense of self importance to develop apps that can be moved to and run from an SD card. That along with the propensity of Google and Samsung to load bloatware on my phone which I cannot remove makes me sorely inclined to take the leap and root my phone. The warranty is not a concern as the phone has long been out of warranty. Nor is the lack of the ability to get OS updates automatically as Samsung and my carrier have lost interest in providing them.

  • samsung, lg, Sony and other losers are not about offering flexibility, but nice, bloated, comfortable toys for average Joe imbecile consumer (who knows about nothing about everything). even google, why don't they offer micro sd cards with their development phones and tablets?!?

  • Sorin 2 months ago Link to comment

    I use a formatted microSD FAT32, or FAT, or I do not know for sure exactly. I moved the applications to the card, the ones that could move, and I moved the Photo Gallery to the card. I'm happy to go. But I did not know until now that the "as internal memory" card can be formatted. After I unpack the card, I will format the card. It will be a great thing. Thanks.

  • Well It worked for me but when I download games in play store it says "insufficient storage"
    can you please help me

  • You write that there is shown the wrong amount of used storage. Same at my wife's phone Samsung. The problem now is that the o phone thinks it is full. So no more downloads. Even there is more than 40 GB of unused storage. Any advice?

  • I managed to carry this out okay with my new Sony Xperia XA since the miniscule 16Gb memory was filled in the first week with Bloatware! This was while it was still on Marshmallow. I was a bit anxious what would happen when the Nougat update came along. However, I shouldn't have been concerned. The upgrade didn't affect my partitioned micro SD card!!

    My main issue now is with a new Nougat Kodak 7 inch tablet! It will only allow a 64Gb micro SD card to be used as portable, or fully adopted. Which is annoying, since all I need is to be able to split it 40/60 or thereabouts! Although the tablet will read a 128Gb as portable. Which I attempted to split using the adb commands! The portable section carried out was accessible but the tablet did not like the "internal" sector! The tablet prefers to format the external memory itself and does not take too kindly to be played about with by external interference! My next step is to use a different tablet to partition the SD card memory, or partition the card using a windows PC facility prior to putting into my tablet as an experiment. If I can figure out how to do that!

    • FeRDNYC 4 months ago Link to comment

      Good luck. I don't hold out much hope for solutions along those lines — the adopted side MUST be formatted in the device it's to be used on (because of the encryption key), and if it isn't willing to partition the card itself then it isn't likely to respect external partitioning while formatting, unfortunately.

  • So I did all the steps but then when I went to my storage nothing changed the sd card was still formatted as protable storage

    • FeRDNYC 5 months ago Link to comment

      Hmm. This is becoming a trend. A few questions:
      1. Are you also on a Samsung device running Android 7, like the previous commenter?
      2. If not, what device, what version of Android, is it rooted, etc?
      3. Were there any messages output by the `sm partition` command (or any other command), or did it just silently fail?

      • 1. No
        2. on a Samsung on5 With android 6.0.1 not rooted
        3. After entering the command to partition it went to the next command line like it had done it however nothing changed on the phone.

      • FeRDNYC 5 months ago Link to comment

        Apparently, on the On5 there's just no way to use adoptable storage, unfortunately.

        See the "Galaxy On5 not compatible with Adoptable Storage" question on StackExchange's 'Android Enthusiasts' site.

  • I am attempting to use adoptive memory on my Samsung Tab A 10.1, Android 7. I have been able to get to entering the command (sm partition disk:179,32 private) but after 2 seconds it drops back to the command line. After rebooting there is no change, the memory card has not been formatted as private. The tablet is not rooted, I don't want to root it yet, but from what I have read it doesn't have to be. I would be appreciative for any help.

    • FeRDNYC 5 months ago Link to comment

      I have found some references indicating that the card has to be UNMOUNTED in order to successfully partition it as adoptable, on Samsung's Android 7. So if you haven't tried this already, it might be worth making sure you first explicitly "EJECT" the removable-storage card. (Software-eject, meaning unmount, from the Settings > Storage interface. Obviously you should leave it in the slot after unmounting it.) Then once you're sure it's not mounted, go into the shell and run the `sm partition` command. That might make the difference. And I wouldn't put it past Samsung to make the formatting failure a silent error, when it fails due to a mounted card.

      • Tried unmounting the card but no go. It still won't format the card as private.

      • FeRDNYC 5 months ago Link to comment

        Hm, that's too bad. Samsung have apparently played around with a LOT of ill-advised trickery in their stock Android builds, at various times. I've seen some people claim that the only way they've been able to make use of adoptable storage on a Samsung device is to set it up under Android 6.0 and only upgrade to Nougat _after_ it's set up.

        Perhaps someone with that specific device will comment, and can speak authoritatively. (My only Samsung device is a Galaxy S4, but t it's running CyanogenMod 13 / Android 6 and has never run the stock build.) But it sounds like Samsung may have "protected" the microSD device so that it's not modifiable using the `sm partition` commands as an unprivileged user (an illogically-logical extension of their decision to remove the adoptable-storage interface from the Settings app), in which case rooting and then running the command as root would probably be the only option.

    • FeRDNYC 5 months ago Link to comment

      Oh, also, just because you mentioned it: A reboot "shouldn't" be necessary to activate any of these changes, if they're going to work at all they should take effect immediately. (With the caveat that I can't speak for how things work on every possible device, and there may very well be one that requires a reboot in order to pick up the adoptable storage. But, that would be an unusual situation, as that's not how things work on any standard/common Android build.)

      In fact, just the opposite, I would AVOID rebooting until you've completed the process of getting the adoptable storage activated and your data migrated over. A reboot anywhere in the middle of that process would only complicate matters.

  • FeRDNYC 6 months ago Link to comment

    Just for the record, since neither this post nor Paul O'Brien's actually spells this out:

    When partitioning a card using `sm partition <disk> mixed <ratio>`, the ratio parameter is the percentage (0-100) of space to allocate PORTABLE. The rest of the card will be the adoptable private storage.

    So `sm partition <disk> mixed 25` on a 16GB card will create 12GB of adoptable storage and a 4GB FAT32 partition.

    (The example used on both pages is `sm partition <disk> mixed 50`, which of course doesn't make it any clearer exactly what "ratio" means,)

  • I do not have SD ID after typing in:

    sm list-disks

    Please help. TIA!

    • FeRDNYC 7 months ago Link to comment

      That's not very helpful, as problem reports go. You say you "do not have SD ID" after typing the command, well why not? Did the command not work? If it didn't, what was the error? If it did work, what did it output?

      On my Galaxy S4 running CM13, I get the following:

      u0_a63@jfltecdma:/ $ sm list-disks

      So I know the removable is identified as disk:179_32 by the system.

      If it returns NOTHING, then that likely means there's no SD card present. (If I eject the card from my phone, typing `sm list-disks` will produce no output.) So, if you're getting no response, go into Settings and check the Storage manager to make sure the phone is really seeing the card, first. Don't bother with any shell commands until you know that the card is correctly inserted and has been detected by the device.

      But most importantly, tell us exactly what happens when you run that command. Help us help you.

Show all comments

This website uses cookies to ensure you get the best experience on our website. More info