FORUMS
Remove All Ads from XDA

[MOD]Interactive Data2sd + [04-25-11 update]

401 posts
Thanks Meter: 159
 
By ungaze, Senior Member on 20th April 2011, 06:11 AM
Post Reply Email Thread
INTERACTIVE DATA2SD MOD

There are a lot of ways of moving /data to SD ext(2nd) partition. Here I'll show you an easy way to do it which is fully compatible with Optimus One(and possibly other devices as well). If you don't like the method used here, try other Data2SD/ext mod which may suit your needs, but please, don't hesitate to post your feedbacks/comments be it negative or positive (feedbacks/comments are highly appreciated).

The mod, as the title says, moves the whole /data partition to your SDcard's 2nd(ext) partition, which could give you virtually unlimited space to install apps and also boost quadrant scores. I have tested this with EXT2(and can get up to 900+ on quadrant with stagefright off or 2000 with stagefright on, OC'd to 787mhz with I/O score playing around 4000 - 5000+), so if you're using other FileSystems, please do post your feedbacks and possibly your I/O scores as well. I have also enforced an e2fsck on every boot which is useful for ext2 users as this will check and fix your 2nd partition for errors on every boot, if there's any.

Dalvik2cache temporarily unavailable with v4b5. A new version with the option to move dalvik-cache almost anywhere possible is coming up. If you still want to use the dalvik2ram mod, try v1.2(link at the bottom).
Why move dalvik-cache to RAM? Basically, the idea of moving the whole /data partition to SD ext partition is to primarily get more space for installing apps. And in this case, it does perform very well and combined with fast SD cards, it could even provide real-life performance boost. Now the downside to this, is that while most /data contents just get copied and read not that much often, dalvik-cache stores some info that needs to be read and updated very frequently. This results in a high I/O read/write frequency and thus results in shortening of the SD card life(in theory, the same could also be said when left internally but this time dealing damage to the nand disk instead). To counter this, the method I used is to move dalvik-cache to a virtual-disk like partition known as a tmpfs. tmpfs resides in RAM and has dynamic resizing structure which can allocate space depending on your needs. This way, dalvik-cache won't be using any physical disk and therefore causing damage to none. Almost too good to be true right? Well the drawback is, because tmpfs resides in RAM anything written onto it get's lost when rebooted or in-case of power loss thus resulting in loooong boot times(depending on the apps installed), as dalvik-cache contents are being rebuilt on every boot. Well I think that's enough of dalvik-cache and lets start with the mod.

WARNING

USING A NON-APP2SD ROM OR SIMPLY UNINSTALLING APP2SD IS STRICTLY RECOMMENDED
DO NOT EVEN TRY THIS MOD IF YOU HAVE ANY FORM OF APP2SD INSTALLED
ALWAYS PERFORM A BACKUP BEFORE TRYING OUT STUFF LIKE THESE


Disclaimer: I am not responsible for anything bad happening to the world blah blah, you know the drill!




INSTALLATION

