yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M] gadgetroid:
The Xperia M sure packs a lot in such a small device, but then, does it pack enough internal memory to install a huge number of applications? It does not. With just a little over 2 GB, it is very cumbersome to find that you cannot download data for large games. This guide aims to resolve that issue. Although it is not very user friendly at the moment (it requires you to type a few lines on the phone), I will get back to creating a script that you can execute this weekend.

Note:

This guide requires you to be rooted. For rooting, you can follow this guide.

And, that's it! You're almost done. Go to Settings > Storage and check the internal and external storage to see that they have been mounted. You can now install huge games and enjoy them on your M. :D This is a temporary workaround until this weekend as I will write a script to automate this once my exams are over. If anyone else wants to do it, they're welcome to!

Note:

You will have to type this again every time you reboot the device. A bit cumbersome, but I hope you can hold on till the weekend. :p

Credits:

[MENTION=236082]darz[/MENTION]
[MENTION=1542267]raw235[/MENTION]
[MENTION=2596418]mattiadj[/MENTION]
[MENTION=4605881]Ace King 34[/MENTION]
[Sony Xperia M] aerialus:
not work in FW XM Dual :(

how to swap internal and external in FW XMD ? :(
[Sony Xperia M] jereMarfil24:
[MENTION=4506311]gadgetroid[/MENTION] , will it work in Xperia M Dual 4.2 ?
[Sony Xperia M] gavanid:
It Worked!!!

Worked for me :):):):)

13 GB internal storage
[Sony Xperia M] gadgetroid:
I will need your help for that. If you can use ADB and pull these files for me and zip and upload here, it would certainly be very helpful.

Pull the folder "/dev/block/vold"

Open Terminal Emulator that you downloaded and run these scripts

cat /proc/partitions > partitions

Press enter

mount > mount

Then, on the computer, open a command prompt window (or terminal on Linux) and type in

adb pull /partitions

adb pull /mount

Put these two files in the zip along with the vold folder and post them here. I will look into it and provide you the guide.

Since it runs 4.2, I can't be very sure, as Sony may have changed device names. Once the above user submits the files, I will look into it and post the guide.
[Sony Xperia M] aerialus:
i never use ADB ,, but i will try,,

when i do

cat /proc/partitions > partitions

in terminal emulator, the result is "can't create partitions: read only file system"

what is my fault? :confused:
[Sony Xperia M] icoolguy1995:
Did u written su above?
[Sony Xperia M] gadgetroid:
Perhaps you aren't rooted. That is why the script in the OP didn't work for you either.

When you type in su in the terminal, do you get any prompt on your phone?

Or perhaps it could be that you haven't rooted the device completely. You need busybox for making any operations on the ~/ partition.
[Sony Xperia M] aerialus:
my device is already rooted and have Busybox installed,, :(

please look at my attachment
[Sony Xperia M] gadgetroid:
Have you used root fixer? As mentioned by the OP of the root thread? If you have ES File Explorer, just try mounting the system partition as r/w over there. If it reboots immediately, then you aren't rooted properly yet.
[Sony Xperia M] magicw:
If I understand right the command will create the files "partitions" and "mount" directly into the root path that's why it claims "r/o file system"

try

cat /proc/partitions > [COLOR="Red"]/sdcard/[/COLOR]partitions

and pull it on your computer then with

adb pull [COLOR="red"]/sdcard/[/COLOR]partitions

same with "mount"

this should create those files into the sdcard which is not read only.
[Sony Xperia M] aerialus:
in XM Dual no need use rootfixer anymore,,

just root with tools and success full root,,

ok i will try :fingers-crossed:
[Sony Xperia M] gadgetroid:
Yes. That is exactly what it does. It works if you put in sdcard
[Sony Xperia M] icoolguy1995:
Script

I have created a script for this. If OP gives me permission i can publish it.
[Sony Xperia M] aerialus:
pull partitions and mounts success,,

but when i try to pull folder "/dev/block/vold"

the result is " 0 files pulled, 0 files skipped"

see my attachment :o
[Sony Xperia M] gadgetroid:
Sure, go ahead. Publish it. :) Are you sure its working? Cause when I created a script, it used to give me errors. That is why I posted this huge tutorial. :p
[Sony Xperia M] icoolguy1995:
I have attached the script in attachments.

STEPS TO EXECUTE

1) Download script

2) place it in SD card and open any Explorer in which you can change permissions.

3) Go where you have placed script and change its permission (Thick all the boxes)

4) Execute it.

But it will last till a reboot only

Simple Way

1) Download script manager from play store

2) Execute script with it and tick the boot,su option and tick it is executable.

Your memory is swapped
[Sony Xperia M] gadgetroid:
I'll add it to the op soon. BTW, if you place the script in /data folder and set it to rw-r--r--, it will be easier. That way, the script won't be in the wrong drive after it's been switched. ;)
[Sony Xperia M] icoolguy1995:
No it will not work unless all the options are ticked on permission setting.
[Sony Xperia M] Antrikos48:
It works for me with rw-r--r--

This message was brought to you by my Sony Xperia M (C1905), using the XDA app.
[Sony Xperia M] gadgetroid:
Is the device connected? Type in the command below to see a list of the devices connected.

adb devices

Just a small tip: add ADB to your path on Windows. It makes it easier to execute the script from anywhere and you don't have to cd to the SDK folder all the time. ;)
[Sony Xperia M] aerialus:
yeah sure the devices is connected :)

see my attachment :)

by the way, Thx for Nice trik,, add ADB to windows PATH is very helpful for execute adb :D
[Sony Xperia M] gadgetroid:
Okay, using a file manager, tell me all the files under "/dev/block/vold/". Posting a screenshot would be better. ;)
[Sony Xperia M] aerialus:
okay,, see attachment for screenshot ;)
[Sony Xperia M] mikael_schiffer:
Bro, your method worked for me, of all the gazillion fail methods posted in XDA.

However can u tell me something

1) What actually is happening in here, my internal and external shows 14.83GB space, even my laptop is fooled into thinking both my internal and external is 16GB :D ...so my question is, can i store 14 Gb worth of files in internal memory? If i store 14Gb worth of files in internal, will it reflect on the external? After all, disk space dont just appear out of thin air, right?

2) If i install Asphalt 8,and i reboot my phone, where will the 1.8GB worth of game data files go? Will it dissapear?
[Sony Xperia M] Antrikos48:
No you are actually storing stuff in SD only. The phone is tricked into thinking SD is Internal and Internal is SD. If you reboot the phone you will see that Asphalt 8 is actually only on your SD.

This message was brought to you by my Sony Xperia M (C1905), using the XDA app.
[Sony Xperia M] ramprasad5394:
found a way to swap memory without SManager. made a zip for it. just one time flash. want me to post it?
[Sony Xperia M] Antrikos48:
Yes please

This message was brought to you by my Sony Xperia M (C1905), using the XDA app.
[Sony Xperia M] ramprasad5394:
There is already a script to swap internal with external memory. i just made it to work at boot without SManager

This is just for the stock ROM!!

how to install:

1.remove SManager if u already have it

2.flash the zip in recovery OR edit the files like i did

what i did:

place the script in system/etc/init.d (script is not mine. credits to whoever made it :D)

edited init.qcom.post_boot.sh and added the line sh /system/etc/init.d/ext2sd

this will execute the script post boot.

any script can be executed using this method , so it kinda provides init.d support to stock ROMS :)
[Sony Xperia M] ManzzaShahi:
reboot!!

everytime i run those commands in terminal emulator or even when run script provided my phone just reboots...
[Sony Xperia M] zepllin:
it ` s not work for m dual tnx
[Sony Xperia M] Antrikos48:
Do you have full root?

This message was brought to you by my Sony Xperia M (C1905), using the XDA app.
[Sony Xperia M] ManzzaShahi:
ya i have figured that out already. i am half rooted. i want to full root but i cant access that link which contain the tool be anto kuos so if anyone could upload that tool in any other site than it would be of great help!!:):)
[Sony Xperia M] gadgetroid:
I will provide the script shortly. Stay tuned
[Sony Xperia M] aser44:
One question :confused:

Before running a script do i have to copy all data from internal memory to sdcard so all aps may work properly ?

Or after running a script system is using apps stored in internal memory normally ?

When i put script in the sd card i have message that some file systems eg. sd-card dont allow permission changes.

I putted scipt to data folder, changed the permissions and it worked. My question about copping files is not actual, the data is somehow visible on sdcard :D

UPDATE

I must tell You that this method is little troublesome :P

Mayby it because i put the script to data folder, i dont know.

But all the apps that were installed in internal memory works but personal data isnt found. I think this is because apps are searching personal data in sdcard. And now to the thinf i mentioned earlier - copying alle the files from "old" internal storage to sdcard might solve the problem because for me after copying files from internal android/data/*.* everything goes smooth :)
[Sony Xperia M] zepllin:
thank you

i search the full of internet in 2 language turkish english but not find anything about this swaping in m dual

if u solve this problem for m dual it`s means you are 1st man to solved this problem ( man of xperia m ) :D

