Format SD memory card to internal storage via ADB
TABLE OF CONTENTS
I was facing an error not showing the item format SD card to internal storage on my Android phone. My memory card is still working fine. However, in the Format section of the phone there is only Format as an external SD card.
The purpose I want to use SD card as internal storage to install more apps because my phone only has 32GB.
After looking at ways to fix it online, I found a way to format the SD memory card into internal memory through ADB.
Instructions to format SD memory card to internal memory through ADB
Before doing this you need to make sure the memory card is backed up if there is important data.
In this article, I will not guide the ADB connection. If you do not know ADB, you can refer to articles or video tutorials online.
Enter the commands in the order shown below:
adb shell sm list-disks
adb shell sm list-volumes all
adb shell sm set-force-adoptable true
adb shell sm partition disk:179,160 private
adb shell sm set-force-adoptable false
adb shell sm list-volumes all
AT THE 4th COMMAND"179,160
" will vary according to your device. This item you get the data from the 2nd command adb shell sm list-volumes all
.
After completing these commands, unplug the USB cable and reboot the machine.
Related Articles