alexmiramas, on 16 April 2012 - 06:57 PM, said:
Your script is too bad...
Your comment is too bad ... Have you just read this script before replying ? Have you just read the thread linked in my post before replying ? It seems you don't.
Please before giving a judgement spend some time reading what your asking about ...
alexmiramas said:
This is not a good fix as the phone becomes laggy whith this; please read above.
And to revert the fix you have to be sure there's enough free space on /datadata. If you don't and fill up this partition your phone will FC all the time.
RickyBO89, on 17 April 2012 - 01:20 AM, said:
you can obtain the same result by writing a file named .nodatadata inside /datadata
You're right @RickyBO89 : in /sbin, you can find a "setupdatadata.sh" script embeding a "migrate_datadata" function (used if /data/data/.nodatadata file exists). This function does the same as the one given by @alexmiramas : moving *all* apps data from /datadata (178Mo yaffs2 partition) to /data (2Go ext4 partition). Drawback is I/O ext4 partition performances are poor compared to yaffs2 partition : phone becomes laggy ... (another drawback, imho : the speedest partition is fully unused : waste of hard/soft).
So some devs are working on this and post on the thread I give before a
Workaround for small datadata partition. It uses the previous fix (moving all apps data on /data partition) then moves back frequently used files to /datadata ("databases shared_prefs app_databases"). This way the low latency yaffs2 partition is still (lightly) used and phone becomes smoother. Using this script (and mine describe above), you have to take care when backuping your apps : in Titanium Backup, tick the
Preferences > Troubleshooting settings > Follow all symbolic links option.
What I've done in
my script is using this modification but move back everything but libs to /datadata. Libs are "static" files only accessed in read only mode and ext4 performances in this way are pretty good. It costs more space on /datadata partition (finally, only lib subdirectories are moved to /data) but the phone becomes as smooth as a "stock" (without "datafix") CM again.
All these explanations, I spend time to write here, are given and detailed on the thread linked in my previous post ...