[TUTO] Xperia M [SS/DS] Better method for extending storage - Sony Xperia M

Better method for extending storage in XMD Or using external at place of internal ​Hi, after searching in forums for swapping External 2 internal , i try all methods but it don't work for me with my XMDS build 15.5.a.1.5 JB 4.3, then i found this one without swapping
Requied:
1 - Rooted XM SS/DS or any Handset with emulated internal SdCard ( i try it on samsung galaxy pocket neo and it has work fine)
2 - FolderMount app
3 - BusyBox installed if you haven't install it from here
4 - Reboot Fix taken from here Credit to jinishpv
5 - Link2SD configured like in thread http://forum.xda-developers.com/showthread.php?t=1750888 , and the minimal size of sdext2 is between 1 up 1,5 GB (depending of update applications) the max is 2 GB for FAT16.
How it work?
this method merge and link folders existing folders from internal storage to external one used by application or user (physicaly are on external but logically are on internal or the system recognize the folder on internal memory but use storage from external)
ex: I pair blue-tooth folder in Int and EXT , if I receive a file from blue tooth by default the file wil be received to internal storage virtually stored on Internal but physically stored on external storage.
before mounting folders :
su
127|[email protected]:/ # df
df
Filesystem Size Used Free Blksize
/dev 420.4M 64.0K 420.4M 4096
/mnt/secure 420.4M 0.0K 420.4M 4096
/mnt/asec 420.4M 0.0K 420.4M 4096
/mnt/obb 420.4M 0.0K 420.4M 4096
/system 1183.2M 1023.2M 159.9M 4096
/cache 197.0M 19.4M 177.6M 4096
/persist 3.9M 84.0K 3.8M 4096
/firmware 64.0M 35.5M 28.5M 16384
/data 2053.7M 541.8M 1511.9M 4096
/data/sdext2 1459.8M 1033.8M 425.9M 32768
/lta-label 15.8M 4.3M 11.5M 4096
/mnt/shell/emulated 2053.7M 541.8M 1511.9M 4096
/storage/emulated/legacy 2053.7M 541.8M 1511.9M 4096
/storage/emulated 420.4M 0.0K 420.4M 4096
/storage/sdcard1 13517.3M 7628.5M 5888.8M 65536
/storage/emulated/0 2053.7M 541.8M 1511.9M 4096
/storage/emulated/0/Android/obb 2053.7M 541.8M 1511.9M 4096
/storage/emulated/legacy 2053.7M 541.8M 1511.9M 4096
/storage/emulated/legacy/Android/obb 2053.7M 541.8M 1511.9M 4096
Click to expand...
Click to collapse
after mount with mount folder app just we what's been added
/storage/emulated/legacy 2053.7M 541.8M 1511.9M 4096
/storage/emulated 420.4M 0.0K 420.4M 4096
/storage/sdcard1 13517.3M 7628.5M 5888.8M 65536
/storage/emulated/0 2053.7M 541.8M 1511.9M 4096
/storage/emulated/0/Android/obb 2053.7M 541.8M 1511.9M 4096
/storage/emulated/legacy 2053.7M 541.8M 1511.9M 4096
/storage/emulated/legacy/Android/obb 2053.7M 541.8M 1511.9M 4096
/data/media/obb/com.gameloft.android.ANMP.GloftA8HM 13517.3M 7628.5M 5888.8M 65536
/data/media/0/bluetooth 13517.3M 7628.5M 5888.8M 65536
/data/media/0/Download 13517.3M 7628.5M 5888.8M 65536
/data/media/0/SpeedSoftware 13517.3M 7628.5M 5888.8M 65536
/data/media/0/viber 13517.3M 7628.5M 5888.8M 65536
/data/media/0/WhatsApp 13517.3M 7628.5M 5888.8M 65536
Click to expand...
Click to collapse
little explain :
after mounting it create a new mount for folder what a destination is on sdcard1
How To do? :
1- download the app from https://play.google.com/store/apps/details?id=com.devasque.fmount&hl=fr and install it
2- grant super user authorizations
3- creating substitute folder by pairing from internel to external
4- click on add (+)
5- Creating pairs of folder
1st Method: by choosing folder
Choose Name of folder and paths in both source and destination , source will be the folder on internal and destination will be in external
Ex : obb folder for asphalt 8 and you can do it for DCIM , bluetooth , Download and for big folder on internal storage.
{
"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"
}
​2nd Method : from Apps Analyzer
1- Open apps analyzer form app
2- you click on app you want to move its folder to SDCARD Ex: Asphalt 8
3- Click on Create pair for obb or data
1 - you choose the folder for app (it will be choosed automaticaly for some apps)
and save
2- after done wait for mounting and merging folder the list for folder will be appears like above
with white pin not mounted with green one mounted and working
just click on wanted one for mounting/dismounting
Troubleshooting:
in the first time perhaps when it mounts folder it can reboot ( it happend for me whan i chose folder manualy)
remove all and make a first one by app analyzer , if error permissions appears FolderMount ask you if do want patch the rom choose yes and reboot.
then you can mount folder manualy
and enjoy with more space
Results
and here is the result without Link2SD
​after Adding LINK2SD
​I hope that will helpfull and Sorry for my english!!!

Does it work with half root (Towel Root)?

my phone is rooted with kingoroot and it work fine
towelroot not tested

kirev said:
Does it work with half root (Towel Root)?
Click to expand...
Click to collapse
test it and post your results

rafik23 said:
test it and post your results
Click to expand...
Click to collapse
Soon...

why you dont try full root withe towel root here http://forum.xda-developers.com/xperia-m/general/towel-root-steps-to-root-t2789990

Thanks, I will!

kirev said:
Does it work with half root (Towel Root)?
Click to expand...
Click to collapse
kirev said:
Thanks, I will!
Click to expand...
Click to collapse
i wait your result ...

Towel root make half root when you reset phone that means you loose supersu not su binaries
Sent from my C2005 using XDA Premium 4 mobile app

Hi, last night I tried every method to install Link2SD but all failed
I want to try your method because our phone is similar (firmware version), but I need information about these:
1. What partition format do you use for your 2nd partition. FAT32 or EXT2/3/4?
2. I already rooted my phone using Towelroot. SuperSU works fine. Do I have to reroot it using your root method (kingoroot)?
Thanks in advance

amahgfur said:
1. What partition format do you use for your 2nd partition. FAT32 or EXT2/3/4?
2. I already rooted my phone using Towelroot. SuperSU works fine. Do I have to reroot it using your root method (kingoroot)?
Click to expand...
Click to collapse
1. Use ext4 for your Link2SD partition of approx. 2GB and FAT32 for your primary partition i.e. the rest of the Micro SD card.
If using a MicroSD 32GB card or larger, you should consider using a 64K cluster size when partitioning FAT32.
I use MiniTool Partition Wizard on a MS Windows system.
The only consideration for using a Link2SD FAT32 partition instead of ext4 is that any old system can read files on a FAT32 partition.
There are however many ext4 file readers for MS Windows systems and thus ext4 is the best option for the Link2SD partition.
With the SD card inserted into the phone and upon the first startup of Link2SD app, select an ext4 partition to mount and restart your phone.
I would suggest purchasing the Link2SD Plus app as it provides a link to SD card for app data too.
2. Root access is just root access. If it looks like a duck and it quacks like a duck, it's a duck.
If you're successfully using SuperSU with a full root, your should be fine.
I use Framaroot to gain full root access myself, when most people use other methods.
hgn66 said:
I just tried FolderMount. After moving first app (via app analyzer) the phone just keep rebooting and after each time, just about 30 sec for next reboot! Deleting FolderMount and the phone stops rebooting...
So I don't know is it really possible to move apps to sd card on Sony Xperia M? I searched lots of forums and tested many methods... Seems Impossible...
Click to expand...
Click to collapse
[1] Configure full root access for a locked bootloader on C1905 (test and confirm stable)
[2] Configure Link2SD on a 2GB ext4 partition and move apps and data(Link2SD+) to external SDCard ext4 partition (test and confirm stable)
[3] Configure FolderMount and link Internal folders to external SDcard folders (test and confirm stable)
No reboots.
This is VERY possible as that's how I have an Xperia C1905 configured.
Using this method, camera thumbnails no longer use up space on internal storage if you've linked folder DCIM.
Using this method both sdcard0 and sdcard1 point to the same files on the external SDcard for the folders you have linked, thus eliminating internal/external folder location confusion and free space on internal storage.
Using a high read/write 64GB SDcard, one has great storage flexibility and internal storage remains static at approx 1.6GB free.

