Guide on data2ext!

Wait, is the data and dalvik only good for ext4? Or, will it work with ext2?
Can somebody please list the steps for me to clean install cm7 and have the data and dalvik moved. I assume after that,I can restore from titanium...
 
It can work with either ext4 or ext2, however the data2ext.zip you flash is a little different depending on which one you choose. It is recommended that most people move to ext4 because:

We now use EXT4 filesystem, data should more likely survive a sudden loss of power (battery pull, dropping phone in toilet, etc). There is still a chance of data loss on your SDCARD always, so only proceed if you understand this risk

Here is the link to XDA-forums with original zip and instructions for formatting to ext4
 
Can somebody please list the steps for me to clean install cm7 and have the data and dalvik moved. I assume after that,I can restore from titanium...

Ok I have updated the How-To data2ext to include moving /data and dalvik-cache.

If you want to start over clean then from recovery:
1) Perform a FULL data/cache wipe from recovery mode. (MUST HAVE CUSTOM RECOVERY)
2) Wipe (or format) /boot and /system from the "mounts and storage" menu in recovery mode.
3) flash Debug-FormatSYSTEM.zip (just to be safe that everything is clean)
4) flash the Rom and follow the How-To
 
So, after all that, I ran
ls /cache/dalvik-cache
And it returns a bunch of .dex files.
I don't think its moved...
Also, my keyboard mod, for screen wake up doesn't work anymore
 
Ah crap, that sucks. Did you wipe /cache from recovery after deleting
Code:
/system/etc/init.d/01mvdalvik

I can see from your df output that you have /dalvik moved correctly, all you need to do is delete that script and clean cache. Check to see if 01mvdalvik is still there. Also after it is deleted the /cache/dalvik-cache will be left behind until you wipe /cache in recovery.

I'm not sure about the button mod. You will need to flash it again if you did a clean install
 
01mvdalvik is gone from /system/etc/init.d/
I did wipe cache after deleting.
Also, the thunderkeypad in system/usr/keylayout/ reflects the key mod...
 
Made sure 01mvdalvik was gone. Formatted cache in recovery and I get this:

export PATH=/data/local/bin:$PATH;su
$ export PATH=/data/local/bin:$PATH;su
#df-h
Filesystem Size Used Available Use% Mounted on
tmpfs 210.9M 44.0K 210.9M 0% /dev
tmpfs 210.9M 0 210.9M 0% /mnt/asec
tmpfs 210.9M 0 210.9M 0% /mnt/obb
/dev/block/mtdblock5 158.5M 124.6M 33.9M 79% /system
/dev/block/mtdblock6 164.9M 64.8M 100.1M 39% /mnt/asec/data
/dev/block/mtdblock1 124.1M 37.0M 87.1M 30% /cache
/dev/block/mmcblk0p2 960.7M 250.6M 710.1M 26% /data
/dev/block/vold/179:1
13.9G 8.1G 5.8G 59% /mnt/sdcard
/dev/block/vold/179:1
13.9G 8.1G 5.8G 59% /mnt/secure/asec
/dev/block/dm-0 5.1M 3.8M 1.3M 74% /mnt/asec/com.olivephone.edit-1
#
 
I think you are good on the data2ext and dalvik-cache to ext. I just went through the procedures on my CM7 backup and here is my output from df -h

Code:
Filesystem                Size      Used Available Use% Mounted on
tmpfs                   210.9M     44.0K    210.9M   0% /dev
tmpfs                   210.9M         0    210.9M   0% /mnt/asec
tmpfs                   210.9M         0    210.9M   0% /mnt/obb
/dev/block/mtdblock5    158.5M    126.0M     32.5M  79% /system
/dev/block/mtdblock6    164.9M    135.1M     29.8M  82% /mnt/asec/data
/dev/block/mtdblock1    124.1M     34.4M     89.7M  28% /cache
/dev/block/mmcblk0p2    961.6M    186.3M    775.4M  19% /data
/dev/block/vold/179:1
                         13.9G      6.3G      7.7G  45% /mnt/sdcard
/dev/block/vold/179:1
                         13.9G      6.3G      7.7G  45% /mnt/secure/asec

After wiping /cache and a fresh boot there is 34MB used which is pretty close to what you have. I just discovered that on CM7 /dalvik-cache will still exist in both directories. After comparing the output of these two commands:

ls /cache/dalvik-cache
ls /data/dalvik-cache

It turns out that all of the system applications included in the ROM are still in /cache/dalvik-cache however all of my market apps are in /data/dalvik-cache. So we shouldn't have to worry about running out of /cache when downloading a bunch of market apps and it's probably good to have the system apps on the internal /cache.
 
Ok so I wanna make sure I'm clear on this before I try it. So basically this flashable .zip that automatically moves dalvik cache for you will not work on Reborn Rom running Xionia CWMA yet? Just curious before I try it and screw my phone up. Thanks in advance guys.
 
Check the How-to in my signature. There are some manual steps you need to do to get dalvik-cache moved to the sd card.
 
Check the How-to in my signature. There are some manual steps you need to do to get dalvik-cache moved to the sd card.

Thanks for your reply. Ok. So it will recover a significant amount of space for me? I was just hesitant about trying the manual steps bc I was worried about screwing up(bricking) my phone if I happen to enter a wrong command or something. What about the link2sd app? Does it work good? Just curious. Thanks in advance.
 
Thanks for your reply. Ok. So it will recover a significant amount of space for me? I was just hesitant about trying the manual steps bc I was worried about screwing up(bricking) my phone if I happen to enter a wrong command or something. What about the link2sd app? Does it work good? Just curious. Thanks in advance.
Direct all further questions about data2ext to the how to thread. There is no need to have multiple threads on the same subject. Makes it easier on everyone.
Can be found here:
http://forums.androidcentral.com/lg...118297-how-data2ext-reborn-froyo-2-2-cm7.html
 
OK after reading all the threads on this this will this work for thekraven cm7 lastet update and if so can you re - link how to do this on this rom thanks
 
OK after reading all the threads on this this will this work for thekraven cm7 lastet update and if so can you re - link how to do this on this rom thanks

Following the first post this is running fine on my 10/10 build.

Edit: sorry thought it was this thread http://forums.androidcentral.com/lg-optimus-s-rooting-roms-hacks/118297-how-data2ext-reborn-froyo-2-2-cm7.html
 
Last edited:
  • Like
Reactions: outlaw07