[TUTORIAL][SCRIPT] Swap internal SD Card / External SD Card for Xperia SP (C530X) - Xperia SP General

Hi every one!
This tutorial is for all xperia SP (C530X) with FW 12.0.A.1.254 Locked or unlocked bootloader ( ROOT Needed)
Method 1:
First you need this app Root External 2 Internal SD <- click for install from play store (it's free)
next yo need open the app.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
once open, you need change some configuration, click go to open settings.
click in the Original internal mounting point and change for /storage/sdcard0
click in the Original external mounting point and change for /storage/sdcard1
click in the ext sdcard device access and change for /dev/block/vold/179:33
click in Mount Options and change for fmask=0702,dmask=0702
and finaly check the option "use per default"
reboot and enjoy, i have an 32GB micro SD card class 10
remember mark "At boot" for swap on every reboot
Click to expand...
Click to collapse
Other method:
For all who use init.d leave this script, just uncompress and placed in /system/etc/init.d directory, correct permissions and restart.
Note: If use the script, not use the program or vice versa.
Int2Ext.sh (see attachments)
Click to expand...
Click to collapse
Enjoy :highfive:

Yeah! works perfect! I use 16GB class 10 SD

reboot not working just goes back to normal internal and external any ideas ?

is this trick working in other phones with REALLY LOW internal memory ?

may be
DjTony90 said:
is this trick working in other phones with REALLY LOW internal memory ?
Click to expand...
Click to collapse
You need know the mount points and folder names for work, in theory... maybe
Open the /proc/mounts file and check the folders and mountpoints, configure and test.

check configurations
aldunn1 said:
reboot not working just goes back to normal internal and external any ideas ?
Click to expand...
Click to collapse
check all configurations in OP, the option "at boot" must be checked and you need be root and assign permissions at app.

maybe
ritmix54 said:
I have an question when the new update 4.3 comes out for our device can we use this method to swap internal and external storage ?
Click to expand...
Click to collapse
maybe yes, need wait for release. if the mounting points change i will post new mounting points at release.

Hi,
I have tried this and it indeed works. However, the swap is reset upon reboot and I would have to manually open the app and press the "External > Internal" button.
This is not a major problem, but I find that my sdcard1 has files copied from sdcard0. Using ES File Explorer, I have found that the swap copies folders such as Android, data, Download and WhatsApp etc from sdcard0 to sdcard1.
Interestingly, all these folders are empty, which is great, otherwise this trick would be rendered as redundant.
Just wondering if this phenomenon is normal?

no problem
kandywrks said:
Hi,
I have tried this and it indeed works. However, the swap is reset upon reboot and I would have to manually open the app and press the "External > Internal" button.
This is not a major problem, but I find that my sdcard1 has files copied from sdcard0. Using ES File Explorer, I have found that the swap copies folders such as Android, data, Download and WhatsApp etc from sdcard0 to sdcard1.
Interestingly, all these folders are empty, which is great, otherwise this trick would be rendered as redundant.
Just wondering if this phenomenon is normal?
Click to expand...
Click to collapse
is normal, when you start the phone charges the internal memory as you normally would and seconds after making the change automatically, this creates the folders but once done change all data is stored in the folders that are in the external microsd memory

I am a bit lost....
1) Am I correct that those in the internal card (sdcard0) will be automatically move to the removable external card (sdcard1)
2) and all the file writing will be performed on sdcard1 instead of sdcard0?
3) do the files stay in sdcard1 when the phone is off or they will be moved back to sdcard0 when the phone is turned off?
4) Any problem when the external card is removed when boot up?
Thanks

yo
Davalz said:
Yeah! works perfect! I use 16GB class 10 SD
Click to expand...
Click to collapse
yeah me too !! works perfect

lousylogic said:
I am a bit lost....
1) Am I correct that those in the internal card (sdcard0) will be automatically move to the removable external card (sdcard1)
2) and all the file writing will be performed on sdcard1 instead of sdcard0?
3) do the files stay in sdcard1 when the phone is off or they will be moved back to sdcard0 when the phone is turned off?
4) Any problem when the external card is removed when boot up?
Thanks
Click to expand...
Click to collapse
1) the files are not moved, the mount point of the memories changed.
2) Everything is written in sdcard0 to record it in the microsd and everything that is written in sdcard1 be recorded in the internal memory of the phone.
3) when the phone is off, the data remain in the microsd microsd and data from the internal memory to the internal memory.
4) once done change memories are not deve remove the microsd memory.