I just tried FolderMount. After moving first app (via app analyzer) the phone just keep rebooting and after each time, just about 30 sec for next reboot! Deleting FolderMount and the phone stops rebooting...
So I don't know is it really possible to move apps to sd card on Sony Xperia M? I searched lots of forums and tested many methods... Seems Impossible...
rafik23 said:
Better method for extending storage in XMD Or using external at place of internal ​Hi, after searching in forums for swapping External 2 internal , i try all methods but it don't work for me with with my XMDS build 15.5.a.1.5 JB 4.3, then i found this one without swapping
Requied:
1 - Rooted XM SS/DS
2 - FolderMount app
3 - BusyBox installed if you haven't install it from here
4 - Reboot Fix taken from here Credit to jinishpv
5 - Link2SD configured like in thread http://forum.xda-developers.com/showthread.php?t=1750888 , and the minimal size of sdext2 is between 1 up 1,5 GB (depending of update applications) the max is 2 GB for FAT16.
How it work?
this method merge and link folders existing folders from internal storage to external one used by application or user (physicaly are on external but logically are on internal or the system recognize the folder on internal memory but use storage from external)
ex: I pair blue-tooth folder in Int and EXT , if I receive a file from blue tooth by default the file wil be received to internal storage virtually stored on Internal but physically stored on external storage.
before mounting folders :
after mount with mount folder app just we what's been added
little explain :
after mounting it create a new mount for folder what a destination is on sdcard1
How To do? :
1- download the app from https://play.google.com/store/apps/details?id=com.devasque.fmount&hl=fr and install it
2- grant super user authorizations
3- creating substitute folder by pairing from internel to external
4- click on add (+)
5- Creating pairs of folder
1st Method: by choosing folder
Choose Name of folder and paths in both source and destination , source will be the folder on internal and destination will be in external
Ex : obb folder for asphalt 8 and you can do it for DCIM , bluetooth , Download and for big folder on internal storage.
​2nd Method : from Apps Analyzer
1- Open apps analyzer form app
2- you click on app you want to move its folder to SDCARD Ex: Asphalt 8
3- Click on Create pair for obb or data
1 - you choose the folder for app (it will be choosed automaticaly for some apps)
and save
2- after done wait for mounting and merging folder the list for folder will be appears like above
with white pin not mounted with green one mounted and working
just click on wanted one for mounting/dismounting
Troubleshooting:
in the first time perhaps when it mounts folder it can reboot ( it happend for me whan i chose folder manualy)
remove all and make a first one by app analyzer , if error permissions appears FolderMount ask you if do want patch the rom choose yes and reboot.
then you can mount folder manualy
and enjoy with more space
Results
and here is the result without Link2SD
​after Adding LINK2SD
​I hope that will helpfull and Sorry for my english!!!
Click to expand...
Click to collapse

amahgfur said:
Hi, last night I tried every method to install Link2SD but all failed
I want to try your method because our phone is similar (firmware version), but I need information about these:
1. What partition format do you use for your 2nd partition. FAT32 or EXT2/3/4?
2. I already rooted my phone using Towelroot. SuperSU works fine. Do I have to reroot it using your root method (kingoroot)?
Thanks in advance
Click to expand...
Click to collapse
i use FAT16 i have used FAT32 but it does'nt work (error script etc....), then i follow the tutorial litterally http://forum.xda-developers.com/showthread.php?t=1750888 . towelroot or kingo root the phone is rooted i dont know what's a différence technically. i just know root is installing SU binaries in system folder , an supersu.apk can be installed separetly, in full root the superSU.apk dont be removed when reset phone. but half rooted whan you reset you must reinstall again

hgn66 said:
I just tried FolderMount. After moving first app (via app analyzer) the phone just keep rebooting and after each time, just about 30 sec for next reboot! Deleting FolderMount and the phone stops rebooting...
So I don't know is it really possible to move apps to sd card on Sony Xperia M? I searched lots of forums and tested many methods... Seems Impossible...
Click to expand...
Click to collapse
have you try to apply rebootfix ? try install busybox and test
http://forum.xda-developers.com/showthread.php?t=2430046

Android Bob said:
1. Use ext4 for your Link2SD partition of approx. 2GB and FAT32 for your primary partition i.e. the rest of the Micro SD card.
If using a MicroSD 32GB card or larger, you should consider using a 64K cluster size when partitioning FAT32.
I use MiniTool Partition Wizard on a MS Windows system.
The only consideration for using a Link2SD FAT32 partition instead of ext4 is that any old system can read files on a FAT32 partition.
There are however many ext4 file readers for MS Windows systems and thus ext4 is the best option for the Link2SD partition.
With the SD card inserted into the phone and upon the first startup of Link2SD app, select an ext4 partition to mount and restart your phone.
I would suggest purchasing the Link2SD Plus app as it provides a link to SD card for app data too.
2. Root access is just root access. If it looks like a duck and it quacks like a duck, it's a duck.
If you're successfully using SuperSU with a full root, your should be fine.
I use Framaroot to gain full root access myself, when most people use other methods.
[1] Configure full root access for a locked bootloader on C1905 (test and confirm stable)
[2] Configure Link2SD on a 2GB ext4 partition and move apps and data(Link2SD+) to external SDCard ext4 partition (test and confirm stable)
[3] Configure FolderMount and link Internal folders to external SDcard folders (test and confirm stable)
No reboots.
This is VERY possible as that's how I have an Xperia C1905 configured.
Using this method, camera thumbnails no longer use up space on internal storage if you've linked folder DCIM.
Using this method both sdcard0 and sdcard1 point to the same files on the external SDcard for the folders you have linked, thus eliminating internal/external folder location confusion and free space on internal storage.
Using a high read/write 64GB SDcard, one has great storage flexibility and internal storage remains static at approx 1.6GB free.
Click to expand...
Click to collapse
have you do it successefull?

rafik23 said:
have you do it successefull?
Click to expand...
Click to collapse
Yes, I have done it successfully.
Now just living the life dude, living the life.
I've been using a C1905 with root access(Locked BL), 64GB SanDisk Extreme and Link2SD Plus(has data offload) for almost a year.
Installed FolderMount about a month ago just to test if it'd work with WhatsApp as a media offload to SDCard.
Worked so well, I added Pictures,Videos,Music,Downloads,Camera(pesky thumbnails) and a couple of apps which still used internal storage for data.
Now see a continued 1.6GB of free internal flash.
No problems and not really expecting any.
External Link2SD 2GB partition created as ext4 on a SanDisk 64GB card with remainder formatted as FAT32.
When using Link2SD and FolderMount you see funny figures in settings->storage as symbolic links are ignored and reported space used/available now exceeds 2GB

rafik23 said:
i wait your result ...
Click to expand...
Click to collapse
I did it. Nothing special, first full root with Towel Root (and fix). I installed Link2SD with 4GB ext4 second partition, moved (bravely) ALL programs with Create Link and restarted the phone. It took a long time to reboot, I thought the phone was stuck on phone operator's logo, so I removed the battery. The second time it was also long reboot, but I just left the phone to boot and when I went back - it was just fine! Now the reboot takes a long time, there's some smallish lag but generally Link2SD works as advertised
THANKS!

when you use foldermount for any data or games what take a want a big storage you gain more
can u upload a shot for memory storage ?

Dear Android Bob, does this method work on C2005? I'm about to change my phone and get a Galaxy just because I hate sony for this!

[C1905/C2005] both working with Link2SD and Foldermount
hgn66 said:
Dear Android Bob, does this method work on C2005? I'm about to change my phone and get a Galaxy just because I hate sony for this!
Click to expand...
Click to collapse
Yes, Link2SD (paid version with data offload) and Foldermount work as designed on a C2005.
I have a C1905 and a C2005 and both are working without problems using Link2SD and Foldermount.
Most of the application data is 'pulled' off the internal NAND memory using Link2SD, but some internal user data from the likes of WhatsApp and etc still need Foldermount to link their user data to the SD card.
I format cards as FAT32 for the primary (larger) partition with a cluster size of 32K and the Link2SD partition as ext4 at around 2-4GB .
Generally, I have over 1.6GB NAND memory (internal flash) free on both phones
You MUST have full root (not half-root) configured on the phone and you shouldn't have any problems with a XM or XMD phones and a ext4 partition (~2GB) on an external micro SD card.
I would also suggest a U1 Micro SD card instead of a conventional Class10 card (~10MB as max write)
U1 cards normally have write speeds over or approaching 20MB (U1 standard states write speeds over 10MB)
This just means the Micro SD card is not limiting I/O and slowing the phone down with all the apps/data now residing on the external card.
A C1905 with a SanDisk Extreme 64GB card seems to chug along pretty well. (~4GB ext4 Link2SD partition)