An SD card with at least two partitions required.(First partition as FAT32 for regular SD use and second partition as EXT2(EXT3 and EXT4 will be supported on future builds)

1. Download Data2sd_v4b5.zip here!(latest stable build)
2. Flash via recovery

(testers WANTED, preferably using different ROMs.)

Test release can be found here!!!!!

QUADRANT TEST RESULT:

This mod is still on-going and still under development. Although it's already fully functional, some features or options may still be added later-on. Please post your feedbacks and give thanks if you can.

To disable DarkTremor's app2sd, just follow these steps
Ungaze_Data2sd_v1_2.zip(archive)

Code:
#Data2Sdext_Dalvik-cache2RAM
#
#By: Ungaze
#
#Credits:
#uncorrupted for original script for a wide variety of devices
#sibere and ownhere for additional resources
#pomka78 for dalvik-RAM script and Idea
#nervgaz, franciscofranco, andy572 and joesephmother for ideas and suggestions.
#all the testers and everyone who provided feedbacks on this mod. Thanks to you guys.
#
The Following 56 Users Say Thank You to ungaze For This Useful Post: [ View ] Gift ungaze Ad-Free
 
 
20th April 2011, 06:49 AM |#2  
hell1134's Avatar
Senior Member
Flag Kolkata
Thanks Meter: 137
 
More
Can this be used with mik's CM7 beta6.1 rom ?

TIA
The Following User Says Thank You to hell1134 For This Useful Post: [ View ] Gift hell1134 Ad-Free
20th April 2011, 06:49 AM |#3  
Senior Member
Thanks Meter: 204
 
More
Very nice job! I will try it asap.
Attached the edify signed version (Clockworkmod 3 ). It installs just fine.
@hell1134: I think it should work on any rom that obeys the prerequisites and that are properly explained by ungaze (no apps2SD script installed or if it is something just uninstall in order to try this).
Attached Files
File Type: zip Ungaze_Data2SD_signed_edify.zip - [Click for QR Code] (499.5 KB, 8852 views)
The Following User Says Thank You to marioemp2k7 For This Useful Post: [ View ] Gift marioemp2k7 Ad-Free
20th April 2011, 07:23 AM |#4  
ungaze's Avatar
OP Senior Member
Flag manila
Thanks Meter: 159
 
More
Quote:
Originally Posted by hell1134

Can this be used with mik's CM7 beta6.1 rom ?

TIA

Should work with any non-app2SD Optimus One ROM on the fly. Make a backup first.
The Following User Says Thank You to ungaze For This Useful Post: [ View ] Gift ungaze Ad-Free
20th April 2011, 07:58 AM |#5  
Senior Member
Thanks Meter: 204
 
More
The script works fine. I tested it on Mik's beta 6.2. The only issue I have seen is with the themes. Even though a theme is selected, it defaults to the System one and since I could not find a way to do a hot reboot I couldn't properly apply my desired theme.
20th April 2011, 08:12 AM |#6  
Senior Member
Thanks Meter: 18
 
More
I have the other dalvik cache script running right now. You talk a lot about improving the life of the device/sd and saving space for apps. Is there no performance gains with doing this?

Sent from my LG-P500 using XDA Premium App
20th April 2011, 08:22 AM |#7  
ungaze's Avatar
OP Senior Member
Flag manila
Thanks Meter: 159
 
More
Quote:
Originally Posted by Momaro

I have the other dalvik cache script running right now. You talk a lot about improving the life of the device/sd and saving space for apps. Is there no performance gains with doing this?

Sent from my LG-P500 using XDA Premium App

Personally, I don't find any huge/noticeable gain on any mod I have done with O1 this is because O1 is already super fast as it is, and it's a good thing. But if you're the kind of person who measures performance based on benchmark's, then data2sd will give you huge I/O performance gain(specially in quadrant). On the other hand, dalvik-cache2ram is purely for disk preservation only. Not much gain here.

regarding themes on miks CM7 6.2. I really don't have the slightest idea on what's happening with your themes. Maybe its in the way that CM implements themes? I reallt don't know as themes reside in the /system partition which should not be affected by the scripts that I have made.
The Following 2 Users Say Thank You to ungaze For This Useful Post: [ View ] Gift ungaze Ad-Free
20th April 2011, 08:26 AM |#8  
Senior Member
Thanks Meter: 204
 
More
I personally haven't seen any performance benefits. Anyway as I think about it the sdcard way is more preferably for me since I would never use one with a lesser class than 6.

@ungaze: Only the default themes (System, Androidian and Cyanbread) are in /system
20th April 2011, 08:29 AM |#9  
lekhwani's Avatar
Senior Member
Thanks Meter: 261
 
More
Quote:
Originally Posted by marioemp2k7

The script works fine. I tested it on Mik's beta 6.2. The only issue I have seen is with the themes. Even though a theme is selected, it defaults to the System one and since I could not find a way to do a hot reboot I couldn't properly apply my desired theme.

May be pasting your desired theme to system/app and removing the current default will help. Then even after reboot default will be your drsired theme.

Sent from my LG-P500 using Tapatalk
20th April 2011, 08:46 AM |#10  
Senior Member
Thanks Meter: 204
 
More
I don't think it will help me since the question is about T-Mobile Theme Manager settings. I don't know where these are saved but it is pretty obvious that there are not in the right place since everything defaults to the System theme.

Edit: I have managed to make Hot Reboot (Quick Boot Plus) work so now I have the themes working properly since I can restart only the UI.
I will stick to this for now.
20th April 2011, 09:43 AM |#11  
Senior Member
Flag New Delhi
Thanks Meter: 63
 
More
one question :: is the phone really fast with data partition on sdcard's ext2 partition ??? anybody using it please give your inputs: Also How do i use this along with darktremor's a2sd ??? i just want data2sd not dlcache2ram
Post Reply Subscribe to Thread

Tags
a2sd

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes