[Moto Z2 Play  Questions & Answers] stevek4u:
I originallly used xda adb shell -> SM list-disks

Resource I located that speak to how I had set it up prior and show a different variation which may be the key (when I have time to test).

For now I want to share a few of the links and steps that should allow you to format an SD Card up too 2TB(for now).

############################

Note:

These look like or look very similar to how I did it the first time. I have not yet retried nor have I tested the following:

Which is why I am only show snippets(steps/code) from the links from others XDA threads / posts on the topic.

If you have had a good or bad experience with any of the following methods:

Please leave a comment for others sharing your experience. Sharing with good intentions, best of luck!

############################

## 1st Option or Variation of how to:

############################

https://xdaforums.com/android/help/enable-adoptable-storage-t3615882

Adoptable Storage in MM:

adb shell

sm list-disks

sm list-volumes all

sm set-force-adoptable true

sm partition disk:179,128 private (replace with mixed what number you want to be external, ie: mixed 80 will leave 80% of card as external, 20% internal)

sm set-force-adoptable false

sm list-volumes all

NOTE:

The fourth command partitions your SD card, and may take 2-3 minutes (or longer) to complete, depending on the size of your card. plus make sure you have a reliable and fast SD Card.

Disconnect your phone from the USB cable and reboot it.

The reboot is crucial.

Your phone may (or may not) take a bit longer to boot this time.

Once your phone is fully booted, tap Settings > Developer Options and disable USB Debugging, clicking “OK” to any messages that may appear.

Go to Settings > Storage & USB and tap your SD card.

Tap the three dots in the upper-right corner and choose “Migrate data”.

############################

## 2nd Option or Variation of how to:

############################

https://xdaforums.com/devdb/project/?id=20067#downloads

https://xdaforums.com/android/software/auto-formatting-sdcard-to-internal-t3583875

Auto-formatting SDCard to Internal and SDCard storage - this is the easiest way format your memory card, to use it as a internal memory and removable media at the same time!

What is required for this?

- Device with Android Marshmallow (6.0) and higher.

- USB Cable

- Enabled USB debug on your device

Just select the formatting mode and press any key!

Instruction:

1 - Connect your smartphone to the PC using your cable

2 - Enable USB debug on your smartphone

3 - Run "aftiss.cmd" (for Windows) or "aftiss.sh" (for Linux)

4 - Select the formatting mode

(1 - 25% Internal\75% SDCard, 2 - 50% Internal\50% SDCard, 3 - 75% Internal\25% SDCard, 4 - Custom)

5 - Press any key

6 - Be happy!

############################

## 3rd Option or Variation of how to:

############################

https://xdaforums.com/idol-3/general/make-sd-card-semi-adopted-t3399510

Quote:

Originally Posted by Electriccars

EDIT: MARSHMALLOW ONLY

I hate the small amount of internal memory, but I don't want to make my ENTIRE SD of 128GB Adopted and unremovable. So I found this post describing how to make your SD only partially Adopted by splitting the partition in ADB. Thought I'd share!

"How to split your card

WARNING: Before you do this, be sure to eject the card from the Settings/Storage & USB menu.

I found how to partition my SD card to give 8G as internal storage to which all apps that can be moved will be moved and leave ~20GB as portable storage to hold music, etc.

First, you need adb working, and your SD card inserted and formatted as portable.

$ adb shell sm list-disks adoptable

is my SD card that can be made adoptable, I want 90% as external SD:

$ adb shell sm partition mixed 90

Note: Your card may be listed with an underscore _ instead of an underscore, e.g. in which case, that is what you type.

This erases the entire SD card, and then gives me 90% as portable storage and the rest as adopted internal storage.

The partition table looks like this:

Number Start End Size File system Name Flags

1 1049kB 57.5GB 57.5GB fat32 shared msftdata

2 57.5GB 57.5GB 16.8MB android_meta

3 57.5GB 63.9GB 6369MB android_expand

The fat32 partition is not encrypted and can be mounted on a computer (provided it can handle the new GUID partition table format).

I advise a reboot after setting the new music storage location this as Google Music may get the wrong idea about much space is available.

Rename the adopted storage. If it had the same name as the portable storage partition then it may prevent one of the partitions from being available over USB MTP."

############################

## Additional Links

## ( Not yet reviewed by myself;

## and I am a newb at that).

############################

##

##

>>>>>>>>>>>>>>>>>>>XDA<<<<<<<<<<<<<<<<<<<<<

https://xdaforums.com/android/development/tutorial-how-to-emulate-partition-sd-t3554949

https://xdaforums.com/android/software/auto-formatting-sdcard-to-internal-t3583875

https://xdaforums.com/android/help/enable-adoptable-storage-t3615882

https://xdaforums.com/idol-3/general/make-sd-card-semi-adopted-t3399510

>>>>>>>>>>>>>>>>>>>GitHub<<<<<<<<<<<<<<<<<<<<<

https://github.com/LegacyXperia/Wiki/wiki/Partitioning-the-SD-Card-using-ADB

>>>>>>>>>>>>>>>>>>>StackOverFlow<<<<<<<<<<<<<<<<<<<<<

https://stackoverflow.com/questions...d-sd-card-part-adoptable-part-removable-on-an

>>>>>>>>>>>>>>>>>>>android.StackExchange<<<<<<<<<<<<<<<<<<<<<

https://android.stackexchange.com/q...into-two-parts-part-adoptable-storage-and-par

>>>>>>>>>>>>>>>>>>>Google<<<<<<<<<<<<<<<<<<<<<

https://www.google.com/search?rlz=1.......6..35i39j0i131j0j0i10j0i22i30.PYGdp3_K9ss

>>>>>>>>>>>>>>>>>>>|END|<<<<<<<<<<<<<<<<<<<<<

Thanks for the discussion.