Related

[Q] Data on SD Partition, System and SWAP on NAND.

Hello...
Due to the corruption of the Data partition, i've installed android with System on NAND, data on SD Partition. Now, this leaves a few megs of space on NAND unused.
I've used atools, configured as i thought it would work:
{
"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"
}
Yet upon install and boot, i find out the System is on mtdblock2 (i do have mtdblock0 and mtdblock1). No swap partition mounted.
Could any of you kindly advise ? have I done something wrong ? Is this procedure... inadvisable ?
sry for OT.. but which batt do you have?
daedric said:
Hello...
Due to the corruption of the Data partition, i've installed android with System on NAND, data on SD Partition. Now, this leaves a few megs of space on NAND unused.
I've used atools, configured as i thought it would work:
Yet upon install and boot, i find out the System is on mtdblock2 (i do have mtdblock0 and mtdblock1). No swap partition mounted.
Could any of you kindly advise ? have I done something wrong ? Is this procedure... inadvisable ?
Click to expand...
Click to collapse
I dunno why that wont work. If I were you I would just use Sys on nand, and then put data on an ext2.img and then swap on a swap partition of the SD card.
Michga said:
sry for OT.. but which batt do you have?
Click to expand...
Click to collapse
2800 mAh. Cameron Sino.
aceoyame said:
I dunno why that wont work. If I were you I would just use Sys on nand, and then put data on an ext2.img and then swap on a swap partition of the SD card.
Click to expand...
Click to collapse
And all that NAND waisting ? Why not use it as swap... its faster than any SD you put there... We're already slowed down by having DATA and Dalvik Cache on SD...
how about this ;
/system and /data on Nand.
/data/app and /data/app-private on sd ext partition (symlink)(a2sd)
reduce the wasting space.
vellowax said:
how about this ;
/system and /data on Nand.
/data/app and /data/app-private on sd ext partition (symlink)(a2sd)
reduce the wasting space.
Click to expand...
Click to collapse
Shared preferences would still be on data.... dalvik would still be on data...
Data... would still corrupt.
I referred WASTED space, by having Data on SD (being it in a partition or a img), and all that NAND... empty... unused.
Why not repartition the NAND. I would have it then be 100% DATA and then nand and swap on SD. I just don't think we have swap working with the nand yet.
aceoyame said:
Why not repartition the NAND. I would have it then be 100% DATA and then nand and swap on SD. I just don't think we have swap working with the nand yet.
Click to expand...
Click to collapse
You sentence makes no sense. 100% dATA and NAND AND SWAP on SD ?
as for the last sentence... NAND... is a block device... we can write to it with DD no ? we can format a block device, as we see fit.
What you can argue... is that NAND was not meant/planed... for highly changing and volitile... SWAP drive.
I meant with the slider in a tools. Like for instance, I have mine set to 100% system right now with the build I am testing. I am saying it almost sounds like you want as little as possible in system with as much as possible in data. That is why I suggested sys in sd. That way once you boot everything else that you want to run is on nand in /data. The only reason I am saying swap my not work on nand is just due to the way things are mounted on our kaiser. We are not using a traditional way to mount our file systems. They get mounted through a script as it is right now.
aceoyame said:
I meant with the slider in a tools. Like for instance, I have mine set to 100% system right now with the build I am testing. I am saying it almost sounds like you want as little as possible in system with as much as possible in data. That is why I suggested sys in sd. That way once you boot everything else that you want to run is on nand in /data. The only reason I am saying swap my not work on nand is just due to the way things are mounted on our kaiser. We are not using a traditional way to mount our file systems. They get mounted through a script as it is right now.
Click to expand...
Click to collapse
Linux boots with a complex list of scripts. look at conf.d in any major distro...
or perhaps sysconfig... doesn't matter. We can mount the filesystems from a script, or form a script parsing /etc/fstab and running the appropriated mount.fs_here to mount it.
I understand what you say, but what HAS me more confused... is that i said Atools SYS on NAND partition 2, SWAP on partition 3.
I got system on mtdblockp2, there was p1 and p0 for reasons... i don't know.
Now, let me get this straight, to clear doubts.
We can only have, as of yet, RO filesystems on NAND, or filesystems i don't care what they contain.
Data.. is mounted RW, frequently altered. It would be obvious to have it on NAND, for speed, but to to the data corruption issue, we must have it on SD.
We can have System on NAND, its mounted RO, very rarely changed... so it SHOULD be safe. And we can have SWAP there too, i really don't care its condition after a reboot/crash
In another way of thinking... perhaps the Kernel devs can enlighten me here.
for the MicroSD card, i have in /dev/block/
mmcblk0 ; mmcblk0p1 ; mmcblk0p2 ; mmcblk0p3
but for mtd... i only get mtdblock0 ; mtdblock1 ; mtdblock2. Where's the "mother device" ? When we plug a usb card to a linux system, we get a perhaps, /dev/sdc. each partition will be sdc1, sdc2, sdc3 and so on.
Now, for the NAND, mtdblock... i don't get a mother device (don't know better term). I can fdisk -l the microsd, but not the nand...
daedric said:
Linux boots with a complex list of scripts. look at conf.d in any major distro...
or perhaps sysconfig... doesn't matter. We can mount the filesystems from a script, or form a script parsing /etc/fstab and running the appropriated mount.fs_here to mount it.
I understand what you say, but what HAS me more confused... is that i said Atools SYS on NAND partition 2, SWAP on partition 3.
I got system on mtdblockp2, there was p1 and p0 for reasons... i don't know.
Now, let me get this straight, to clear doubts.
We can only have, as of yet, RO filesystems on NAND, or filesystems i don't care what they contain.
Data.. is mounted RW, frequently altered. It would be obvious to have it on NAND, for speed, but to to the data corruption issue, we must have it on SD.
We can have System on NAND, its mounted RO, very rarely changed... so it SHOULD be safe. And we can have SWAP there too, i really don't care its condition after a reboot/crash
In another way of thinking... perhaps the Kernel devs can enlighten me here.
for the MicroSD card, i have in /dev/block/
mmcblk0 ; mmcblk0p1 ; mmcblk0p2 ; mmcblk0p3
but for mtd... i only get mtdblock0 ; mtdblock1 ; mtdblock2. Where's the "mother device" ? When we plug a usb card to a linux system, we get a perhaps, /dev/sdc. each partition will be sdc1, sdc2, sdc3 and so on.
Now, for the NAND, mtdblock... i don't get a mother device (don't know better term). I can fdisk -l the microsd, but not the nand...
Click to expand...
Click to collapse
Hm, not sure how you have yours setup, but I have mtdblock0-3 under /dev/block, and even have mtd0(ro)-3(ro) under /dev/mtd... Did you leave the Alter system and data checked? Mine's at the default 101MB for /system and rest for /data, as I can't change mine anyways, as it can't mount mtdblock3 cause the device cannot be found for some odd reason.
Basically here is what I'm currently doing with my 2.6.32 kernel with both system and data on NAND. I install apps and odex every single app in /data/app partition (this enables me to remove dalvik-cache on /data partition). Then I use Ubuntu and open my androidinstall.tgz and move all the apps that I odexed to /system/app fill up my partition to about 99 meg (Warning: not all /data/apps are functional in /system/app folder). Then I reinstall androidinstall.tgz with a full system partition. What ever app that can't be installed in system/app, I install again in my /data/app and odex it. This will fill up your system folder and you will have a lot of space in /data folder. I currently have 60mb free in my /data partition which is great, no errors for 4 days (1st day reboot, 2nd day battery pull, 3rd and fourth day running continously).
So basically, I maximize the use of the system partition by adding odexed apps, then remaining apps in data partition and odex it. BTW, the rom I'm using is odexed so I have no need of dalvik-cache thus freeing up a lot of data partition space
daedric said:
for the MicroSD card, i have in /dev/block/
mmcblk0 ; mmcblk0p1 ; mmcblk0p2 ; mmcblk0p3
but for mtd... i only get mtdblock0 ; mtdblock1 ; mtdblock2. Where's the "mother device" ? When we plug a usb card to a linux system, we get a perhaps, /dev/sdc. each partition will be sdc1, sdc2, sdc3 and so on.
Now, for the NAND, mtdblock... i don't get a mother device (don't know better term). I can fdisk -l the microsd, but not the nand...
Click to expand...
Click to collapse
Bad Naming? or is this like the diff between a primary and extended partition?
the mtd hasn't a "mother device" so there is this type of naming
Krazy-Killa said:
Hm, not sure how you have yours setup, but I have mtdblock0-3 under /dev/block, and even have mtd0(ro)-3(ro) under /dev/mtd... Did you leave the Alter system and data checked? Mine's at the default 101MB for /system and rest for /data, as I can't change mine anyways, as it can't mount mtdblock3 cause the device cannot be found for some odd reason.
Click to expand...
Click to collapse
I did Alter the system and data partition. Look at the screenshot in 1st post.
clemsyn said:
Basically here is what I'm currently doing with my 2.6.32 kernel with both system and data on NAND. I install apps and odex every single app in /data/app partition (this enables me to remove dalvik-cache on /data partition). Then I use Ubuntu and open my androidinstall.tgz and move all the apps that I odexed to /system/app fill up my partition to about 99 meg (Warning: not all /data/apps are functional in /system/app folder). Then I reinstall androidinstall.tgz with a full system partition. What ever app that can't be installed in system/app, I install again in my /data/app and odex it. This will fill up your system folder and you will have a lot of space in /data folder. I currently have 60mb free in my /data partition which is great, no errors for 4 days (1st day reboot, 2nd day battery pull, 3rd and fourth day running continously).
So basically, I maximize the use of the system partition by adding odexed apps, then remaining apps in data partition and odex it. BTW, the rom I'm using is odexed so I have no need of dalvik-cache thus freeing up a lot of data partition space
Click to expand...
Click to collapse
This, this is one of the things everyone should do. On every release. 'course that's my opinion. But its pointless to the question.
l1q1d said:
the mtd hasn't a "mother device" so there is this type of naming
Click to expand...
Click to collapse
Is there a chance, that the partition is being created correctly, but the dev or block/dev simply not being created ??
update: indeed there is. I removed the Alter tables check, and now i have mtdblock0 through 3. System is mtdblock2.
I would assume, usually data would be on mtdblock3. yet 'swapon /dev/block/mtdblock3' gives me 'Input/Output Error'
you need to mkswap to the nand partition but it isn't a good idea because the nand has a limited number of read/write cycle
l1q1d said:
you need to mkswap to the nand partition but it isn't a good idea because the nand has a limited number of read/write cycle
Click to expand...
Click to collapse
every device has a read/write limit. NAND is specially LOW.
What i did:
mkdir /nand3
touch /dev/loop0
mount --bind /dev/block/loop0 /dev/loop0
mount /dev/block/mtdblock3 /nand3
dd if=/dev/zero of=/nand3/swapfile.img bs=1M count=100
losetup /dev/loop0 /nand3/swapfile.imf
mount -t swap /dev/loop0 swap
I got my swap on nand... i still have to deal with yaffs, but that might have its advantages, in reducing writes do the nand (against a pure swap partition)
After that i edited /system/bin/userinit.sh to reflect those commands. Should be enough for now...
daedric said:
Data... would still corrupt.
Click to expand...
Click to collapse
shutdown.d ?
vellowax said:
shutdown.d ?
Click to expand...
Click to collapse
Please explain.
daedric said:
Please explain.
Click to expand...
Click to collapse
Sorry mate, don't take it too serious. its just our impression for unclean shutdown ( if we have init.d, why don't we create shutdown.d )
But, why /system/bin/shutdown not really done its job.

[GUIDE] Link2SD for Dummies | Samsung Galaxy Young

Link2SD for Dummies | Samsung Galaxy Young
NOTE:
I spent hours updating my guides and I don't ask you to press that THANKS button, be kind enough not to copy my guides to other forums. I know some noobs want to make a name on other forum boards... but hey, that's not an excuse! ​ UPDATES:
05-26-2012
Added screenshots
Added list of compatible ROMS
Corrected some typos
REQUIREMENTS:
Link2SD [DOWNLOAD]
Rooted Samsung Galaxy Young
ROM that supports Link2SD
SD Card with 2 partitions(FAT/FAT32 | EXT2/EXT3/EXT4)
Tested On:STOCK:
S5360_DXLC1_OLBLA1_DXLC1
Custom ROMS:
ChobitsDigitalis Legacy v1.6 and v1.8
Link2SD Guide for Samsung Galaxy Young
{
"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"
}
INITIAL SETUP
1. Download Link2SD from Google Play Store (previously Android Market)
2. Root your phone (if not rooted)
Verify that you have Custom ROM that supports Link2SD ROMS that support Link2SD (tested by me)
ChobitsDigitalis v1 to v1.6 Update (The best ROM for SGY to date) | (Android Development Section)
Hybrid ROM (Android Development Section)
3. Partition your SD Card. (preferably via MiniTool Partition Wizard 7 or up) for SD cards 2GB or LowerPartition 1:
Label: Android-SD
File System: FAT
Partition Size(in MB): 1536 MB (1.5GB for 2GB SD Cards) or 836MB (for 1GB SD Cards)
Partition 2:
Label: Android-EXT(EXT Number): Ex. Android-EXT2/EXT3 or EXT4
File System: EXT3 (preferable file system)​NOTE:
EXT2 is old, EXT4 is the fastest among 3 but not compatible in all ROMS and often requires kernel that supports EXT4, so go for EXT3, fast and mounts on most ROMS.
For SD Cards 4GB and up, IT IS ADVISED NOT TO SET EXT PARTITION SIZE MORE THAN 1GB.
4. Install Link2SD
5. Open Link to SD and select the appropriate file system of your second partition and the tap on OK.
6. Link2SD will require you to restart your phone, do it after step 7.
7. To make sure everything is working fine take a note of your current storage information by tapping on Menu > Storage Info then restart afterwards.
8. After reboot, open Link2SD and filter applist to show User Apps by tapping on the funnel icon and then select User.​MOVING APPS TO SECOND PARTITION
9. To move an app to SD's second partition, tap an application and then tap on Create Link. Follow the guideline below:For Applications (Root Apps/Games/Normal Apps), put a check on the following:
Link application file (the .apk file itself)
Link dalvik-cache file
Link library file (if an app have lib files)
For Widgets/Live Wallpapers installed on SD Card by default:
Link application file (the .apk file itself)
Link dalvik-cache file
Link library file (if an app have lib files)
NOTE:
Moving an application to Strage Card will move the app on your 1st partition not the second partition which is not good as it will eat up free space for your media files.​
DELETING BLOATWARES
10. To delete a bloat system app, filter applist to show System Apps by tapping on the funnel icon and then select System.
11. Tap an application the tap on Actions and select Uninstall from the popup menu.
12. If you know what you're doing (deleting bloat system apps), you simply ignore the warning.NOTE:
Do not delete OEM Apps (Ex. Samsung Apps for Samsung Phones) as it may cause you problems if the app you deleted is required by your phone to perform some functions.​
LINKING DALVIK-CACHE FILES
13. Do this to save more space on your phone's internal memory. Tap on Menu > More > Link dalvik-cache file from the popup menu.​
Great Guide!
Its easy to understand and great formated =)
Thank your for making this Guide
OR
[LINK][GUIDE]Link2SD
CleZZiX said:
Great Guide!
Its easy to understand and great formated =)
Thank your for making this Guide
Click to expand...
Click to collapse
I had a hard time following other guides and when I finally able to make it work on my SGY I decided to create a simpler guide to help other.
I have a tablet that has 250mb for system 7GB extra as internal memory (formated FAT32) and a SD card slot outside.
I partitioned the internal memory (internal SD card). The first partition (with 6Gb) I set primary/FAT32 and the second with 1Gb EXT2/primary.
I wish the Link2SD save apps on the second partition of the internal SD card. I wanted to keep my external SD card without partitioning.
Why I want to do this? Using the internal partition of 7GB is very annoying because it is very slow at USB transfer, and hardly use it. So instead of wasting space partition and my external SD card, I wanted to partition the internal SD card and also wanted the Link2SD utilizasse this internal SD card for apps.
Is this possible?
If this is not possible, I can unify the system partition with the 7Gb's partition, leaving the system with about 8GB of space?
after I linked a widget, it doesn't show up anymore..
ianczarina said:
after I linked a widget, it doesn't show up anymore..
Click to expand...
Click to collapse
just put again the widget..
tutabeier said:
I have a tablet that has 250mb for system 7GB extra as internal memory (formated FAT32) and a SD card slot outside.
I partitioned the internal memory (internal SD card). The first partition (with 6Gb) I set primary/FAT32 and the second with 1Gb EXT2/primary.
I wish the Link2SD save apps on the second partition of the internal SD card. I wanted to keep my external SD card without partitioning.
Why I want to do this? Using the internal partition of 7GB is very annoying because it is very slow at USB transfer, and hardly use it. So instead of wasting space partition and my external SD card, I wanted to partition the internal SD card and also wanted the Link2SD utilizasse this internal SD card for apps.
Is this possible?
If this is not possible, I can unify the system partition with the 7Gb's partition, leaving the system with about 8GB of space?
Click to expand...
Click to collapse
That is possible. But as for the configuration or any requirement to make it work on your tablet, that I don't know. As you mentioned you have to SD Cards, right? An internal and external + the 250mb internal memory. Am I correct?
If you want to use your internal sd card, you can format it to EXT2, EXT3 or EXT4. FAT32 is supported by Link2SD but EXT partition is the native partition for Linux which Android OS is using.
After you format your internal sd card to EXT, tap on Menu> More> Recreate Mount Scripts and the choose the appropriate file system for your internal sd.
One thing I am not sure of is... If link2sd would be able to detect the correct sd card for mounting. If you format your internal sd to EXT file system, then you have a big chance that link2sd will read your internal sd as the right as card for mounting.
NOTE:
It is advisable that 2nd partition should not go over 1Gb, but you can experiment with higher values and let us know if it works.
Sent from my GT-S5360 using xda premium
CarlDeanCatabay said:
That is possible. But as for the configuration or any requirement to make it work on your tablet, that I don't know. As you mentioned you have to SD Cards, right? An internal and external + the 250mb internal memory. Am I correct?
Click to expand...
Click to collapse
Yeah. I'm not sure if it's a SD inside the tablet or a chip.
But I access the internal memory through the /sdcard folder. And the "really external" SD card is accessed through the /sdcard/tflash folder.
CarlDeanCatabay said:
If you want to use your internal sd card, you can format it to EXT2, EXT3 or EXT4. FAT32 is supported by Link2SD but EXT partition is the native partition for Linux which Android OS is using.
After you format your internal sd card to EXT, tap on Menu> More> Recreate Mount Scripts and the choose the appropriate file system for your internal sd.
One thing I am not sure of is... If link2sd would be able to detect the correct sd card for mounting. If you format your internal sd to EXT file system, then you have a big chance that link2sd will read your internal sd as the right as card for mounting.
NOTE:
It is advisable that 2nd partition should not go over 1Gb, but you can experiment with higher values and let us know if it works.
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
I try it. I partitioned the "internal" sd card. The first partition was FAT32/primary and the second partition was EXT2/primary. But Link2SD don't find this second partition. Even if I formated in FAT32/primary, EXT3/primary etc...
Greaat Guide........ its really helping me thanks for it my friend...
Sent from my GT-S6102 using xda premium
tutabeier said:
Yeah. I'm not sure if it's a SD inside the tablet or a chip.
But I access the internal memory through the /sdcard folder. And the "really external" SD card is accessed through the /sdcard/tflash folder.
I try it. I partitioned the "internal" sd card. The first partition was FAT32/primary and the second partition was EXT2/primary. But Link2SD don't find this second partition. Even if I formated in FAT32/primary, EXT3/primary etc...
Click to expand...
Click to collapse
Hhhhmmmm. . . can you please try to install Script Manager from Play Store and then set the link2sd mount script to run on boot and see if that will fix the problem.
hello, i just recently bought this device, and also bought a 32 GB micro SD,
can anyone recommend me the best partitions sizes for the two partitions???
I was thinking to do this:
1st Partition, Primary, Fat32, 30 GB
2nd Partition, primary, Fat32, 2 GB
thx for ur help
Although i got a big partition and link2sd script was mounted, still, i got my internal memory clattered with installation files and therefore i am getting a warning of internal memory full.
I'm gonna try app2sd by sir darktremor and see if it will handle all my apps well.
Though link to sd is really easy to configure.
Laggan said:
hello, i just recently bought this device, and also bought a 32 GB micro SD,
can anyone recommend me the best partitions sizes for the two partitions???
I was thinking to do this:
1st Partition, Primary, Fat32, 30 GB
2nd Partition, primary, Fat32, 2 GB
thx for ur help
Click to expand...
Click to collapse
SGY can only read 1 primary FAT/FAT32 partition. Your 2nd partition should be an EXT2 or EXT3 partition.
So... 2nd partition should be EXT2 or EXT3. Don't use EXT4 or FAT32.
Sent from my GT-S5360 using xda premium
duking said:
Although i got a big partition and link2sd script was mounted, still, i got my internal memory clattered with installation files and therefore i am getting a warning of internal memory full.
I'm gonna try app2sd by sir darktremor and see if it will handle all my apps well.
Though link to sd is really easy to configure.
Click to expand...
Click to collapse
That is a good idea as app2sd moves all apps to 2nd partition. Let it do the magic.
Sent from my GT-S5360 using xda premium
great guide ............
Sent from my GT-S6102 using xda premium
CarlDeanCatabay said:
SGY can only read 1 primary FAT/FAT32 partition. Your 2nd partition should be an EXT2 or EXT3 partition.
So... 2nd partition should be EXT2 or EXT3. Don't use EXT4 or FAT32.
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
Another question.
As i said, i'm gonna do this with a 32 Gb Micro Sd, can I give to the ext3 partition moren than 2 GB????, and wchich is better for 1st partition, FAT or FAT32???
thx
Laggan said:
Another question.
As i said, i'm gonna do this with a 32 Gb Micro Sd, can I give to the ext3 partition moren than 2 GB????, and wchich is better for 1st partition, FAT or FAT32???
thx
Click to expand...
Click to collapse
Yes you can, but it is advisable to have 1024MB or 1GB solid for EXT since larger partition means longer access time (has something to do with partition cluster per second read/write speed and which affects application launch speed) -I may not be so sure about that. LOL
As per FAT vs FAT32... FAT32 is advisable for 4GB cards and up.
FAT32 supports 4GB max file size and FAT supports 2GB max file size only. We don't want to go deep into the technicalities of SD Cards as I may create a thread regarding SD Cards, Batteries and other stuff as an addition to my guide.
me gtng mount script error while using link2sd...follwd the exact step usd ext3 partion 4 secondary...it shws mount script error....invalid argument.
rahul_cm said:
me gtng mount script error while using link2sd...follwd the exact step usd ext3 partion 4 secondary...it shws mount script error....invalid argument.
Click to expand...
Click to collapse
For errors like this, please download and install the latest version of busybox. Then after installing, re-create the mount scripts by tapping menu > more > re-create mount scripts.
Please do reply if the above workaround helped and also please post the exact error so I can create a quick troubleshooting guide so other could benefit from it.

Rebooting after flash

Hi guys.. I just wanted to ask whether it is normal if my phone reboots few times after flashing new ROM...
and after the reboots your in the os ok? not normal but my guess is there's a kernel problem, maybe you didn't fully wipe. but if all works after a few reboots you should be ok
Sent from my HTC Vision using xda premium
jumptoin said:
Hi guys.. I just wanted to ask whether it is normal if my phone reboots few times after flashing new ROM...
Click to expand...
Click to collapse
Depends on the ROM/Kernel. For example with EliteMod/Kernel a reboot is actually required for it to finish up post-install steps.
But if you're talking bout rebooting like 4 or 6 times and never entering the OS, that could be indications of a problem causing a boot loop. One example is flashing a Rom/Kernel that doesn't support your radio (some require the newer *.19 radio), or if you try to flash a larger (sense?) rom onto a G2 hboot instead of DZ hboot.
More information is needed if you need further help.
it was exactly elite rom with elite kernel so it means everythings allright?
jumptoin said:
it was exactly elite rom with elite kernel so it means everythings allright?
Click to expand...
Click to collapse
Should be fine, the usual process is:
Recovery (backup if needed)
Partition SD Card if needed (i.e.: sd-ext, no sd-ext2, don't bother with swap if using dataswap)
Factory Reset / Cache / Dalvik Cache Wipe
Flash Rom (no need to flash Kernel as it's included in the Rom)
Flash Addons if desired (DataSwap Mod, Google Talk, as specified in thread, etc)
Reboot
Initial boot may take a while, and might reboot once or twice
Setup your information and when you reach the home screen you may be prompted with a dialog that says Apex Launcher and "Reboot Now!", you select the Reboot Now, and follow the instructions to do the final reboot and then all is done.
kbeezie said:
Should be fine, the usual process is:
Recovery (backup if needed)
Partition SD Card if needed (i.e.: sd-ext, no sd-ext2, don't bother with swap if using dataswap)
Factory Reset / Cache / Dalvik Cache Wipe
Flash Rom (no need to flash Kernel as it's included in the Rom)
Flash Addons if desired (DataSwap Mod, Google Talk, as specified in thread, etc)
Reboot
Initial boot may take a while, and might reboot once or twice
Setup your information and when you reach the home screen you may be prompted with a dialog that says Apex Launcher and "Reboot Now!", you select the Reboot Now, and follow the instructions to do the final reboot and then all is done.
Click to expand...
Click to collapse
thats exactly what i did now my phone is like a wind and could i have one more question ..sorry for stupid questions iam just curious and i like these things ... what is dataswap for? i know that it makes something faster... thank you bro
jumptoin said:
thats exactly what i did now my phone is like a wind and could i have one more question ..sorry for stupid questions iam just curious and i like these things ... what is dataswap for? i know that it makes something faster... thank you bro
Click to expand...
Click to collapse
In a nutshell = using /data for your swap instead of the SD card for faster access and no need to partition the SD Card for swap space.
DataSwap is a mod that nik3r created for EliteMod that utilizes a swapfile on the /data partition (as he said compliments the use of sd-ext since space on /data is freed up when all the apps are moved to sd-ext).
Using Dataswap would be faster than a swap partition on the SD card because it's run off internal memory, and to prevent wear on the internal memory the location of the swap file is moved after every reboot (where as sd-swap is always swapping to that portion of the SD card).
With both dataswap and sd-ext used you distribute your usage across two different sets of storage which in the long run might improve the life of the device.
If you're unfamiliar with swap, its basically 'extra' space when you run out of ram which can help improve multitasking. Without any swap space at all you tend to run into Force Closes and applications hanging when you actually run out of memory.
64MB is the recommended size, where as 96MB would be good for people who do a lot of heavy multitasking. You *can* use both DataSwap and SD Swap, but not much point to it.
PS: The DataSwap mod he made only works with the EliteKernel, and is not recommended to be used without sd-ext since you want that free space on /data for it.
Details in his own words here : http://forum.xda-developers.com/showpost.php?p=27608489&postcount=153
The cliff notes:
- complements sd-ext
- dramatically improves multitasking
Click to expand...
Click to collapse
kbeezie said:
In a nutshell = using /data for your swap instead of the SD card for faster access and no need to partition the SD Card for swap space.
DataSwap is a mod that nik3r created for EliteMod that utilizes a swapfile on the /data partition (as he said compliments the use of sd-ext since space on /data is freed up when all the apps are moved to sd-ext).
Using Dataswap would be faster than a swap partition on the SD card because it's run off internal memory, and to prevent wear on the internal memory the location of the swap file is moved after every reboot (where as sd-swap is always swapping to that portion of the SD card).
With both dataswap and sd-ext used you distribute your usage across two different sets of storage which in the long run might improve the life of the device.
If you're unfamiliar with swap, its basically 'extra' space when you run out of ram which can help improve multitasking. Without any swap space at all you tend to run into Force Closes and applications hanging when you actually run out of memory.
64MB is the recommended size, where as 96MB would be good for people who do a lot of heavy multitasking. You *can* use both DataSwap and SD Swap, but not much point to it.
PS: The DataSwap mod he made only works with the EliteKernel, and is not recommended to be used without sd-ext since you want that free space on /data for it.
Details in his own words here : http://forum.xda-developers.com/showpost.php?p=27608489&postcount=153
The cliff notes:
Click to expand...
Click to collapse
thanks now i understand it at least partly ... and what do you think does it really worth flashing ? does it come with any bugs,problems?
jumptoin said:
thanks now i understand it at least partly ... and what do you think does it really worth flashing ? does it come with any bugs,problems?
Click to expand...
Click to collapse
Not that I've noticed, but swap space just like SDSwap always has that 'inherent' risk of long term use (but course when used with sd-ext you kind of spread that usage out a little). Just like how there's always a risk when rooting your phone.
If you want to give it a go, but haven't partitioned your SD Card yet (I recommend 4EXT recovery over clockwork mod especially since it can convert your existing /data /cache /system to ext4 instead of ext3 which EliteMod supports), you can backup your SD Card, partition it with sd-ext (2GB or so should do fine if you got an 8GB or 16GB card), no swap, and no sd-ext2, formatted as ext4 (then copy back the SD card stuff you saved). Then flash the DataSwap mod.
The EliteMod rom will notice the new sd-ext partition and move everything from /data/app and /data/app-private over to the sd-ext and map it from there so that the phone just see's it as internal storage ("move to SD" will refer to Fat32 partition, so ideally you don't want any of your apps showing as on "SD").
With that freed up space on /data the dataswap mode will create a swap file in /data/local
Code:
[email protected]:/data/local # busybox ls -lah
drwxr-x--x 4 root root 4.0K Jul 11 17:10 .
drwxrwx--x 18 system system 4.0K Jul 11 17:10 ..
drwxrwx--x 2 system cache 4.0K Jun 26 21:05 download
-rw-r--r-- 1 root shell 7 Jul 6 16:03 elitemod.present
-rwxrwxrwx 1 root root 42 Aug 1 2008 postcleaner.sh
-rw------- 1 root shell 96.0M Jul 11 17:10 swap
drwxrwx--x 2 shell shell 4.0K Jun 26 21:05 tmp
-rwxrwxrwx 1 root shell 2.0K Jun 26 21:12 undervolt.sh
-rwxrwxr-x 1 root root 2.0K Jun 26 20:35 userinit.sh
I'm not sure how his code 'moves' it physically around the emmc chip but it does (i.e.: to prevent any excessive usage of any one part of the internal memory).
You can verify that the dataswap is active via free
Code:
[email protected]:/data/local # free
total used free shared buffers
Mem: 375212 367000 8212 0 8176
-/+ buffers: 358824 16388
Swap: 98300 2732 95568
If you also have a swap partition on the SD card you should see the swap line contain the total of DataSwap + SDSwap space. If neither then it would simply be zero. Nik3r used to use a 32MB dataswap but found that the 'sweet spot' was around 52MB as such 64MB became the new recommended size.
You can use Dataswap without an sd-ext partition, but it's not recommended.
kbeezie said:
Not that I've noticed, but swap space just like SDSwap always has that 'inherent' risk of long term use (but course when used with sd-ext you kind of spread that usage out a little). Just like how there's always a risk when rooting your phone.
If you want to give it a go, but haven't partitioned your SD Card yet (I recommend 4EXT recovery over clockwork mod especially since it can convert your existing /data /cache /system to ext4 instead of ext3 which EliteMod supports), you can backup your SD Card, partition it with sd-ext (2GB or so should do fine if you got an 8GB or 16GB card), no swap, and no sd-ext2, formatted as ext4 (then copy back the SD card stuff you saved). Then flash the DataSwap mod.
The EliteMod rom will notice the new sd-ext partition and move everything from /data/app and /data/app-private over to the sd-ext and map it from there so that the phone just see's it as internal storage ("move to SD" will refer to Fat32 partition, so ideally you don't want any of your apps showing as on "SD").
With that freed up space on /data the dataswap mode will create a swap file in /data/local
Code:
[email protected]:/data/local # busybox ls -lah
drwxr-x--x 4 root root 4.0K Jul 11 17:10 .
drwxrwx--x 18 system system 4.0K Jul 11 17:10 ..
drwxrwx--x 2 system cache 4.0K Jun 26 21:05 download
-rw-r--r-- 1 root shell 7 Jul 6 16:03 elitemod.present
-rwxrwxrwx 1 root root 42 Aug 1 2008 postcleaner.sh
-rw------- 1 root shell 96.0M Jul 11 17:10 swap
drwxrwx--x 2 shell shell 4.0K Jun 26 21:05 tmp
-rwxrwxrwx 1 root shell 2.0K Jun 26 21:12 undervolt.sh
-rwxrwxr-x 1 root root 2.0K Jun 26 20:35 userinit.sh
I'm not sure how his code 'moves' it physically around the emmc chip but it does (i.e.: to prevent any excessive usage of any one part of the internal memory).
You can verify that the dataswap is active via free
Code:
[email protected]:/data/local # free
total used free shared buffers
Mem: 375212 367000 8212 0 8176
-/+ buffers: 358824 16388
Swap: 98300 2732 95568
If you also have a swap partition on the SD card you should see the swap line contain the total of DataSwap + SDSwap space. If neither then it would simply be zero. Nik3r used to use a 32MB dataswap but found that the 'sweet spot' was around 52MB as such 64MB became the new recommended size.
You can use Dataswap without an sd-ext partition, but it's not recommended.
Click to expand...
Click to collapse
Can i make partition .through rom manager?
Or, could I use this way http://www.youtube.com/watch?v=Cygl0qZnbaM to make ext4 partiotion?
jumptoin said:
Can i make partition .through rom manager?
Or, could I use this way http://www.youtube.com/watch?v=Cygl0qZnbaM to make ext4 partiotion?
Click to expand...
Click to collapse
I would strongly advise against using rom manager or any other app to partition or convert existing partitions. You should stick to recovery mode for those kinds of tasks.
Sent from my T-Mobile G2
4EXT recovery would be the best recovery to use for those kinds of tasks on a DZ/G2. While the paid version is in Google play, there is a free apk that simply downloads and installs the latest version of 4EXT touch recovery.
Sent from my T-Mobile G2
Ok man, Iam sure I will do it soon.
Sent from my HTC Vision

[Q] Moving apps to SD card android 4.3->

So what I have gathered is that this phone even with root/cmod/titanium backup doesn't allow me to move apps to my _real_ sdcard. So is it really phone related or is there a way to do it with custom rom/kernel or some other way?
leripe said:
So what I have gathered is that this phone even with root/cmod/titanium backup doesn't allow me to move apps to my _real_ sdcard. So is it really phone related or is there a way to do it with custom rom/kernel or some other way?
Click to expand...
Click to collapse
on stock android 4.2 u could actually use app2sd to move some apps to external storage
using Cyanogenmode 4.3 based Carbon MOD i found that i no longer can do that, tried app2sd and link2sd
i read somewhere that external storage is defined in system PATH variables, dont know how relevant that is but seems connected
but i honestly dont know yet much about the android platform to fix this issue myself, so i might be wrong
we need some pro tip help
Would be very interesting to habe feature. Especially for phones with only 8 GB internal flash. Hope this will come for my s4 Mini. Samsung has this implemented in their stock Rom.
Gesendet von meinem GT-I9195 mit Tapatalk
tesme33 said:
Would be very interesting to habe feature. Especially for phones with only 8 GB internal flash. Hope this will come for my s4 Mini. Samsung has this implemented in their stock Rom.
Gesendet von meinem GT-I9195 mit Tapatalk
Click to expand...
Click to collapse
Yes this would be awesome, but seems that cmod has gone moneymaking company and tries to make cmod to google standards which means they have been starting to remove/hiding features. Their goal now is to make installing cmod without cwm and to remove root or have it as optional feature. Or all this is what I gathered over the net, but I still hope some other custom rom could have this feature.
Edit:
All of the above may not be like that nowadays, and this is somewhat speculation since there hasn't(?) been an official statement from cm about app2sd support. Though emulated sdcard may require something different.
(edited 19.2.2014)
Moving apps to external card.
leripe said:
Yes this would be awesome, but seems that cmod has gone moneymaking company and tries to make cmod to google standards which means they have been starting to remove/hiding features. Their goal now is to make installing cmod without cmw and to remove root or have it as optional feature. Or all this is what I gathered over the net, but I still hope some other custom rom could have this feature. This feature may only need one to repartition the sdcard, but I can't get it to mount as mass storage nor with sdcard reader(it shows "empty" card) in windows(maybe i should try it in linux).
Click to expand...
Click to collapse
About two months ago I upgraded my Xoom to JB 4.2.2, and because space was limited, I hadn't noticed whether I could move operating programs to the external card or not. This was a custom rom. Well, I was using a 32 Gig card that was nearly full of data.
This last week, I invested in a 64 Gig sdhc card and upgraded my rom to Kit-Kat 4.4.2. Thus its also a custom rom, but now I find that though, for the most part, I can designate the external card to store and access data from, I can't run programs from it. Hmm!
Here I am with all this memory. Sure wish I had better management options.
Kingsman1 said:
About two months ago I upgraded my Xoom to JB 4.2.2, and because space was limited, I hadn't noticed whether I could move operating programs to the external card or not. This was a custom rom. Well, I was using a 32 Gig card that was nearly full of data.
This last week, I invested in a 64 Gig sdhc card and upgraded my rom to Kit-Kat 4.4.2. Thus its also a custom rom, but now I find that though, for the most part, I can designate the external card to store and access data from, I can't run programs from it. Hmm!
Here I am with all this memory. Sure wish I had better management options.
Click to expand...
Click to collapse
Well check my thread on my signature and the requests section in the 1st post for more info on about app2sd.
Resolve the issue
Hi all,,,
This is my first time in XDA. Someone fixed this bug for me. You need to be rooted to fix this issue. Install from market Terminal Emulator and type the following commands
su
/system/bin/restorecon -R -v /data/media/
dlightx said:
Hi all,,,
This is my first time in XDA. Someone fixed this bug for me. You need to be rooted to fix this issue. Install from market Terminal Emulator and type the following commands
su
/system/bin/restorecon -R -v /data/media/
Click to expand...
Click to collapse
Can I check with you what bug this fixes?
Ability to use app2sd?
I use FolderMount and works real well. No need to partitioning sd card.
I've gotten to getting Link2SD working on the GT-I9195 with nightly 20140402 KitKat.
Based loosely on [Tutorial/HOWTO] Convert Your External SD Card from FAT/exFAT to EXT4! (3 ways!)
1. Clear everything out of your external SD card. We're gonna be formatting it so you'll have to backup your data.
2. Boot up into recovery and have a working ADB environment setup on your computer
3. adb shell (Do NOT mount your /storage/sdcard1)
5. Check that you have fdisk and mke2fs installed (Type fdisk --help and mke2fs --help ensure they don't throw up errors)
6. fdisk /dev/block/mmcblk1
7. Type o and Enter to destroy the partition table
8. Type n to create a new partition. Make sure its Primary (p). Select first partition and choose how many cylinders you want to allocate to it.
9. Type n to create your second partition. Again, make sure its Primary (p). Leave cylinder allocation blank to use remainder of space by default.
10. Verify partition layout by typing p to show partition layout.
11. Exit fdisk and save changes by typing w
12. mke2fs -t ext4 /dev/block/mmcblk1p1
13. mke2fs -t ext4 /dev/block/mmcblk1p2
14. reboot
15. Once CM has booted up, check if your external storage partition 1 has been mounted. It should be mounted at /mnt/media_rw/sdcard1
16. Try creating a folder in /mnt/media_rw/sdcard1 and /storage/sdcard1 to test if your read/write permissions are correct.
17. Install DiskInfo from playstore to check if your second partition is visible
18. Once done, install Link2SD and select ext4 when prompted to ask what kind of filesystem your 2nd partition is.
19. Reboot after Link2SD installs scripts.
20. Voila!
Let me know if there are any issues. I modified several files while doing this so not sure if any of them affected.
Should #16 not work, try:
1. Going to /system/etc/permissions/platform.xml and adding media_rw group to the element that only has sdcard_r group in it.
2. Typing mount in Terminal Emulator (su) or adb shell and see whether your partitions are mounted. If you're not sure, post the output out here.
Final mount output (filtered with mmcblk1 or sdcard stuff):
Code:
/dev/block/mmcblk1p2 /data/sdext2 ext4 rw,seclabel,relatime,data=ordered 0 0
/dev/fuse /mnt/shell/emulated fuse rw,nosuid,nodev,relatime,user_id=1023,group_i
d=1023,default_permissions,allow_other 0 0
/dev/block/vold/179:33 /mnt/media_rw/sdcard1 ext4 rw,dirsync,context=u:object_r:
sdcard_external:s0,nosuid,nodev,noexec,noatime,data=ordered 0 0
/dev/fuse /storage/sdcard1 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1
023,default_permissions,allow_other 0 0
EDIT 2: *** IMPORTANT!! Do NOT select External in the App2SD option in Link2SD. Otherwise you will not be able to install any apps from the Play Store (Insufficient Storage error)
I use GL to SD on my Slimrom: https://play.google.com/store/apps/details?id=com.slf.ListglApp
It may not have fancy UI like FolderMount or Link2SD, and it slight complex to use. But it works on per app basis, without re-partition too.
Hi leripe !
I have got the same device and ROM like you and i would like to know if you have found a solution to move apps to the sdcard ?
Thank you in advance, regards.
Oijkn said:
Hi leripe !
I have got the same device and ROM like you and i would like to know if you have found a solution to move apps to the sdcard ?
Thank you in advance, regards.
Click to expand...
Click to collapse
If it non system apps, you can use GL to SD as I provide the link already above. It works.
TNCS said:
If it non system apps, you can use GL to SD as I provide the link already above. It works.
Click to expand...
Click to collapse
Hi, i tried your link but this tool don't show all my user app so i can't move them... Have you another tool that can do the job please?
Oijkn said:
Hi, i tried your link but this tool don't show all my user app so i can't move them... Have you another tool that can do the job please?
Click to expand...
Click to collapse
Nope, sorry. I tried this tool and it work so never bother to look for another one.
If GL to SD doesn't have the app you want to move, you can manually link the app and the relevant folder at GL to SD settings. After you linked them, at the main page of apps you can tell it to start to move.
This thread shows up on google for me when trying to figure out why minitool partition wizard doesn't detect my phone at all. The guide I'm following says USB-SDcard reader is required but is that really true?? Surely there is a way to mount the SDcard at a low enough level to partition it without addition hardware?? Even if I have to mount it using TWRP recovery or something I would think it's possible. Anyone know?

[Q] XPERIA M with Android 4.3 (15.4.A.1.9) and Link2SD (3.7.3) - only FAT32 ?

Problem: Link2SD can not link partitions with EXT2/EXT3/EXT4-Filesystem, only FAT32.
Recently I updated my XPERIA M (C1905) with Sonys PC Companion from Android 4.1.2 to 4.3 (15.4.A.1.9).
I lost root, and Link2SD didn't work.
* Towelroot-v3 gave me (half) root again.
* I installed BusyBox Free 2.5 (v 1.23.0) and SuperSU Pro 2.40 with chainfires SUPERSU-binary 2.40
* I applied remountrebootfix (rootfixer) for 4.3 (2014-06-18, install.bat) to get full root.
* I applied term-init.sh to get init.d-support (seems to be not present in Sonys Android 4.3 / 15.4.A.1.9).
RootValidator says, that I have root. Uni-init says, that I have init.d-Support.
I formatted the (new) external SD-Card (64GB) with Minitool Partition Wizard: First primary partition (57GB), second primary Partition (1.99GB). First I tried EXT2/EXT3/EXT4 - all these attempts fail. The only solution was to format both partitions as FAT32 - doing so everything went well with Link2SD.
My questions:
* Does XPERIA M with Build 15.4.A.1.9 support EXT2/EXT3/EXT4 filesystem on the external SD-Card (first partition) at all?
* Does Link2SD (v. 3.7.3, with Link2SD Plus 1.0.6) support mounting the second partition as EXT2/EXT3/EXT4 on XPERIA M?
Thanks in advance for your help!
Michael
schiel said:
Problem: Link2SD can not link partitions with EXT2/EXT3/EXT4-Filesystem, only FAT32.
Recently I updated my XPERIA M (C1905) with Sonys PC Companion from Android 4.1.2 to 4.3 (15.4.A.1.9).
I lost root, and Link2SD didn't work.
* Towelroot-v3 gave me (half) root again.
* I installed BusyBox Free 2.5 (v 1.23.0) and SuperSU Pro 2.40 with chainfires SUPERSU-binary 2.40
* I applied remountrebootfix (rootfixer) for 4.3 (2014-06-18, install.bat) to get full root.
* I applied term-init.sh to get init.d-support (seems to be not present in Sonys Android 4.3 / 15.4.A.1.9).
RootValidator says, that I have root. Uni-init says, that I have init.d-Support.
I formatted the (new) external SD-Card (64GB) with Minitool Partition Wizard: First primary partition (57GB), second primary Partition (1.99GB). First I tried EXT2/EXT3/EXT4 - all these attempts fail. The only solution was to format both partitions as FAT32 - doing so everything went well with Link2SD.
My questions:
* Does XPERIA M with Build 15.4.A.1.9 support EXT2/EXT3/EXT4 filesystem on the external SD-Card (first partition) at all?
* Does Link2SD (v. 3.7.3, with Link2SD Plus 1.0.6) support mounting the second partition as EXT2/EXT3/EXT4 on XPERIA M?
Thanks in advance for your help!
Michael
Click to expand...
Click to collapse
1. i never tried to format my sdcard 1st partition with ext2/3/4, but why would you change your 1st partition format?
2. definitely yes, i'm using link2sd with ext4 format on my sdcard 2nd partition
adjidorporah said:
1. i never tried to format my sdcard 1st partition with ext2/3/4, but why would you change your 1st partition format?
2. definitely yes, i'm using link2sd with ext4 format on my sdcard 2nd partition
Click to expand...
Click to collapse
ad 1: Cause I'd like to take with me the offline wikepedia kiwix with (small) pictures. therefore I have to put a file on the sdcard bigger than 4GB - no way to do this on FAT, it needs EXT2/3/4.
ad 2: Are you using a Xperia M (Single, Model-Type C1905) with Android 4.3 (build-nr. 15.4.A.1.9)?
schiel said:
ad 1: Cause I'd like to take with me the offline wikepedia kiwix with (small) pictures. therefore I have to put a file on the sdcard bigger than 4GB - no way to do this on FAT, it needs EXT2/3/4.
ad 2: Are you using a Xperia M (Single, Model-Type C1905) with Android 4.3 (build-nr. 15.4.A.1.9)?
Click to expand...
Click to collapse
if the problem is you want to copy >4gb file to FAT drive, maybe you can split the file first, you can split it with winrar or hjsplit or other app, after copied, then join it back
yes, exactly same
SD-Card with first partition working with EXT2/EXT3/EXT4-format?
adjidorporah said:
if the problem is you want to copy >4gb file to FAT drive, maybe you can split the file first, you can split it with winrar or hjsplit or other app, after copied, then join it back
Click to expand...
Click to collapse
That doesn't work - FAT32 doesn't support file sizes bigger than 4GB. Thats why I'm trying the EXT-FileSystems.
But when I tried I've got the following message: "SD-Karte ist beschädigt. Bitte formatieren." ("SD-Card is damaged. Please format."). In my opinion that means, that my XPERIA M (C1905) with Android 4.3 doesn't support external SD-Cards with first partition formated as EXT2/EXT3/EXT4-format.
Is there anybody out there on a XPERIA M and Android 4.3 who's external SD-Card is working with the first partition formatted as EXT2/EXT3/EXT4-format?
schiel said:
That doesn't work - FAT32 doesn't support file sizes bigger than 4GB. Thats why I'm trying the EXT-FileSystems.
But when I tried I've got the following message: "SD-Karte ist beschädigt. Bitte formatieren." ("SD-Card is damaged. Please format."). In my opinion that means, that my XPERIA M (C1905) with Android 4.3 doesn't support external SD-Cards with first partition formated as EXT2/EXT3/EXT4-format.
Is there anybody out there on a XPERIA M and Android 4.3 who's external SD-Card is working with the first partition formatted as EXT2/EXT3/EXT4-format?
Click to expand...
Click to collapse
just try to format your sdcard as NTFS or exFAT, maybe not all devices supported that formats, but it worth to try, keep me posted, i want to know the result
adjidorporah said:
just try to format your sdcard as NTFS or exFAT, maybe not all devices supported that formats, but it worth to try, keep me posted, i want to know the result
Click to expand...
Click to collapse
Same result with exFAT - "SD-Card is damaged. Please format".
NTFS I tried with "Paragon NTFS & HFS+" - same result.
There seems to be no other way than using FAT32 on the first partition of the external SD-Card.
By the way: I use a second partition formated with EXT2 for Link2SD. First Link2SD refused to mount this second partition as EXT2. As mentioned in another thread mounting as EXT4 solved the problem. It's a little bit strange.
schiel said:
Same result with exFAT - "SD-Card is damaged. Please format".
NTFS I tried with "Paragon NTFS & HFS+" - same result.
There seems to be no other way than using FAT32 on the first partition of the external SD-Card.
By the way: I use a second partition formated with EXT2 for Link2SD. First Link2SD refused to mount this second partition as EXT2. As mentioned in another thread mounting as EXT4 solved the problem. It's a little bit strange.
Click to expand...
Click to collapse
maybe our device only support FAT/FAT32 format on first partition,
yes, maybe it's link2sd bugs or something, I've formatted my second partition as ext3 and when I create the script with ext3, it's came out error, but when I choose ext4 it's working well, I don't know what actually happened
link2sd
How come my device doesn't support any of these formats? I've tried all options for partition sd card, and phone doesn't recognize second partition... and i don't have an option to create link in Link2sd. Do you know what's the problem? Do I have to unlock bootloader?
crazymina89 said:
How come my device doesn't support any of these formats? I've tried all options for partition sd card, and phone doesn't recognize second partition... and i don't have an option to create link in Link2sd. Do you know what's the problem? Do I have to unlock bootloader?
Click to expand...
Click to collapse
You definitely don't have to unlock the bootloader. The bootloader of my Xperia M is locked.
The phone itself doesn't recognize the second partition, it's only the app Link2SD mounting the second partition.
Are there any error messages?
When I press ext2 in second partition, i get message - Link2sd cant found 2nd partition. But, when I press other options, I get this error message, that Link2sd sending me - mount script created, please restart your device. Than, phone cant turn on, he's got bootloop until I get off sdcard. Then, phone turn on without problems. I tried all combinations for partition, and got the same error. Must say, when I rooted the phone, i installed also remountrebootfix, found it also on this forum. It didnt helped.

Categories

Resources