[How-To] data2ext for Reborn, Froyo 2.2 and CM7

epidenimus

Racer of Elevators
Apr 13, 2011
1,119
255
0
Visit site
I have been using this mod now for more than a year, was one of the original people to get it up and running for reborn and then drew's cm7. I have done this and yes those apps would stop but all you need to do to was insert sd card & reboot phone. If needed in terminal re-enter data2ext--enable
And what if the SD card fails or he upgrades it? Most folks don't just pull out the SD card for fun. ;) The device does become dependent on the SD card to function after this mod is applied; I think that's what he was getting at.

I rather prefer the Dark Tremors approach found in OptiROM if you are looking at this.
 

blackops1125

Advisor
Mar 19, 2011
1,037
184
0
Visit site
And what if the SD card fails or he upgrades it? Most folks don't just pull out the SD card for fun. ;) The device does become dependent on the SD card to function after this mod is applied; I think that's what he was getting at.

I rather prefer the Dark Tremors approach found in OptiROM if you are looking at this.
If the sd card fails or he up grades just enter in terminal data2ext--disable and it returns it to stock set up. Sd card will still be partition of course.
I do also keep a pre- data2ext nandroid so if the card fails or for some reason I stop using it I have a backup of apps in original position.
So if the card fails its never a big deal (never had a card fail), but I have pulled sd card out to see what happens.
I actually used this set up on opti-rom too instead of the dark tremors.


sent from my CM7/Reborn w/ 1 Gb internal storage Optimus S

Always happy to help, hit that thanks button if I did
 
Last edited:

ikeywatson

Well-known member
May 1, 2011
183
28
0
Visit site
If you have tried these instructions on another ROM let me know and I will update the list of what works and what doesn't.

confirmed for hydroRom(on zvj),i used the cm7 zip and instructions:D:D:D:D:D:D:D:D:D
 

Buddlespit

Wannabe kewl
Jan 27, 2011
671
119
0
Visit site
I used it on GingerRom, but I had to copy e2fsck and tune2fs to /system/bin and 6 libext*.so files into /system/lib in the rom before I could format. Then I copied 40data2ext to the init.d folder, rebooted and enabled the data2ext. I probably didn't need to copy 40data2ext, it could have been flashed.
 

garbb

Well-known member
Nov 26, 2011
70
3
0
Visit site
It seems after installing this mod when trying to install apps via "adb install" command from a computer the phone crashes and reboots itself. Any way to prevent this from happening?

nevermind was just the particular apps i was trying to install i guess.....
 
Last edited:

CardcaptorRLH85

Well-known member
Jan 22, 2011
110
3
0
Visit site
Ok, I've been using data2ext for months (maybe a year actually...) now on this Optimus S and I've been using this /dalvik-cache ever since I first had a 'Low on space' issue and found this thread. However, I've recently re-flashed the ROM on my phone and for some reason while trying to restore my apps from Titanium Backup, I've been running into this 'Low on space' issue again. I know that I have enough free space since I actually checked:

Code:
# df
df
Filesystem           1K-blocks      Used Available Use% Mounted on
tmpfs                   217948        32    217916   0% /dev
tmpfs                   217948         0    217948   0% /mnt/asec
tmpfs                   217948         0    217948   0% /mnt/obb
/dev/block/mtdblock5    162304    136360     25944  84% /system
/dev/block/mtdblock6    168832    167408      1424  99% /mnt/asec/data
/dev/block/mtdblock1    127104     36564     90540  29% /cache
/dev/block/mmcblk0p2   1032088    580288    399372  59% /data
/dev/block/vold/179:1
                       7021824   6546912    474912  93% /mnt/sdcard
/dev/block/vold/179:1
                       7021824   6546912    474912  93% /mnt/secure/asec
/dev/block/dm-0          16612     15216      1396  92% /mnt/asec/com.aldiko.and
roid-1
/dev/block/dm-1          37364     35472      1892  95% /mnt/asec/ca.jamdat.flig
ht.scrabblefree-1
#

/data shows as having 59% used and /cache shows as having only 29% used. So I don't know what the issue is. Also, I'm wondering why a couple of my programs (Aldiko ebook reader and Scrabble Free) have created their own mount points. Is that normal or is there some issue that I don't know about. I would greatly appreciate it if I could get some help with this issue. Thanks ^_^
 

jonny5449

AC Citizen
Dec 14, 2011
2,553
286
0
Visit site
How can I tell which class is my 8gb sdcard? After I do this will I be able to disable or enable? I ask this because I change roms a lot

Sent from futuristic optimus s
 

blackops1125

Advisor
Mar 19, 2011
1,037
184
0
Visit site
How can I tell which class is my 8gb sdcard? After I do this will I be able to disable or enable? I ask this because I change roms a lot

Sent from futuristic optimus s
Yes you can disable it!
just type data2ext --disable in adb or terminal.

Just FYI if you flash a rom that does not support it nothing bad will happen even if you left it enabled. You just wont see the extra space.
 

jonny5449

AC Citizen
Dec 14, 2011
2,553
286
0
Visit site
Yes you can disable it!
just type data2ext --disable in adb or terminal.

Just FYI if you flash a rom that does not support it nothing bad will happen even if you left it enabled. You just wont see the extra space.

Thanks I will try tommorow

Sent from futuristic optimus s
 

jonny5449

AC Citizen
Dec 14, 2011
2,553
286
0
Visit site
It says umount not recognized and Dev/block/mmcblk0p2 permission denied and I typed su and I'm using terminal emulator

Sent from futuristic optimus s
 

blackops1125

Advisor
Mar 19, 2011
1,037
184
0
Visit site
It says umount not recognized and Dev/block/mmcblk0p2 permission denied and I typed su and I'm using terminal emulator

Sent from futuristic optimus s
First which rom are you trying to use this with? Second did you use the correct data2ext.zip for the rom your using?
If your running CM7 then use the : data2ext4-V4.zip.
Make sure you flash the zip first before you enter code.

4.Boot into recovery and flash the data2ext zip.

5.Reboot into the ROM and make sure SD-EXT is not mounted. From ADB shell run


Code:
mount|egrep mmcblk0p2
If that command returns anything unmount SD-EXT by running


Code:
umount /dev/block/mmcblk0p2
6.Format the ext partition by running these commands from ADB shell:


Code:
mke2fs -m0 -b4096 /dev/block/mmcblk0p2
tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p2
e2fsck -yf /dev/block/mmcblk0p2
tune2fs -o journal_data_writeback /dev/block/mmcblk0p2
tune2fs -O ^has_journal /dev/block/mmcblk0p2

7.Activate data2ext by running this from ADB shell. Reborn/VD based ROMs will see some errors about modules already being loaded


Code:
data2ext --enable
 

jonny5449

AC Citizen
Dec 14, 2011
2,553
286
0
Visit site
First which rom are you trying to use this with? Second did you use the correct data2ext.zip for the rom your using?
If your running CM7 then use the : data2ext4-V4.zip.
Make sure you flash the zip first before you enter code.

4.Boot into recovery and flash the data2ext zip.

5.Reboot into the ROM and make sure SD-EXT is not mounted. From ADB shell run


Code:
mount|egrep mmcblk0p2
If that command returns anything unmount SD-EXT by running


Code:
umount /dev/block/mmcblk0p2
6.Format the ext partition by running these commands from ADB shell:


Code:
mke2fs -m0 -b4096 /dev/block/mmcblk0p2
tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p2
e2fsck -yf /dev/block/mmcblk0p2
tune2fs -o journal_data_writeback /dev/block/mmcblk0p2
tune2fs -O ^has_journal /dev/block/mmcblk0p2

7.Activate data2ext by running this from ADB shell. Reborn/VD based ROMs will see some errors about modules already being loaded


Code:
data2ext --enable

Unmount not regconized and /Dev/block/mccblk0p2 perrmission denied I'm running cm7

Sent from futuristic optimus s
 
Last edited: