FORUMS
Remove All Ads from XDA

How to extend storage using SD card space

55 posts
Thanks Meter: 11
 
By danibus, Member on 30th May 2017, 09:31 AM
Post Reply Email Thread
Hi folks, this is a small tutorial to extend storage using SD space for P8 lite 2017.

It's more or less the same tutorial you can read for any Nougat phone.

As you know, P8 lite 2017 has only 7 GB free space at 1st, and after install all your favourite programs and restore your photos, music, etc you find 1-2GB free only.

To avoid this we will configure Android to use ALL SD to install programs and data.
This will ERASE ALL SD content, so backup any data there..

What we are doing?
We will configure Android to use SD as adoptable storage.
Making this, SD will be encrypted and will be part of phone storage.
That means you CAN'T remove. If you remove SD, your phone will not work (well, only programs installed there). Also that means SD will not work as external storage = portable SD, so you can't connect phone to any PC and transfer music, photos, etc. In this case you need a program to do it (I suggest AIRDROID from PlayStore).

Internal phone storage will be use for system apps.
SD storage will be use for install user programs and data. Whatsapp will be here

Others like Motorola or Samsung enable this option in stock rom, Huawei not.

What I need?
First of all, fast SD. At least UHS-I class.
Second you need to know how to use ADB console (not in this tutorial).
Third enable developer options (not in this tutorial). Read here.

Let's rock
* Connect your phone to PC

* Be sure to enable developer options, enable debug mode and accept message from phone:
accept debug mode

* Format SD using phone menu.

* Start ADB console. Write:

>> sm list-disks
We will read something like: disk:179,64

>> sm set-force-adoptable true
>> sm partition disk:179,64 private

Remember disk:179,64 it's just an example, we have to write down what our phone shows.
Can be 179,64 also can be 179:192 also can be 179_32
All are correct. Exit adb now.

Last pass, migrate data
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.

migrate data

Check everything works
At this moment storage section in your android menu will show non-sense data (i.e. shows me -1.66GB free space, yes, minus 1.66GB).
Also your SD total storage can be wrong, mine shows 64GB but it's a 32GB SD card.

bad storage info

Install a 3rd party file app, like this one,and check storage:

correct storage


Now all it's ok!!!



NOW DON'T FORGET THIS
* You can't simply remove your SD.
* If you want to replace SD for another one, maybe a bigger one, you CAN'T. You have to backup your data, un-make this tutorial (just down), make all steps with new SD.
* If HUAWEI updates ROM, I don't know what will happen, hope nothing breaks.


HOW TO "UNDO" THIS TUTORIAL

First of all backup all your info using google account, AIR DROID, etc.

* Start ADB console. Write:

>> sm list-disks
We will read something like: disk:179,64

>> sm partition disk:179,64 public

Now SD it's available for portable use, I think it has been formatted (don't know, never made this).
The Following 6 Users Say Thank You to danibus For This Useful Post: [ View ] Gift danibus Ad-Free
 
 
31st May 2017, 03:26 PM |#2  
kinkiyo's Avatar
Member
Thanks Meter: 12
 
More
thx work perfectly for me
1st June 2017, 11:55 AM |#3  
Junior Member
Thanks Meter: 0
 
More
after
Code:
>> sm list-disks
it says:

Code:
/system/bin/sh: can't create sm: Read-only file system
Tried with
Code:
mount -o rw,remount,rw /system
It says:
Code:
mount: '/dev/block/dm-0' not user mountable in fstab
Any idea?

Thank You
1st June 2017, 04:29 PM |#4  
OP Member
Thanks Meter: 11
 
More
Quote:
Originally Posted by AlexL84

after

Code:
>> sm list-disks
it says:

Code:
/system/bin/sh: can't create sm: Read-only file system
Tried with
Code:
mount -o rw,remount,rw /system
It says:
Code:
mount: '/dev/block/dm-0' not user mountable in fstab
Any idea?

Thank You

??

Pls explain how you make adb shell
Are you using windows?
1st June 2017, 07:56 PM |#5  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by danibus

??

Pls explain how you make adb shell
Are you using windows?

windows 10. cmd as admin
than I opened adb shell from the sdk\platform-tools directory
1st June 2017, 08:45 PM |#6  
OP Member
Thanks Meter: 11
 
