[Hero CDMA General] hockeyfamily737:
Setting Up Data2Ext with RA 1.7 Recovery​

I made this guide for my own personal future use and decided to share it with the community. I take no credit whatsoever for this information or the files used to install this mod on your phone. Credit for the guide goes to Laie1472 who spent several hours walking me through the process in the absence of good instructions for our device. If you don’t know what this mod does or could potentially do to/for your phone, don’t install it. Please read this entire guide before flashing or asking questions which may already have been answered. As the title states this is for users who have RA 1.7 Recovery installed. If you don’t have RA 1.7 recovery, you can find it here: http://xdaforums.com/showpost.php?p=10531580&postcount=5

Now on with the guide:

Step 1. Back up your sd card to your computer as this process will format and partition your sd card.

Step 2. Reboot into recovery and select partition sd (this will wipe everything on your card). You will be given 3 prompts….swap, ext. 2, & Fat 32. Partition as follows:

Swap=0

Ext2=1024

Fat32=remainder

Step 3. Since the above step erased everything on your sd card, now would be a good time to do a nandroid backup.

Step 4. Download & place on the root of your sd, the data2ext2-v7.zip attached to this thread, but DO NOT FLASH IT YET.

Step 5. Decide whether or not you’re going to use your current rom or install a new rom (easier). If you’re going to use your current, you’re going to want to uninstall all of your apps & theme in order to utilize the additional memory you’ll be freeing up on your phone. If you’re going to use a new rom download it & the appropriate gapps and move them to the root of your sd.

Step 6. Boot into recovery, wipe, and flash your new rom & gapps. Boot into your rom and sign in, but don’t install any of your apps.

Step 7. Reboot back into recovery and flash the data2ext2-v7.zip

Step 8. Boot into your rom & open Terminal Emulator.

Type the following commands minus the ( )

su

mount|egrep mmcblk0p2

(this should return nothing but a #)

Now type:

mke2fs -m0 -b4096 /dev/block/mmcblk0p2

(let the scripts run….when they finish you’ll type the next line)

data2ext --enable

(You should now be prompted to reboot, so type)

Reboot

Step 9. Once you’re rebooted go to settings/storage. You should now see .94 GB or so of available space… Congratulations you’re almost done.

Step 10. The performance boost. Open Terminal Emulator again and type:

su

busybox mount -o remount,noatime,nodiratime, /mnt/asec/ext/ext2 /data

reboot

Step 11. You’re finished, but before you re-install your apps read the You Should Know section of this guide.

You Should Know:​

Now say you want to make a backup of your rom and you have data2ext enabled

do this

Boot into recovery and choose backup and restore. Then choose

create nandroid+ext back up

after it's done always flash the data2ext zip and reboot.

Say aosp/cm/whoever releases an updated rom and you want to update your rom and keep all your apps and theme and settings

Do this

Boot into recovery and make a nand+ext back up by following the steps above. "you don't have to if you already have good backup''

Now wipe cache and davlik-cache and flash then flash the rom update then flash the data2ext zip and reboot

Say you want to flash a new kernel with data2ext enabled

Do this

Boot into recovery wipe cache and davlik-cache. Then flash the kernel then flash the data2ext zip and reboot.

If you ever need to wipe cache or davlik-cache always flash the data2ext zip right after then reboot

PLEASE NEVER WIPE THE SD EXT unless your redoing the whole mod or just want to start fresh

AGAIN NEVER WIPE THE SD EXT

this will more that likely result in a boot loop and make all your once good nands useless

and you might have to reflash your recovery

Say you want to flash a sense rom to update prl/profile.

Do this

Boot into recovery wipe data,cache and davlik cache

then flash sense rom and update.

Then reboot back into recovery wipe data,cache and davlik-cache then choose which nand you want to restore after it's done restoring flash the data2ext zip and reboot

Always flash the data2ext zip after doing a nand restore.

Also with this mod it's not recommended to let your battery die or do a battery pull. If you do you might have to reflash your recovery and redo the whole mod over.

Also only shut down you phone with the rom options

apps like quick shutdown and hot reboot etc will not play nice with this mod. So only use the roms power options to shut down.

If you ever want to disable this mod, open Terminal Emulator and type:

su

data2ext --disable