thanks a lot - it works for me great now I have a lot of free space for apps.
one of the most annoying thing about XSP is that it have less than 8 GB space for apps.
but now I have 32GB
thanks again
P.S.
one questions - storage menu in settings - shows total space on internal storage 29.71GB - this is ok, but Apps menu in settings shows only 1,9Gb free from around total 6 GB total - this the real internal storage and it is not changed at all.
is this normal and if yes what is the difference from before, because when I put 1 GB more apps the space will be over ?

the apps still in internal memory
rexxxxx said:
thanks a lot - it works for me great now I have a lot of free space for apps.
one of the most annoying thing about XSP is that it have less than 8 GB space for apps.
but now I have 32GB
thanks again
P.S.
one questions - storage menu in settings - shows total space on internal storage 29.71GB - this is ok, but Apps menu in settings shows only 1,9Gb free from around total 6 GB total - this the real internal storage and it is not changed at all.
is this normal and if yes what is the difference from before, because when I put 1 GB more apps the space will be over ?
Click to expand...
Click to collapse
applications are stored in the internal memory, but additional game data or applications are those that are stored in the sdcard0 or microsd.
only the application (apk) is stored in the internal memory.
if you had additional data downloaded games or applications before making this change should delete the contents of the folder / storage/sdcard1/android/obb once you've made ​​the switch. Maybe after this have to re-download the additional data but it will be stored in the microsd.

yes it works this way ! thanks a lot.

So it means that, take whasapp as an example:
After the swap, the phone will create a new whasapp folder on external card while the old whasapp folder will remain in internal card as it was?
And if I want to keep the old settings, I will need to manually move the old whasapp folder contents from internal card to external card once?

Yes
lousylogic said:
So it means that, take whasapp as an example:
After the swap, the phone will create a new whasapp folder on external card while the old whasapp folder will remain in internal card as it was?
And if I want to keep the old settings, I will need to manually move the old whasapp folder contents from internal card to external card once?
Click to expand...
Click to collapse
Yes, you can move the whatsapp folder to microsd card to keep old configurations, this aplly for all apps.

Not work on 4.3 Leak by app and script .
Do someone test this way on 4.3 leak ?

post the /proc/mounts
amir-kia said:
Not work on 4.3 Leak by app and script .
Do someone test this way on 4.3 leak ?
Click to expand...
Click to collapse
post the contents of the file located in /proc/mounts, i need check the mount points.

/storage/sdcard0 = internal
/storage/sdcard1 = sdcard

Related

Change /sdcard reference to /Removable?