More
Quote:
Originally Posted by AlexL84

windows 10. cmd as admin
than I opened adb shell from the sdk\platform-tools directory


Pls try this mini-adb this instead using sdk

https://drive.google.com/file/d/0B-k...NwejBXNTQ/view

If you have same error, no idea
3rd June 2017, 11:33 AM |#7  
Dragoboss's Avatar
Senior Member
Thanks Meter: 134
 
More
Quote:
Originally Posted by AlexL84

after

Code:
>> sm list-disks
it says:

Code:
/system/bin/sh: can't create sm: Read-only file system
Tried with
Code:
mount -o rw,remount,rw /system
It says:
Code:
mount: '/dev/block/dm-0' not user mountable in fstab
Any idea?

Thank You

Seems like the way your phone's filesystem is configured you are unable to remount a certain part of your partitions.
Is your phone rooted? If so you could try through the phone itself with an console/terminal emulator.

Honestly, I think su is a necessity to begin with either way even with adb.

Quote:
Originally Posted by danibus

Hi folks, this is a small tutorial to extend storage using SD space for P8 lite 2017.

-snip-

Heya danibus, I was wondering.
You say in your tutorial that doing this would cease the usage of the SD card as external storage.
Makes me wonder, have you tried doing this through the use of partitions, dividing the sd card for example in two halves, 32gb each, then adopting one of the partitions with the internal, leave the other one mounted to the external mount point?

I would try myself right now but my phone doesn't arrive for another week.

Cheers
3rd June 2017, 10:48 PM |#8  
OP Member
Thanks Meter: 11
 
More
Smile
Quote:
Originally Posted by Dragoboss

Heya danibus, I was wondering.
You say in your tutorial that doing this would cease the usage of the SD card as external storage.
Makes me wonder, have you tried doing this through the use of partitions, dividing the sd card for example in two halves, 32gb each, then adopting one of the partitions with the internal, leave the other one mounted to the external mount point?

I would try myself right now but my phone doesn't arrive for another week.

Cheers

No, as my SD is only 32GB, if I make i.e. 50% for internal storage and 50% for external, I will have only 16GB for install programs+data (internal storage), I prefer 32GB for them

But you can try and post here result!
27th July 2017, 06:41 AM |#9  
Junior Member
Thanks Meter: 0
 
More
I did this manipulation and it worked fine (once I found the correct and last version of adb...).

It took maybe 5 or 6 minutes max.

BUT, if I tried this it is because the phone showed en out of space message and I couldn't download an update. Then after the extension of the storage, I still was unable to down load and apply this update.

The phone showed 80 Go of memory (64+16) with the third party app, and the setting menu still considered the internal memory as full. So, it worked but it was not a solution to my issue.

Do you have any tip to tell in order to solve this problem ?

thank you very much !
28th July 2017, 11:45 PM |#10  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by nonosann

I did this manipulation and it worked fine (once I found the correct and last version of adb...).

It took maybe 5 or 6 minutes max.

BUT, if I tried this it is because the phone showed en out of space message and I couldn't download an update. Then after the extension of the storage, I still was unable to down load and apply this update.

The phone showed 80 Go of memory (64+16) with the third party app, and the setting menu still considered the internal memory as full. So, it worked but it was not a solution to my issue.

Do you have any tip to tell in order to solve this problem ?

thank you very much !


Hello

What ADB version did you get?

Did you restart your phone and tried to download/install update?

---------- Post added at 11:45 PM ---------- Previous post was at 11:33 PM ----------

I really like this post.
I am only relutant because there is still no feedback.
I have the Huawei P8 lite 2017 for only a week, it is still in its warranty and I don't want to void that.
I have a 32gb sd card, I have it as the predefined storage, still I have installed some apps and the internal storage has been decreasing, I have read that, once an app is updated it goes to internal storage.
I really like to keep the original Huawei software/firmware updated and looks like that this is no great solution...
Another thing that I have read is that is possible to format sd card as internal, but not under EMUI 5.0...

Thanks guys
25th August 2017, 04:30 AM |#11  
Senior Member
Thanks Meter: 51
 
More
Is this work on Nova lite?
Post Reply Subscribe to Thread

Tags
adoptable storage, storage

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes