[Q] HOW-TO Resize /system and /data partitions? - Galaxy Ace S5830 General

Hello XDA,
I've begun flashing ROMs and rooted my device a little under a month ago. From what I've noticed, the system partition on my Samsung Galaxy Ace is usually quite free (40mb+ on most ROMs). However, the /data partition isn't.
I'd like to know if there's a way so I can take some of the space used in the /system partition and add it to the /data partition. I do have Link2SD installed, but the problem is that some apps won't install because there simply isn't enough internal space available. I know that it's possible with other phones such as the LG Optimus, but is there a way to achieve this on our phone?
Thanks! I'm running StockLite v6
Note: The LG Optimus instructions are in the thread "[HOW-TO] Easily resize system + data partitions!" by effortless.

Haven't seen a method to use system partition as data .
But we don't need to do that.As AMARULLZ Scripts(original thread Amarullz Script) does a fine job
It will mount as sd-ext partition as /Data and vice-versa and copies system data to sd-ext(which now points to original internal mem.) so no performance degrade.
DO a nandroid Backup before.
If you have sd -ext partition just disable/uninstall links2sd ,s2e or any other such app and delete their script from init.d folder and reboot you will have no app in your app drawer from sd-ext if you did it successfully.
Now flash This Script.zip.(Mount System)
check you have 40ad2sdx in your init.d
Atleast reboot 2 times for smoother experience.
Now you will have Internal memory equal to sd-ext partition so never run out of memory .

Related

App2SD with ext2,3,4 support xRecovery installation

Download here - app2sd.ext4(modified 3.1.11)
Or if you want both, apps and dalvik-cache on SD - download here - app2sd.dc2sd.ext4
First of all make backup in xRecovery
Install app2sd through xRecovery - install custom zip
ext2 or ext3 or ext4 partition on SDcard needed
After app2sd installed, don´t turn the phone on without SD card with installed apps inserted, until it is really necessary
First boot after installation takes longer, depending on the amount of installed apps
If you make backup with xRecovery after installation -
- your personal data and setting of your apps will be backed up
- installed apps will no longer be backed up, but still remaining in the ext partition on SD card
If some app won´t work correctly, please reinstall the app from Market or from the file browser (rootexplorer) - you can find your apps in /system/sd/app directory
Compatible with JIT?
Yes, it is.
peetr_ said:
Download here - app2sd.ext4
Install through xRecovery - install custom zip
Click to expand...
Click to collapse
Could u upload the file on megaupload.com
Thanks,...
Ok... now it´s on megaupload.
Installed it, how can i check it? This is my first app2sd try
Sent from my E10i
In rootexplorer, /data/app - shows used and remaining space, added together it should be size of your ext partition.
Ok at first i didnt have a ext2 partition.
Now i have formated my sd card and app2sd seems to waork, my problem is after installing the uptade.zip my phone reboots and at first it shows all the apps in menu then they dissapear, i think theyre transfered to sd card. and then i can do nothing just have the standart apps, appbrain doeasnt works, cant start root explorer etc... but all m apps appera in the menu for deinstallation. Hope you can help me
EDIT//
after another restart everything seems to work fine
I am glad to hear that
Works well with my previous ext2 partition.
I already had app2sd working, and it still works this way.
I'm now trying a new sdcard. I formatted an ext4 partition in ubuntu, but the phone enters into an eternal loop. Don't know why, but it seams that it is not recognizing the partition.
Any Ideas?
Regards
Use ext3,for mini is better - stable
I made ext4 partition making first ext3 and then ext4 manually in xrecovery through adb with this tutorial http://forum.xda-developers.com/showthread.php?t=534714 and its stable.
But maybe ext3 is faster with our kernel. Dont know, didnt compared.
peetr_ said:
Ok... now it´s on megaupload.
Click to expand...
Click to collapse
Thanks brader.....
This sounds awesome but does this mean that I can have apps on ext2 + ext 3 which means double the amount of apps?
NO.On ext3 is better performance.
No, but you can double the amount of partition size
Nice so say I've doubled it, will it increase the amount of apps I can put on my mini? just want to know a bit more about this
peetr_ said:
Download here - app2sd.ext4
Install through xRecovery - install custom zip
ext 2,3 or 4 partition on SDcard needed
Click to expand...
Click to collapse
THANK YOU VERY MUCH !!!
now i have a question, i got a 1gb ext2 partition, would it be better when i format it in ext3 or ext4 ? i dont know wich class the microsd card is, its a 8gb....
I have ext4 but few people said ext3 has better performance.
I had no time yet, to try ext3.
I think 1 GB is too much, because there are still some data, that are stored in internal memory and when you run out of internal memory, remaining place in ext partition is unused.
500 MB is enough, this is not high-end phone and too many apps means more slowness and less stability, i think.
M
peetr_ said:
I have ext4 but few people said ext3 has better performance.
I had no time yet, to try ext3.
I think 1 GB is too much, because there are still some data, that are stored in internal memory and when you run out of internal memory, remaining place in ext partition is unused.
500 MB is enough, this is not high-end phone and too many apps means more slowness and less stability, i think.
Click to expand...
Click to collapse
Can I skip doing ext2 just make ext3 n 4..then intall the zip file using recovery?to make partition ext3 or 4 using same method of make partition ext2?
sent from my E10i

[Q] Application/Data partition resize?

Hi.
I've rooted my A70s with chulri's kernel and it seems to work ok.
My next goal is to get more app room ... so I guess I need to resize the app/data partition.
I've thought that having my internal storage formatted on ext4, it would be possible to ln the /data folder to /storage/data without problems, but then I should create a boot script for that. The question is... can I do this with my current root status? What would be the way to do it? I'm don't know enough of linux os to make it on my own.
If the system can't be fooled with a ln, then is there any way to resize the data partition, even if I have to backup/restore my current data?
I don't want to use Urukdroid, since all the versions I tried were very unstable on my machine.
Cheers!!
search the forum: http://forum.xda-developers.com/showthread.php?p=14710945#post14710945
Follow chulri's method, or repartition your internal storage in Linux, mount it on the archos, and copy the data there. Then edit init.rc and change the data mount line. If it gets mounted in the kernel, you'll have to umount it first to remount it to the other partition.

Moving from link2SD to another apps2SD script

Currently I have an HTC Explorer on the stock ROM with stock kernel, and it is rooted and I use link2SD to move all my apps to my SD card. However, this method does not move the application data. I would like to install a new apps2SD script that will move app data as well as apps, as I am running out of space due to the data.
The problem I am facing is that with link2SD, I am using a FAT32 partition (my current stock kernel does not support ext partitions). Almost all my apps are on this FAT32 partition. I believe if I switch to a different script, I must use an ext partition. I think I will need to install a custom kernel that supports ext partitions (and init.d scripts?) and create a new ext partition.
My questions are these:
1. Will installing a new kernel be enough without installing a new ROM? (If so, can anyone suggest one for the Explorer that adds ext & init.d support? Preferably as few other features as possible, I'd like to stick reasonably close to stock)
2. How can I move all my existing apps from the FAT32 partition to the ext partition, and also move all the data currently on internal storage to the ext partition, without losing anything? (If I back everything up with Titanium Backup, make the switch, and then restore the backup once the script is installed, will that work? If so, do I need to do a wipe at any point?)
3. Which apps2SD script should I use? I have read about several, and have no idea which is best.
4. How do I actually make the switch? Do I uninstall link2SD, remove the FAT32 partition and replace it with an ext2 partition, install the new script in recovery, then boot up? Or would that cause problems with the remnant symlinks made by link2SD? Do I need to do a wipe at some point?
I realise I am asking a lot of questions here, at this point I am beginning to regret not going with a custom kernel and a full a2sd script in the first place. Any help would be much appreciated.
Would like to know also..

Re-Partition /system and /data ?

i just wanted to ask if it is possible to re-partition /system and /data partition .. i am thinking of pulling some of /system memory and add it to /data because my system has around 60mb+ more free memory which i can't use while my /data is only less than 20mb free and its irritating to see the low memory notification ..
or is it possible to pull some of /cache memory and add it to /data ?
thanks
xlSKYFiRElx said:
i just wanted to ask if it is possible to re-partition /system and /data partition .. i am thinking of pulling some of /system memory and add it to /data because my system has around 60mb+ more free memory which i can't use while my /data is only less than 20mb free and its irritating to see the low memory notification ..
or is it possible to pull some of /cache memory and add it to /data ?
thanks
Click to expand...
Click to collapse
Try using scripts like CronMod to increase you internal memory. All you need is a rooted phone and an SD Card with ext partition. You can create an ext partition from CWM (Advanced> Partition SD card> Size (maximum 1GB)>Cache (0MB)). Make sure to backup your SD card before you create the ext partition. Here is the link to the script,
Cronmod Unofficial / Data2sdext
Hope I Helped
mahithm said:
Try using scripts like CronMod to increase you internal memory. All you need is a rooted phone and an SD Card with ext partition. You can create an ext partition from CWM (Advanced> Partition SD card> Size (maximum 1GB)>Cache (0MB)). Make sure to backup your SD card before you create the ext partition. Here is the link to the script,
Cronmod Unofficial / Data2sdext
Hope I Helped
Click to expand...
Click to collapse
i found CronMod a couple of days ago, well i tried Data2Ext .. when i installed it my phone was 80% more laggy, i don't know why .. but i kinda like it more since it shows the sd-ext partition on the app manager instead of the original device storage .. but still, i'll try cronmod
also, it says on the thread that the attached files are outdated, but the links on the post seems to be dead
also, i added facebook, facebook messenger, google play services, hangout, clean master and quickpic to the .zip of the rom so they would be pre-installed to the /system but still my device storage is only at 30~40% initial after flashing considering that the apps are installed in the /system partition
i also tried TouchWiz ROM, it's great but i haven't installed a single app yet but the /data partition seems to be 60% Loaded already ?? is there a remedy for it ? thanks
you helped me again, hit thanks :good:
by the way, will cronmod work with pre-installed apps ? i mean the system apps ?? will cronmod manage to move all of its Dalvik Cache and Data to SdExt ??
xlSKYFiRElx said:
i found CronMod a couple of days ago, well i tried Data2Ext .. when i installed it my phone was 80% more laggy, i don't know why .. but i kinda like it more since it shows the sd-ext partition on the app manager instead of the original device storage .. but still, i'll try cronmod
also, it says on the thread that the attached files are outdated, but the links on the post seems to be dead
also, i added facebook, facebook messenger, google play services, hangout, clean master and quickpic to the .zip of the rom so they would be pre-installed to the /system but still my device storage is only at 30~40% initial after flashing considering that the apps are installed in the /system partition
i also tried TouchWiz ROM, it's great but i haven't installed a single app yet but the /data partition seems to be 60% Loaded already ?? is there a remedy for it ? thanks
you helped me again, hit thanks :good:
Click to expand...
Click to collapse
This is how CronMod works. It basically loads the /data to /sd-ext so that now /sd-ext contains all the data files. Now we mount the ext partition as the new /data mount point. Then all files in /sd-ext are moved back to /data. Since certain files like gps will not work when it is in ext partition, it is then moved back to /sd-ext. Then all the contents in /data and /sd-ext in binded so that any change in any of them is reflected to original. This is initialized every time at the boot. The reason CronMod lags is because the ext partition is loaded as the mount point for /data. Since SD card read/write operations are slower than internal memory read/write operation, /data operation will be slow. This is can be solved to a greater extend if you have a Class 8 or 10 SD card. BTW which verson did you install? If you installed CronMod by croniccorey then gps will not work. Go with CronMod Unofficial by Styke. Also this doesn't affect /system partition. Using this script will not increase the /system space. It will only increase the /data memory, so that you can install more apps and games.
---------- Post added at 11:05 AM ---------- Previous post was at 11:00 AM ----------
xlSKYFiRElx said:
by the way, will cronmod work with pre-installed apps ? i mean the system apps ?? will cronmod manage to move all of its Dalvik Cache and Data to SdExt ??
Click to expand...
Click to collapse
Since this script moves the /data partition to your ext, none of the pre-installed apps are moved to ext partition. /system thereby system apps remains intact. I suggest you install apps like facebook, facebook messenger, google play services, hangout and clean master after you setup this script. Once you install an app as system app, it can never be moved to ext partition. Hope I Helped
Since this script links the /data partition to your ext, none of the pre-installed apps are moved to ext partition. /system thereby system apps remains intact. I suggest you install apps like facebook, facebook messenger, google play services, hangout and clean master after you setup this script. Once you install an app as system app, it can never be moved to ext partition. Hope I Helped
Click to expand...
Click to collapse
i see, i think you didn't understood my question, sorry for that .. i mean, will the system applications cache and dalvik cache be linked to the sd-ext ?? .. nonetheless, i'll try again
but, do you happen to have a link to the latest versions ?? the latest version links are dead on the thread so i can't find a download link
thumbs up again for you mate, you help a lot
EDIT: also, will be SDHC be sufficient to aid the lag (even for a little ?) its a Class 10 32GB RIDATA MICRO SDHC
xlSKYFiRElx said:
i see, i think you didn't understood my question, sorry for that .. i mean, will the system applications cache and dalvik cache be linked to the sd-ext ?? .. nonetheless, i'll try again
but, do you happen to have a link to the latest versions ?? the latest version links are dead on the thread so i can't find a download link
thumbs up again for you mate, you help a lot
EDIT: also, will be SDHC be sufficient to aid the lag (even for a little ?) its a Class 10 32GB RIDATA MICRO SDHC
Click to expand...
Click to collapse
LOL I explained everything in detail thinking that you will understand. Long story short, CronMod script basically moves /data to ext partition. Since all the system and user application's dalvik cache is present in /data, Yes, it will be moved to ext. Nothing in /system will be moved to ext partition. All system apps are present at /system/app, so it can't be moved. User apps that you install goes to /data/app, so those will be moved. Also download the latest version from the "Attached Files" section in the same link. It works. Before you buy a new SD Card, try this in your current SD Card. See if it lags a lot. I might have an another solution. If that too doesn't work, you can buy a new SD Card. Do post the result. Hope I Helped
mahithm said:
LOL I explained everything in detail thinking that you will understand. Long story short, CronMod script basically moves /data to ext partition. Since all the system and user application's dalvik cache is present in /data, Yes, it will be moved to ext. Nothing in /system will be moved to ext partition. All system apps are present at /system/app, so it can't be moved. User apps that you install goes to /data/app, so those will be moved. Also download the latest version from the "Attached Files" section in the same link. It works. Before you buy a new SD Card, try this in your current SD Card. See if it lags a lot. I might have an another solution. If that too doesn't work, you can buy a new SD Card. Do post the result. Hope I Helped
Click to expand...
Click to collapse
i get stuck at bootscreen with cronmod, i don't know why, with Data2Ext, with my previous experience with is is ultimate lag
xlSKYFiRElx said:
i get stuck at bootscreen with cronmod, i don't know why, with Data2Ext, with my previous experience with is is ultimate lag
Click to expand...
Click to collapse
Are you using any other data2ext scripts currently apart from CronMod? Usually installing CronMod on a device that already has a data2ext script will give this error. Make sure to delete all other data2ext scripts if present. Since you are stuck at boot screen, you will have to reflash the rom. Make sure to do Mounts and Storage>Format /system before flashing the new rom. There are two ways by which you can install CronMod. First one is by flashing the zip from CWM (in that case you have to mount /system before flashing). Second one is the easiest one. Just extract the CronMod zip file. You will get a file 40int2ext in /system/etc/init.d/. Now extract the rom that you are going to flash, put the file 40int2ext in /system/etc/init.d/ and then compress it back. Done! Now flash the rom and you are good to go. Try the second method. Make sure you have an ext partition and the rom has init.d support (all custom roms has init.d support). If that method doesn't work or devices lags like hell, then post here and I'll be glad to share the other method. Hope I Helped

Space not freeing up in /data partition after converting phone apps to system apps

Hello!
Few months ago, I rooted my Sony Xperia ZR (C5502) official ROM build 10.7.A.0.222, android version 5.1.1. Yesterday I decided to uninstall all the bloat that came with my device (like Google Play Movies & TV, Google Play Books, Hangouts, etc). I used Titanium Backup to uninstall these system apps. After that, I got lot of free space in my /system partition (around 500 MiB). I wanted to make use of this space by moving some apps installed in phone's internal memory to this /system partition. I used Link2SD's Convert to System App so that these apps move from /data partition to /system partition (I made sure the apps I moved were really installed in phone, and not external SD card's asec).
Now what should have happened is, /system partition should fill up, and memory in /data partition should free up. However, what happened is, /system partition filled, but no memory was freed up /data partition!! I suspected if Convert To System App just made a symbolic link in /system partition, but this wasn't the case. The /data/app/<package> folders for all apps I moved, were gone. I also executed ls -l on /system/priv-app/<package>, but it didn't show up as symbolic link.
I want to know why is the space in /data partition not freeing up? Thanks!
PS: I've also used Link2SD's Integrate update into system function, for those system apps that have been updated. That did free up memory in my /data partition.
Solved
I found the problem. Couldn't find a way to delete this thread so I'll just reply what I found.
Converting user app to system app only moves their apk and lib to /system. app's data and dex still reside in /data partition only, hence the space didn't free as much as I expected. However, I cleared dalvik-cache and then when they were rebuilt/recompiled on next phone restart, I could see a lot more free space in /data partition. This shouldn't happen though since Link2SD delete the old when when I converted and new one was made on phone restart. Maybe it couldn't delete some.

Categories

Resources