I am not sure if this is Honeycomb issue or the Asus Eee issue, but in the Asus Eee, my SD card is called /Removable but the internal memory is labeled /Sdcard
This is creating havoc on almost ALL APPS that needs to install LARGE data to SD Card. For example:
- Games: Galaxy Force II, which requires more than 250Mb, by default will download and install the data to the internal memory because it was "looking" for /sdcard. I simply CANNOT MOVE the app to /Removable because the app will then complaint nothing has been downloaded (couldn't find the data in /sdcard, even though it exists but just in /Removable)
- Music: I use iSyncr, which also looks for /sdcard and have the some problem as the above.
- TitaniumBackup: this is the BIGGEST PROBLEM - TB only looks for /sdcard. In TB preferences, I CANNOT change the backup path to /Removable. It insist on /sdcard only. So if my Asus goes kaput, my data is host. I can backup the data and THEN move the files to /Removable, but that means I have to do that EVERYTIME I do backup and even with automatic backup, I have to remind myself to move the backup files MANUALLY to /Removable.
So any apps that requires installation to SD card will look for /sdcard and nothing else.
Anything else I can do about this? My internal memory (that is, /sdcard), is getting filled up really quickly.
lanwarrior said:
- TitaniumBackup: this is the BIGGEST PROBLEM - TB only looks for /sdcard. In TB preferences, I CANNOT change the backup path to /Removable. It insist on /sdcard only. So if my Asus goes kaput, my data is host. I can backup the data and THEN move the files to /Removable, but that means I have to do that EVERYTIME I do backup and even with automatic backup, I have to remind myself to move the backup files MANUALLY to /Removable.
Click to expand...
Click to collapse
I won't comment on the rest as I am not an expert in mount points but, fortunately, you are wrong with regard to TB. When you go into preferences in TB, it tries to detect the backup folder. Don't press Use the current folder or Cancel. Just press the backup key and you can navigate to where you want. Mine is Removable/MicroSD/TB.
I guess we have to wait for some apps to be rewritten for HC.
norm2002 said:
I guess we have to wait for some apps to be rewritten for HC.
Click to expand...
Click to collapse
It's not a Honeycomb problem per se, because vanilla Honeycomb doesn't support SD cards at all. Where a tablet has enabled SD card support, it is vendor specific.
W.r.t to other issues, the post here may help.
Regards,
Dave
norm2002 said:
When you go into preferences in TB, it tries to detect the backup folder. Don't press Use the current folder or Cancel. Just press the backup key and you can navigate to where you want. Mine is Removable/MicroSD/TB.
Click to expand...
Click to collapse
I don't see the "backup" key to change the directory. What I have is shown below.
If I click "Detect", it search the memory and said "No backup found".
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
lanwarrior said:
I don't see the "backup" key to change the directory. What I have is shown below.
If I click "Detect", it search the memory and said "No backup found".
Click to expand...
Click to collapse
Press the back button to go back thru folders.
Sent from my Transformer TF101 using XDA Premium App
david279 said:
Press the back button to go back thru folders.
Click to expand...
Click to collapse
*2 mine is on Removable/TitaniumBackup
lanwarrior said:
I don't see the "backup" key to change the directory. What I have is shown below.
If I click "Detect", it search the memory and said "No backup found".
Click to expand...
Click to collapse
Apologies, I should have said the squiggly back (not backup) button when on the screen in your picture. The one on the bottom left of the picture.
Not "backup" as in data backup, the backup key in the lower left corner of the TF, (backup one level)
This works great! Thanks to all!
I think -sooner or later- apps will be updated to take advantage of the external memory storage. I have to hunt for those apps:
* Ebooks: I dropped Alkido for Moon Reader. MoonReader can access the microSD and doesnot import the actual files onto the \SDCARD. I have quite a lot of ebooks.
* Stock Music & Gallery (mobo player also) can access my pics/videos/music on the microSD (tons of MP3s and MP4s)
I have a 32GB microSD almost filled up.
I have a ship-load of games/apps which have data on \SDCARD but they still
can't fill it up yet (~8GB available). So I have no worry about the internal storage. I actually don't need/use that much games/apps.
by the way, I have a 16GB TF with no Dock.
I also HATE to have MicroSD folder outside /sdcard folder.
So, That has an easy fix:
Edit /system/etc/vold.fstab
Replace this line:
Code:
dev_mount microsd /Removable/MicroSD auto /devices/platform/sdhci-tegra.2/mmc_host/mmc1
With this line (as an example):
Code:
dev_mount microsd /sdcard/_MicroSD auto /devices/platform/sdhci-tegra.2/mmc_host/mmc1
Reboot your TF01, and you're done!
EDIT: You could, if you like, to do the same thing on SD card on the dock, and USB devices. Just follow same steps on other lines inside /system/etc/vold.fstab
I used the folder name _MicroSD with the "_" char, since I want it to apear on first lines of Root Explorer. Use any other name you like!
I know this may not be what you are looking for, but I think this is the right thread to share!
With at least 16gb storage, I don't see an issue with having apps use internal memory, and I'll store my media on the mSD card (or even an extra SD card in the dock).
Dorkington said:
With at least 16gb storage, I don't see an issue with having apps use internal memory, and I'll store my media on the mSD card (or even an extra SD card in the dock).
Click to expand...
Click to collapse
agreed
asdfasdfdsaf
Dorkington said:
With at least 16gb storage, I don't see an issue with having apps use internal memory, and I'll store my media on the mSD card (or even an extra SD card in the dock).
Click to expand...
Click to collapse
Or USB. Or External Hard Drive
Might check out what I did here: http://forum.xda-developers.com/showpost.php?p=15846640&postcount=44
I didn't bother changing the mount points, but rather "redirected" specific folders inside /sdcard to the same folders inside /removable/MicroSD.
When I had to RMA my tab I did a TB to SD card. When I got it back I tried to restore my previously installed apps which I had to find using restore and browse for the backups. However although it listed them after doing that in the restore section it had NO option to restore the apps. Even though it was listing them. I have since had to reinstall all my apps manually. and have given up on TB. I just do a Nandroid backup now for emergencies.
was totally wracking my brain trying to figure out how to change the mount paths as some programs can't go high enough in the directory structure to switch over to /removable, or in the case of diceplayer you have to specify the path each time you want to browse from sd or internal. Its nice to have them all under /sdcard, thanks a bunch for the solution.

Swap SD card with External SD card [Tutorial]

Swapping external sd card with internal sd card has been achieved after a lot trial n error in NOKIA X2. Still there are some glitches in this.
We are using a init.d script for this. So we need init.d universal support enabled for NOKIA X2, but by default NOKIA X2 don't have init.d support.
To get the init.d universal support, the app which i used is PIMP MY ROM alpha. You can download this from playstore or by searching in google for the apk.
Now after getting the apk, install it.
1.Open it.
2.You will see Tools tab.
3.Click it.
4.Click Universal init.d support
5.Click activate.
6.It will ask for a system reboot.
7. do it.
Now that we have got the universal init.d support, one more step remains to achieve the swap.
Putting a swap script to init.d folder.
The swap script is attached with this tutorial.
Now download this swap script.
1.Install root explorer apk by downloading it from google.[note : root explorer is premium apk.]
2.Instead you can use root browser which is free to download from play store.
3.Now using any of the above app browse to /system/etc/init.d and paste the swap script.
4.Now long press the pasted swap script and you will see permissions options now click and enable the 3 unticked execute columns of Owner, Group and others respectively.
5.Reboot the system.
6. Open a file manager and press the sdcard0 and now you will see your sd card contents which was earlier your internal storage and click sdcard1 to see your internal sd contents.
Note : The change wont be displayed in the system settings because of some glitch. But actually the change has been done. To see this change you can use the default file manager and click the sdcard0 to see your external sd card contents in it.
Please contribute if you have anything more to add on this tutorial.
Also press thanks if you find it useful.
Feel free to express your suggestions.
Note : extract the zip file attached to obtain the script. Please post if this doesn't work for you.
Great Tutorial bro
grat work very thamks to you
Thanks
Thanks, it worked for me
Not working on my nokia x2 android.....plz help
Wich version of firmware we need?
REPLY :
merlin tm said:
Wich version of firmware we need?
Click to expand...
Click to collapse
The version of firmware doesn't matter.
REPLY :
sagarpatre said:
Not working on my nokia x2 android.....plz help
Click to expand...
Click to collapse
Have you obtained the init.d support and copied the swap script. If you have done so then you might not have changed the permissions.
To change permissions
1. Long press the file copied.
2. Click permissions.
3. Tick the columns under execute.
4. Then reboot.
If you have done these and still you didn't get the swap, please reply me.
Note : Please check your default file manager to see whether the swap has been done.
if the swap has been successfull then sdcard0 will show your external sd card contents.
Also remember not to delete any other script present in init.d and PIMP MY ROM.
I tried it yesterday and I realize it has many errors. After I finished it, I checked my phone memory in setting, "Ok, it's swaped". But when I opened it with ROOT EXPLORER, all the data in my memory card was lost but the space free was still 3,9gb (my memory card is 16gb).
georgejp said:
Have you obtained the init.d support and copied the swap script. If you have done so then you might not have changed the permissions.
To change permissions
1. Long press the file copied.
2. Click permissions.
3. Tick the columns under execute.
4. Then reboot.
If you have done these and still you didn't get the swap, please reply me.
Note : Please check your default file manager to see whether the swap has been done.
if the swap has been successfull then sdcard0 will show your external sd card contents.
Also remember not to delete any other script present in init.d and PIMP MY ROM.
Click to expand...
Click to collapse
kk...i will check
---------- Post added at 04:09 AM ---------- Previous post was at 03:57 AM ----------
sagarpatre said:
kk...i will check
Click to expand...
Click to collapse
its work....bt some problems are there
my sd card size only show 2.5gb usable 1.6gb.....bt i use 8gb.......so how to solve this??
REPLY :
lephuchung97 said:
I tried it yesterday and I realize it has many errors. After I finished it, I checked my phone memory in setting, "Ok, it's swaped". But when I opened it with ROOT EXPLORER, all the data in my memory card was lost but the space free was still 3,9gb (my memory card is 16gb).
Click to expand...
Click to collapse
A folder named 0 is automatically created in your sd card and the explorer will show you the contents inside this 0 folder which is acting as your internal sd card currently. To access you sdcard contents.
1. delete the swap script.
2. reboot
3. you will find your sd card contents
4. copy this contents to the 0 folder
5. now paste the swap script to the init.d
6. Change the permissions
7. Now check the root explorer you will find your sd card contents.
I think this will solve your problems and sorry for any trouble created.
REPLY :
sagarpatre said:
kk...i will check
---------- Post added at 04:09 AM ---------- Previous post was at 03:57 AM ----------
its work....bt some problems are there
my sd card size only show 2.5gb usable 1.6gb.....bt i use 8gb.......so how to solve this??
Click to expand...
Click to collapse
The sd card size won't be changing in the settings->storage because the android 4.3 system don't allow it. But the swap has been performed successfully you can observe it in the default file manager or whatever file manager you are using.
georgejp said:
The sd card size won't be changing in the settings->storage because the android 4.3 system don't allow it. But the swap has been performed successfully you can observe it in the default file manager or whatever file manager you are using.
Click to expand...
Click to collapse
yup....its work...thanks
georgejp said:
A folder named 0 is automatically created in your sd card and the explorer will show you the contents inside this 0 folder which is acting as your internal sd card currently. To access you sdcard contents.
1. delete the swap script.
2. reboot
3. you will find your sd card contents
4. copy this contents to the 0 folder
5. now paste the swap script to the init.d
6. Change the permissions
7. Now check the root explorer you will find your sd card contents.
I think this will solve your problems and sorry for any trouble created.
Click to expand...
Click to collapse
There's still one problem, when I swaped, some of apps I installed on phone memory and all the data/obb folder were lost, although I moved them to 0 folder. And if we remove the SD card, is there any errors?
REPLY :
lephuchung97 said:
There's still one problem, when I swaped, some of apps I installed on phone memory and all the data/obb folder were lost, although I moved them to 0 folder. And if we remove the SD card, is there any errors?
Click to expand...
Click to collapse
Didn't got such an error till now. I will check on it.
sagarpatre said:
kk...i will check
---------- Post added at 04:09 AM ---------- Previous post was at 03:57 AM ----------
its work....bt some problems are there
my sd card size only show 2.5gb usable 1.6gb.....bt i use 8gb.......so how to solve this??
Click to expand...
Click to collapse
Not show my sd card size on any file manager....it is only show sd card size on pc...when i connect my phone on pc....
Thanks, it worked for me
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
[/url][/IMG]
Thanks for your effort. I was eagerly waiting for this kind of trick. It worked with my X2.
Thanks , it's work ?
Sent from my NokiaX2DS using XDA Premium 4 mobile app
So with this mod, does it automatically increases the size of my RAM? Thanks

Enabling storage adoption in Marshmallow on the Honor 7

Note: This guide is only tested on the Honor 7 B320 Marshmallow release
The Marshmallow Beta for the Honor 7 is great, making a very nice device feel even better. But one thing missing is the option to 'adopt' microSD cards as Internal Storage, something that is particularly useful on the Honor 7 given its limited 16GB capacity.
Fear not, you can do it manually!
In order to set adopted storage up, you will need a computer with working 'adb' and, of course, a microSD card in your phone, the faster the better. Here's the process!
1. BACK UP THE DATA YOU HAVE ON YOUR MICROSD CARD. Your card will be formatted by this process, so make sure you have saved any pictures, videos etc. from your card to your PC before you start.
2. Decide how you want to split your card. You can either commit 100% of the card to internal storage, or split between internal storage and conventional SD. This option is useful if you like to unplug your card and put it in your PC. I would probably recommend committing the whole card.
3. Open your command window / terminal on your computer and type the 'adb shell' command (with your phone connected of course). You will need to enable USB debugging in developer settings (which in turn is displayed by tapping the build number of the device 5 times) in order to see the option.
4. Type 'sm list-disks' to list the disks available for adoption. It'll look something like below - take note of the disk ID (disk:179:160 in this example).
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
5. Partition the disk. For this we use the 'sm partition DISK TYPE RATIO' command. For example, to partition the disk above as fully adopted storage (aka private) I'd use the command 'sm partition disk:179:160 private'. If I wanted a 50/50 split between adopted and regular, I'd use the command 'sm partition disk:179:160 mixed 50'. Easy right?
6. This process will take a while, but when it's done, the Settings -> Additional Settings -> Storage view on your device should show the new Internal Storage. Note that, for some reason, the free space isn't reported correctly, however everything seems to work OK. When you install apps, they will generally install automatically to the adopted SD, although you can manually move things around if you want to, perhaps for performance reasons (the real Internal storage will likely always be a bit faster).
7. If you want to see how you are doing for space, you can use a third party tool such as FreeSpace or FreeSpace Plus.
And that's it! Let us know how you get on, and enjoy your new, expanded Honor 7!
P
interesting but what do i win with it
Hey mate, do you mind if i ask a few questions regarding the use of this?
The only thing i had to do, to get apps and download etc to save on the SD card was to change default storage to SD, in storage menu instead of internal.
Now everything i download or install is stored on my SD card. Huawei solved this by emulating your SD card to look like the internal storage.
This feature is in both 5.0.2 & 6.0.
I attached some photos. (Note: I already have some downloads and photos on my internal storage, took me a while to buy a sd card and i have been lazy so i haven't moved any files yet.)
FakkaHe said:
Hey mate, do you mind if i ask a few questions regarding the use of this?
The only thing i had to do, to get apps and download etc to save on the SD card was to change default storage to SD, in storage menu instead of internal.
Now everything i download or install is stored on my SD card. Huawei solved this by emulating your SD card to look like the internal storage.
This feature is in both 5.0.2 & 6.0.
I attached some photos. (Note: I already have some downloads and photos on my internal storage, took me a while to buy a sd card and i have been lazy so i haven't moved any files yet.)
Click to expand...
Click to collapse
In a nutshell, regular SD storage only allows you to put limited types of data on the card, with adopted storage everything can go on the card. It's a lot more 'set up and forget' than the old way.
P
paulobrien said:
In a nutshell, regular SD storage only allows you to put limited types of data on the card, with adopted storage everything can go on the card. It's a lot more 'set up and forget' than the old way.
P
Click to expand...
Click to collapse
Oh.. So even if i change the default storage, like i said, it will still save some data in the internal storage?
Edit: My bad i didn't read the post properly...
If i adopt, can i still use it as usual? I mean remove the sd card without anything happening to my files?
FakkaHe said:
Oh.. So even if i change the default storage, like i said, it will still save some data in the internal storage?
Edit: My bad i didn't read the post properly...
If i adopt, can i still use it as usual? I mean remove the sd card without anything happening to my files?
Click to expand...
Click to collapse
It depends how you partition. With full adoption, you can't read files from the card as they are all encrypted.
P
Tried it in B313 and is not working. The SDCard appears as damaged, and prompts me to format it. I noticed that the process "sm partition disk:170:169 private" just lasted about 5 seconds...which is weird if you say it takes a while...
PS: Got OTA update to B320.Gonna update and then try again.
---------- Post added at 09:00 PM ---------- Previous post was at 08:16 PM ----------
Nice! After updating to B320 it works flawlessly. I have been waiting for this for a long time...Thank you!!!
hi, i try to execute commands to obtain the storage setting as in the guide, but i am stuck in adb shell, with error.. can you help me?
i've installed adb setup 1.4.3 and hionor suite to have all drivers and software on set in windows 10, and when i go to adb shell, all goes well, but if i try sm list-disk, there is an error :
java.lang.IllegalArgumentException
what can i do?
ryouza said:
hi, i try to execute commands to obtain the storage setting as in the guide, but i am stuck in adb shell, with error.. can you help me?
i've installed adb setup 1.4.3 and hionor suite to have all drivers and software on set in windows 10, and when i go to adb shell, all goes well, but if i try sm list-disk, there is an error :
java.lang.IllegalArgumentException
what can i do?
Click to expand...
Click to collapse
On B320?
P
Yes firmware b320
Inviato dal mio PLK-L01 utilizzando Tapatalk
Hi, seems like I dont see the newly added internal storage anywhere. How can I add or remove files to it? Please help. I am totally confused.
In Settings -> Advanced Settings -> Storage you should see it, as per the screenshot.
Things will automatically install to it or you can move them around.
P
How badly would things explode if I started the phone without the SD card?
It's surprisingly tolerant. You'd just be missing the apps from the SD.
P
I've got this error on B320, Samsung Evo 64GB
Code:
Error: java.lang.IllegalStateException: java.util.concurrent.TimeoutException: Thread Binder_6 gave up waiting for partitionPrivate after 180000ms
Any ideas?
Too51oll said:
I've got this error on B320, Samsung Evo 64GB
Code:
Error: java.lang.IllegalStateException: java.util.concurrent.TimeoutException: Thread Binder_6 gave up waiting for partitionPrivate after 180000ms
Any ideas?
Click to expand...
Click to collapse
I had that with one card, I figured it was too slow and used a different one!
P
paulobrien said:
In a nutshell, regular SD storage only allows you to put limited types of data on the card, with adopted storage everything can go on the card. It's a lot more 'set up and forget' than the old way.
P
Click to expand...
Click to collapse
Yea! It really sounds. Going to adopt. Thanks Sir!
I used this on B330 and i´m a little bit confused.
System shows internal and sdcard 8gb free space
FreeSpace shows sdcard 29gb free but not an adopted sdcard
ES explorer doesn´t show any sdcard also other apps like airdroid show any sdcard just internal with 10gb ?
update:
after working with the phone (install apps, copy pictures) it seems that the adopted sdcard works properly
update 2:
there are now some apps that did not start. reinstalling doesn´t help. very strange
Bender007 said:
I used this on B330 and i´m a little bit confused.
System shows internal and sdcard 8gb free space
FreeSpace shows sdcard 29gb free but not an adopted sdcard
ES explorer doesn´t show any sdcard also other apps like airdroid show any sdcard just internal with 10gb ?
update:
after working with the phone (install apps, copy pictures) it seems that the adopted sdcard works properly
update 2:
there are now some apps that did not start. reinstalling doesn´t help. very strange
Click to expand...
Click to collapse
Can you post pics from your storage settings page?
P
Sent from my HUAWEI NXT-L29 using Tapatalk
I just made a factory-reset and try again to adopt the sdcard
I will report what happen then
update
after factory reset my phone can´t read the sdcard so i put the sdcard into my pc but windows says ´no disk´.
with partition wizard i saw 2 partitions, 16mb primary fat32 and 2nd with the rest of space
I tried to delete both partitions and format the sdcard but nothing happens.
maybe the card is dead...

How to extend storage using SD card space

-----------------------------------------------------------------------------------------------------------------------------------------------------------
TAKE NOTE I don't have this phone anymore, I can't help you as you deserve, I'm sorry.
Don't use this tutorial with last firmware, as Huawei changed some things and it's not working.
-----------------------------------------------------------------------------------------------------------------------------------------------------------
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:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
* 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.
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.
Install a 3rd party file app, like this one,and check 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).
thx work perfectly for me
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
AlexL84 said:
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
Click to expand...
Click to collapse
??
Pls explain how you make adb shell
Are you using windows?
danibus said:
??
Pls explain how you make adb shell
Are you using windows?
Click to expand...
Click to collapse
windows 10. cmd as admin
than I opened adb shell from the sdk\platform-tools directory
AlexL84 said:
windows 10. cmd as admin
than I opened adb shell from the sdk\platform-tools directory
Click to expand...
Click to collapse
Pls try this mini-adb this instead using sdk
https://drive.google.com/file/d/0B-kjfIFQdc9tUnl4c3NwejBXNTQ/view
If you have same error, no idea
AlexL84 said:
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
Click to expand...
Click to collapse
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.
danibus said:
Hi folks, this is a small tutorial to extend storage using SD space for P8 lite 2017.
-snip-
Click to expand...
Click to collapse
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:good:
Dragoboss said:
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:good:
Click to expand...
Click to collapse
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!
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 !
nonosann said:
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 !
Click to expand...
Click to collapse
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
Is this work on Nova lite?
Its dosent works! all looks OK but I dont have the space of my sdcard. its Total: 128Go dispo : -4,33.
I dont hunderstand why i have no room....
hellda said:
Its dosent works! all looks OK but I dont have the space of my sdcard. its Total: 128Go dispo : -4,33.
I dont hunderstand why i have no room....
Click to expand...
Click to collapse
In the OP it says to install a third party app to see the actual free space like a file manager, try that.
Enviado desde mi PRA-LX1 mediante Tapatalk
Thanks works magic, got some trouble to get it works on first time, problem seemed to be in external sd setting. Once set to use as external memory and formating all went just as explained. Thanks again Jan
Hi everyone, i've got issues with my P8 lite 2017 since I've done this trick.
Everything works great but when I wanna download something, my phone tell me it can't download because of there's no SD card.
So I got myself an SD card and i did the tutorial with adb and made the sd card as internal memory. But now when I try to update my apps from the Google Play store I get the Insufficient storage... :thinking:
had to redo this after receiving an OTA update. After the update it appeared that the adoptable storage was still there, but apps were writing to the internal storage only and the phone quickly ran out of space.
Even after redoing the ADB changes I had some trouble with Spotify which claimed there was no storage available and refused to launch. So I ejected the SD card, reinstall Spotify and then remounted the card - this seems to have fixed the issue.
Help @ mixed 60
After doing this command "adb....... mixed 60" it worked fine, but now my huaweii p8 lite 2017 only recognizes the 40% and can't read the 60% part of the disk. looks like it´s not mounted.
How can I mount this 60% of the disk? thanks
danibus said:
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!
Click to expand...
Click to collapse
Hello,
What happens if I remove the SD when the phone is turned off?
Or if i want to completely restore my phone?
Thanks for your help
Hi all,
First of all thank danibus very much for your tutorial, your help is really precious. I have applied your method at my P8 lite 2017 and I am currently using a third party app to check my storage. It seems to me that the only internal storage considered by the system is the sd card, and is not really considering the initial internal storage as a place to store data.
Is still possible to access the original internal storage to save/move/change files?
If yes how?
If not, since my internal storage has still 7 GB of free space, should I undo the procedure, wait until the internal storage is almost filled and then redo the procedure again?
Thanks a lot!

Trying to flash Elemental/SU, can't find stupid .zip files in TWRP....

Hey all - just updated to the latest software, now rerooting; I've got the latest version of TWRP working and both the Elemental and SU .zips put in the root directly of the SD card that's showing on my PC when I USB connect under "file transfer." But, I can't seem to see *any* of the same files either in File Explorer or my PC or in TWRP on the phone. I did click to mount "System" in TWRP, but it doesn't seem to make any difference and it doesn't stay when I reboot.
I'm in a bit of a holding pattern until this gets sorted out; in one thread, someone recommended reformatting internal storage - seems a bit of a nuclear option, but if it's the way to get this working, I'm for it!
Would very much appreciate any advice!
thetastycat said:
Hey all - just updated to the latest software, now rerooting; I've got the latest version of TWRP working and both the Elemental and SU .zips put in the root directly of the SD card that's showing on my PC when I USB connect under "file transfer." But, I can't seem to see *any* of the same files either in File Explorer or my PC or in TWRP on the phone. I did click to mount "System" in TWRP, but it doesn't seem to make any difference and it doesn't stay when I reboot.
I'm in a bit of a holding pattern until this gets sorted out; in one thread, someone recommended reformatting internal storage - seems a bit of a nuclear option, but if it's the way to get this working, I'm for it!
Would very much appreciate any advice!
Click to expand...
Click to collapse
Wiping internal storage will be always better choice!
Just transfer all your data(photos,videos, and anything you need) to external/OTG/PC before wiping.
For now you can try by, boot into TWRP > advance > file manager,
Go to those files and see if those files are visible in TWRP?
Or try to put same files to external memory card or OTG and see if those files are visible there? then flash them by selecting appropriate storage.
Well heck - no luck with advance/file manager, so I wiped internal storage - still nothing. It's like two completely different storages. I do have an SD card put in as internal storage - would that somehow be complicating things?
Many thanks!
thetastycat said:
Well heck - no luck with advance/file manager, so I wiped internal storage - still nothing. It's like two completely different storages. I do have an SD card put in as internal storage - would that somehow be complicating things?
Many thanks!
Click to expand...
Click to collapse
Have you tried selecting different storage?
That option is there when you go in install, there will be button to select storage.
Remove external SD and then put files to internal storage, and check. Also put files in different folder too and see if that folder is visible.
Yeah, unfortunately it only gives me three options for storage, and won't let me click on either of the last two, which read at 0 MB. So I should physically remove the SD card from my phone and then see what it gives me for available storage?
Really appreciate you patience here - thank you VERY much!
thetastycat said:
Yeah, unfortunately it only gives me three options for storage, and won't let me click on either of the last two, which read at 0 MB. So I should physically remove the SD card from my phone and then see what it gives me for available storage?
Really appreciate you patience here - thank you VERY much!
Click to expand...
Click to collapse
If you haven't inserted any of those, then only it will show 0. It's strange if it doesn't showing those files in file manager too.
Can you try moving other files, like photo, video or anything and see if those are visible. Did you try by creating any folder and put files in that or other folder?
Okay - under "Select Storage," here are my options:
Internal Storage (6133MB)
MicroSD (0MB)
USB OTG (0MB)
It won't let me select either MicroSD or USB OTG.
I wonder if this has something to do with the fact that after loading the newest OS update, I formatted the SD card as internal storage?
What I do get are:
boot
cache
data
dev
etc
firmware
license
oem
persist
proc
recovery
res
root
sbin
sdcard (only has one folder inside, called TWRP)
sdcard1 (nothing inside)
sideload
supersu
sys
system
tmp
twres
usb-otg
And here's what I get from File Explorer:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Super grateful for your help on this one!
SOLVED! Had to format data; basically resetting the whole phone. Files appeared just fine. Now redesignating the SD to internal storage. Many thanks for all the help!!

Categories

Resources