sorry i can`t speaking good engilish my brother :)
[Sony Xperia M] MahaDEVELOPER:
Waiting for the script. When will it be done?:D:fingers-crossed:
[Sony Xperia M] mikael_schiffer:
All my music files in my phone is duplicated. At first i thought of deleting the duplicate files from he Walkman app but when i deleted a mp3 file, the duplicate one became unplayable. All this problem started after i swapped internal and external.

What am i supposed to do? live with duplicated files forever??
[Sony Xperia M] Antrikos48:
I assume you have two folders with your music: one on SD and one on Internal. Create a file called ".nomedia" in one of them (leave it empty) and reboot your phone to update the media library (or use an app to do it)

This message was brought to you from my Sony Xperia M C1905 using Tapatalk.
[Sony Xperia M] mikael_schiffer:
Every time i reboot i have to type those long codes in the command prompt through Terminal Emulator app :(. Its a long process and i often mistype :(

Is there a way to have this swap automatically on boot? As in bypass that terminal Emulator method?

---------- Post added at 03:39 PM ---------- Previous post was at 03:00 PM ----------

@Antrikos48, your method doesnt work because this problem happens after running the swapping script. And you asked me to reboot phone. If i reboot phone i have to run the script from scratch again WHICH creates duplicate files

so here is what i did---

I cleared data and cache from Applications>Media Storage

After that my Walkman app became empty with No Songs.

When i checked Storage Internal showed 14GB while SD showed 2.05GB

I Unmounted SD and Mounted again

Now Storage Internal showed 14GB and SD showed 14 GB

Next i cut paste all my music files from one folder to another

Now Walkman App started refreshing

(All done without PC)

Btw, Xperia M speakers are LOUD and CRISP !! surprising..first time after buying the phone i'm listening to songs from phone speakers :D No Bass though, hehe this aint HTC One after all :D

Btw ,anyone got an idea how to make the swap run after boot, because i hate typing the script in terminal everytime :(
[Sony Xperia M] ramprasad5394:
did anybody even try my zip in post #29 ? :\

---------- Post added at 08:14 PM ---------- Previous post was at 08:10 PM ----------

that is what the zip i posted does! :rolleyes:

try it and report please.
[Sony Xperia M] Antrikos48:
I edited it manually. Works, thanks!

This message was brought to you from my Sony Xperia M C1905 using Tapatalk.
[Sony Xperia M] galant802:
hey there,

i got the whole thing running and Memory is swapped as it should but apps are still installed on the internal Memory. even if i dismount the SDcard (in reality the 2GB internal mem), all apps are stored there. Pictures from cam are stored on the sd Card.

any thoughts here?
[Sony Xperia M] Antrikos48:
App apk files are installed in /data/app. You are swapping /data/data. But in that partition huge .obb app files are stored and other app data (plus your data). You can't swap /data/app as your widgets will break. If you really want to move the apk's you need link2SD.

This message was brought to you from my Sony Xperia M C1905 using Tapatalk.
[Sony Xperia M] mikael_schiffer:
How do i enter recovery mode ?

All my videos are missing from Movies app and Pictures from Album app >_< I think this happened when i cleared data from App> Media Storage

However in my Quickpic app all the files are duplicated like it was with my Music player before.. grrr.

Damn this swapping thing is a pain! So much headache just to play (1.8GB sized)Asphalt 8 game :D
[Sony Xperia M] StraightEdgeKid:
Waiting for script man...

---------- Post added at 12:13 AM ---------- Previous post was at 12:11 AM ----------

Anyone succeeded to swap memory on M dual?

Can anyone let me know how to swap memory in M dual? Please help guys stucked here for very long...
[Sony Xperia M] cs098:
The script oddly enough is already made :P

all you need is script manager from google play.

works fine on my xperia m.
[Sony Xperia M] StraightEdgeKid:
It's not working for M dual mate.

Sent from public phone using coins.
[Sony Xperia M] a1bledhoz:
waiting for M dual swap...

i need install more gps app, its big size
[Sony Xperia M] betulin:
hi,I'm shamed to ask some elementary questions, but i'm truly noob. i'm sorry. i've been reading this thread trying to find out how to transform my external sd card as internal memory, joining both as just one. I'm a little lost. i don't know which is the best way to do this. With gadgetroid's guide, it's necessary to write a long code on the TE, at boot time. The ramprasad 5394 method, seems avoid this, but really, i've not been able to understand how to do it (i'm too noob. maybe, i would need some kind of tutorial). I've been google and found another way to do this. It consists in modify "vold.fstab" file in system/etc directory without necessity to do any partitioned the sd card (something, that i don't have any idea what it is for. maybe, to transform the sd external card as internal memory???). Neither i'm sure if some of this methods transforms both memories as one. Im sorry about my english and the long post.

Phone: Sony Xperia M C1905

kenel 3.4.0

15.1.C.1.17
[Sony Xperia M] StraightEdgeKid:
Try this, perfect guide for a noob.

http://xdaforums.com/showthread.php?p=45232179:thumbup:;);)

Don't forget to hit thanks button.

Sent from public phone using coins.
[Sony Xperia M] ramprasad5394:
try my method. it should work.

post back if it doesnt.
[Sony Xperia M] betulin:
Thank you for your quick responses. Pankaj.gaikar, I've been reading all this thread and saw that, although some people managed to do so, the majority had problems, so I dare not follow it. ramprasad5394, your method seems to work, unfortunately, I do not know how to do it (I'm rather clumsy,yet), I would appreciate if you could help me showing me how to do it step by step (avoiding flashing). Anyone know if it works the method of modifying the file or using swapper (avoiding flashing

Many thanks

Phone: Sony Xperia M C1905

kenel 3.4.0

15.1.C.1.17
[Sony Xperia M] ramprasad5394:
Download the ext2sd.zip from my other post.

extract it.

copy /system/etc/init.d/ext2sd to /system/etc/init.d/

copy /system/etc/init.qcom.post_boot.sh to /system/etc/

try ext2sd2.zip if the first one doesnt work.
[Sony Xperia M] betulin:
Ok, I think i understand :confused:.

- download the files to my PC

- copy them from my PC to /system/etc/init.d/ext2sd to /system/etc/init.d/ and /system/etc/init.qcom.post boot.sh to /system/etc/:silly:

- or first I need to copy them first to sd card and with Root explorer

Right? Ok, I'll try to get it

I'll do it, then i'll tell you how it's gone.
[Sony Xperia M] StraightEdgeKid:
Bro, I think you should go for a complete guide of your method, coz it's the only 100% surely working solution for swapping memory. Atleast make it on general forum. :beer:;)

Sent from public phone using coins.
[Sony Xperia M] betulin:
Thanks, i'm gonna try everyone till i'll get it:good:
[Sony Xperia M] andro-SYR:
No need to wait, use folder mount app its free,

I successfully installed and played nfs most wanted, on M dual.
[Sony Xperia M] betulin:
hi, I've followed the steps and get it right the first time (screenshot_1). Unfortunately, i downloaded and installed some app ok but when i tried to open them, they don't work. Appears a notice: "the xxxx stop". A lot of new folders were created in my sd-external card. I decided to unsinstall SM. Now, I've downloaded an install the same app, some of them run ok others not. The storage look like in screenshot _2 and screenshot_3. Any idea? What should i do?

Phone Xperia M c1905
[Sony Xperia M] ramprasad5394:
okay. the script would have not got executed properly. use SManager from play store to open the file ext2sd as a script and run it on boot. that should definitely work.!

and if you are on 4.1.2 u can try this. http://xdaforums.com/showthread.php?t=2521279

this definitely works and moves only game data to ext_sdcard.
[Sony Xperia M] betulin:
Thanks, for your answer. I think i'e get it following the steps from http://xdaforums.com/showthread.php?t=2430046. Now teh storage looks like the screenshot_1: Internal Storage/total space 29,71GB; SD CARD/ total space: 2.08GB. Only one question (perhaps very silly), i am very noob, In reality, how much space is available to install app such as ESC Pocket Guidelines?. The failure of this app, it could be a problem, not the mobile app?
[Sony Xperia M] Richardsentosa:
so i just flash the ramprasad .zip, aftter reboot, i looked at storage and the internal is 14GB, SD card is 14 gb too(after mounted sd card, the size become 2 gb). then i look to Apps, and the downloaded tab memory is still show 1.5 GB?
[Sony Xperia M] ramprasad5394:
downloaded apps will goto /data only.

only /data/media content will go to ext_sdcard.

apps, dalvik-cache, app data remain on the internal memory
[Sony Xperia M] Antrikos48:
To fix the problem where both SD and internal are the same, add this line at the top of your script (/system/etc/init.d/ext2sd if you flashed the zip):

sleep 60

This message was brought to you from my Sony Xperia M C1905 using Tapatalk.
[Sony Xperia M] Richardsentosa:
so, are this work? or not?

---------- Post added at 04:33 PM ---------- Previous post was at 04:31 PM ----------

oh thanks :D but this problem is not too a big problem :D
[Sony Xperia M] ramprasad5394:
yes it will.

internal memory is used for to store the following files.

1. app (apks)

2. data

3. dalvik-cache.

4. some logs and stuff

5. others ( includes the games and the other data of apps)

the script only makes the "others" to save to the external sd .. the rest stays on the internal sd .

as long as u dont fill up your app and data fields( am talking abt around 100+ apps.) u should be fine.
[Sony Xperia M] Souroking:
Guys any working method for m dual yet???

||""Playing Asphalt™ 8 Airborne on my sgy. :p :p LoLz.

Joke of the year. Gameloft devs will die if they hear this. :p""||
[Sony Xperia M] Susheel_22:
it works .. but all my music files and photos in album doesn't seem to work... after i reboot my device the albums and musics show up
[Sony Xperia M] Antrikos48:
That's because their path changed when you swapped

This message was brought to you from my Sony Xperia M C1905 using Tapatalk.
[Sony Xperia M] Susheel_22:
How to make it work without rebooting the device? Do the apps that I installed on SD card after swapping the memory will still be there after I reboot the device?
[Sony Xperia M] Antrikos48:
I've been running it at boot for a long time. Everything works, don't worry :D

This message was brought to you from my Sony Xperia M C1905 using Tapatalk.

---------- Post added at 12:10 PM ---------- Previous post was at 12:06 PM ----------

To make it at boot: http://xdaforums.com/showthread.php?p=46759148

This message was brought to you from my Sony Xperia M C1905 using Tapatalk.
[Sony Xperia M] Susheel_22:
ok i will try.. Thanx :)
[Sony Xperia M] betulin:
I'm sorry to ask, i have a mess in my phone and my head. I used the ramprasad5394 script ext2sd2.zip. Before thiis, I have to create etc/ini.d using pimp to rom. I saw that the d init.qcom.post_boot.s coming with it, already had the line sh /system/etc/init.d/ext2sd. At least, it's what I understood. So, I replace my init.qcom.post_boot.sh with the one coming with the script. Previously, I had copied the file ext2sd, which was in init zip folder in my init folder. Now I have another system/init.d and a lot of more things in the primayr folder system/etc/init.d. I'm sorry again but is hard to explain so i include sreenshots to show the problem. I understand they are too much but i am nor able to explain myself.

View attachment 2412595
[Sony Xperia M] ramprasad5394:
don't know why u extracted that folder there.

move ext2sd from /system/etc/init.d/ext2sd/system/etc/init.d to system/etc/init.d

move init.qcom.post_boot.sh from /system/etc/init.d/ext2sd/system/etc to system/etc

delete the folder ext2sd in system/etc/init.d
[Sony Xperia M] betulin:
Many thanks ramprasad5394. You don´tm why i did that, because i :silly::silly: I'm sorry. Now, I think everything is Ok, Isn't iit? I attached ScreenSh
[Sony Xperia M] betulin:
I hate to ask again. Could you tell me how i can store my pictures and music files in the biggest memory (sd-ext, now int). Thanks
[Sony Xperia M] ramprasad5394:
set your storage location to internal in camera app and wherever possible (sdcard). pics will store in memory card only(which is now your internal)

and its not sd-ext.

its sdcard(internal) and ext_card(external)
[Sony Xperia M] Richardsentosa:
uhh, but i think this problem is a big problem, because my V6 script always error --'

so like this:

sleep 60

mount -t vfat -o umask=0000 /dev/block/vold/179:33 /storage/sdcard0

mount -o bind /data/media /storage/sdcard1

are like that?
[Sony Xperia M] betulin:
Thanks ramprasad5394, It works Ok . you're great, you've achieved that even I can do it:good:
[Sony Xperia M] Antrikos48:
This is what i use. What error?

This message was brought to you from my Sony Xperia M C1905 using Tapatalk.
[Sony Xperia M] giridhargp:
Thank you bro,worked for me,now am running asphalt 8 and nfs most wanted
[Sony Xperia M] maddy143ded:
Here's to hoping that someone is kind enough to post a guide that works specifically for Dual Sim (C2004).

Bloody flipcart messed up my order and now i am stuck with dual sim instead of single sim that i wanted.
[Sony Xperia M] betulin:
Hi, just out of curiosity. I have installed ES file explorer and RU. With ES, after the last update, appears only a one memory, 59 gb. With RUthere are 2 memories the ext-sd as the internal and the storage as the ext-sd. Through, sttings/Apps appears 2 memories the same as in RU. Any idea?
[Sony Xperia M] giridhargp:
But after swaping music,video doesnt work sny fix for that?
[Sony Xperia M] haresh311999:
Any method for XM Dual......not happy by buying DS version...any method thanks in advance....:'(
[Sony Xperia M] SJ555:
Wut

Okay so i swapped them , but how do i get my stuffs working :p
[Sony Xperia M] haresh311999:
Can any make one to swap internal memory for XM Dual....
[Sony Xperia M] StraightEdgeKid:
Why dont you try one mate?

Sent from public phone using coins.
[Sony Xperia M] haresh311999:
Thanks.