Guide on data2ext!

Try doing the commands with terminal emulator from the phone. You can copy and paste then press enter after each command line.

Sent from my HERO200 using Tapatalk

they've already been that route. that's why I have them going this route. plus its easier for anyone to help with screenshots and adb. ;)
I suggest doing everything from recovery also because the partition should not be mounted during recovery and you should be able to format with the commands with no issue. once you reboot and type the enable command then reboot again, it should see the ext4 as internal memory!
 
From my understanding, this script only moves the /data/ partition to sd-ext, right? So the cache is still on internal memory.. If that's the case, then that means the dalvik-cache is most likely still on internal memory, since it's likely that it's been moved from /data/ to /cache/. This would still lead to market errors, even if you have oodles of free space on sd-ext, and since the download cache is also in /cache/. Someone correct me if my logic is wrong, but I think I'll be looking for a way to combine this and the dalvik-cache move mod into a single flashable zip. Or something like that.
 
tried it in recovery
CmzWQ.png
 
okay. go back a couple of pages where someone used the data2ext --disable command and type that along with the mount and format ccommand they used. then enable again and you should be golden
 
From my understanding, this script only moves the /data/ partition to sd-ext, right? So the cache is still on internal memory.. If that's the case, then that means the dalvik-cache is most likely still on internal memory, since it's likely that it's been moved from /data/ to /cache/. This would still lead to market errors, even if you have oodles of free space on sd-ext, and since the download cache is also in /cache/. Someone correct me if my logic is wrong, but I think I'll be looking for a way to combine this and the dalvik-cache move mod into a single flashable zip. Or something like that.

From my understanding, this script only moves the /data/ partition to sd-ext, right? So the cache is still on internal memory.. If that's the case, then that means the dalvik-cache is most likely still on internal memory, since it's likely that it's been moved from /data/ to /cache/. This would still lead to market errors, even if you have oodles of free space on sd-ext, and since the download cache is also in /cache/. Someone correct me if my logic is wrong, but I think I'll be looking for a way to combine this and the dalvik-cache move mod into a single flashable zip. Or something like that.

I already came to that conclusion. That is why I mentioned it in your thread about cache to SD. Seems that right now we only have the option of the 'lesser of two "evils"' option. By combining the two we could truly make this phone have potentially unlimited internal memory. :-)
I am currently using the flash file from your thread. Although I haven't had the chance to rip the two files open. and compare, I don't see why it wouldn't be an easy fix. It is simply mounting three folders on the sdext, we would just need to add the fourth and that would take care of the internal memory. If my thinking is correct.... and my memory... like I said, I haven't had the chance to get a look at them.

You have a Google+?
 
Okay, I've finished building and testing my mod of the data2ext flashable zip. I kept the actual data2ext script as it was, but added some things in the zip that place the dalvik cache back into the data partition, so that will get moved over as well to the sd-ext partition, which means that as long as you have space in that newly made partition on your sd card, you shouldn't run into any market issues when downloading/updating apps. This zip also formats the cache as well, probably just for good measure. It's not a bad thing, anyway.

Also is an alternate version that is to be used when dirty-flashing an update to a rom. Same process applies:

1. Flash rom (or rom update), and gapps, boot up, go through first-time setup, then reboot back into recovery.
2. Flash the zip below:
Code:
[ATTACH]12980[/ATTACH]
3. Boot up phone
4. Open terminal on computer, and enter:
Code:
adb shell
data2ext --enable
reboot
5. ???
6. Profit. (Or, simply go into Settings>Storage to see all the lovely space you now have)

Keep in mind that you need update Clockworkmod recovery (3.0+) to create an ext4 partition on your sd card in the first place. That process is outlined here (download the one for optimus v).
 
Last edited:
Okay, I've finished building and testing my mod of the data2ext flashable zip. I kept the actual data2ext script as it was, but added some things in the zip that place the dalvik cache back into the data partition, so that will get moved over as well to the sd-ext partition, which means that as long as you have space in that newly made partition on your sd card, you shouldn't run into any market issues when downloading/updating apps. This zip also formats the cache as well, probably just for good measure. It's not a bad thing, anyway.

Also is an alternate version that is to be used when dirty-flashing an update to a rom. Same process applies:

1. Flash rom (or rom update)
2. Flash one of the zips below:
Code:
[ATTACH]12980[/ATTACH]
[ATTACH]12983[/ATTACH]
3. Boot up phone
4. Open terminal on computer, and enter:
Code:
adb shell
data2ext --enable
reboot
5. ???
6. Profit. (Or, simply go into Settings>Storage to see all the lovely space you now have)

Keep in mind that you need update Clockworkmod recovery (3.0+) to create an ext4 partition on your sd card in the first place. That process is outlined here (download the one for optimus v).

Beat me to it! :p

Gonna give it a try when I get some time freed up! :)

EDIT: I think this deserves its own thread! And for the ones running data2ext, maybe specify if there are any special instructions....
 
Last edited:
Acromack, you're awesome. I read your thread on Market errors, then remembered this thread, and was reading through it all to figure out if it fixed the cache issue, (my cache is at 99%, so I can't install anything, even with 104 mg free internal).

SO, I want to do all this good stuff....but now I'm confused. I THINK I should:

  1. Backup Everything
  2. Wipe user apps to free up space temporarily (Titanium)
  3. Upgrade to CWM 3.0 (optimus V version)
  4. Make a 1 GB, no swap EXT4 partition on my SD
  5. Flash your zip, (WHICH ONE?)
  6. reboot, su, data2ext --enable in terminal
  7. Restore apps from Titainum to *internal memory*, (which should now be my EXT4 partition).

Do I have that right? Or in between Steps 4 and 5 do I have to do all these steps outlined in that linked OptV wiki?

Code:
[LIST=1]
[*]Reboot the phone.
[*]Launch the Terminal Emulator (or use ADB (adb shell)) & type the following commands:su
[*]Ensure that mmcblk0p2 isn't mounted anywhere. You can do this by runningmount|egrep mmcblk0p2. If that returns anything, the ext partition is mounted, please unmount it using this command in Terminal Emulator: umount /sd-ext orumount /dev/block/mmcblk0p2
[*]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
[*]data2ext --enable
[/LIST]
 
You guys are doin to much work it simple. You have to do a clean wipe and then install the rom/gapps the turn off signature and apply data2ext. Turn your phone on let it boot then go to terminal

Su
# data2ext --enable
Done I did it it work for me just make sure you did the partition first
OK!!!!!!!!""



As for market issues. I haven't had any.....


Sent from my LG-LS670 using Tapatalk
 
Last edited:
You guys are doin to much work it simple. You have to do a clean wipe and then install the rom/gapps the turn off signature and apply data2ext. Turn your phone let it boot then go to terminal

Su
# data2ext --enable
Done I did it it work for me just make sure you did the partition first
OK!!!!!!!!""

Sent from my LG-LS670 using Tapatalk

I'm trying to fix my cache too. Market won't work because my cache is at 99%. Cache is full...so moving data to EXT4 won't help me...I'm just wanting to do that as well since I'm formatting and all....so I need to combine acromack's cache-to-EXT tutorial with the data2ext, and that's where I'm getting confused. Mainly, I'm not sure if the zip acromack just posted above also includes the data2ext script, or if it just augments the data2ext script after I flash that first.
 
I'm trying to fix my cache too. Market won't work because my cache is at 99%. Cache is full...so moving data to EXT4 won't help me...I'm just wanting to do that as well since I'm formatting and all....so I need to combine acromack's cache-to-EXT tutorial with the data2ext, and that's where I'm getting confused. Mainly, I'm not sure if the zip acromack just posted above also includes the data2ext script, or if it just augments the data2ext script after I flash that first.

To tell you the truth I haven't even try it yet but how you check you cache percentage

Sent from my LG-LS670 using Tapatalk
 
To tell you the truth I haven't even try it yet but how you check you cache percentage

Sent from my LG-LS670 using Tapatalk

Go into a terminal emulator, type df

scroll back up, since it will print out a lot of crap, but at the top will be your partitions and their sizes...look at /cache.
 
Mines at 33% not bad and all I'm doing is from step 1 its been working for me

Sent from my LG-LS670 using Tapatalk
 
Flashing my zip will wipe cache partition, and delete the file that originially put dalvik cache into the cache partition (it should be recreated in the data partition when you boot up). While that doesn't move the entire cache partition to sd-ext, it should leave plenty of space. I've got something like 20-30% cache filled afterwards. Google apps use it still on internal memory, I'm pretty sure. So,

clean rom flash
gapps
Boot up, do first-time setup, then reboot into recovery
data-dalvik-2-ext flash (no need to disable sig, since it's signed)
reboot
adb shell ("data2ext --enable")
reboot

That should be it. To check that it's done it's thing, go into adb shell and type "df -h". The "h" will output the sizes in mb instead of 1k blocks and make it easier to read.
 
Last edited:
Mines at 33% not bad and all I'm doing is from step 1 its been working for me

Sent from my LG-LS670 using Tapatalk

You probably don't have as many apps as me....that's what's killing me.

Step 1 works great for EXT2, which is faster but less stable. The longer list of instructions I posted just a bit ago are for EXT4, which is slightly slower, but doesn't risk data loss as much.

So I made the partition, (1024 mb), flashed acromack's zip, rebooted, fired up terminal emulator, did all this:
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
without errors. I did "data2ext --enable", rebooted, and my memory size didn't increase...

So I tried data2ext --enable again, and it said "data2ext is enabled but not active"...so I rebooted to recovery, flashed acromack's zip again, rebooted, still no memory size increase, still "enabled but not active"...

Any thoughts?
 
Which recovery version are you using? Xionia's clockworkmod is based of 2.X AFAIK, but you need 3.X to make an ext4 partition. There's a link in my post with the zips (at the bottom) that leads to the link for this new one (grab the one for optimus v). Once that's updated, it should work alright. I had the same issue as you before I did this. The new recovery has orange text, btw.

Oh, and I have like 200 apps almost...
 
You probably don't have as many apps as me....that's what's killing me.

Step 1 works great for EXT2, which is faster but less stable. The longer list of instructions I posted just a bit ago are for EXT4, which is slightly slower, but doesn't risk data loss as much.

So I made the partition, (1024 mb), flashed acromack's zip, rebooted, fired up terminal emulator, did all this:
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
without errors. I did "data2ext --enable", rebooted, and my memory size didn't increase...

So I tried data2ext --enable again, and it said "data2ext is enabled but not active"...so I rebooted to recovery, flashed acromack's zip again, rebooted, still no memory size increase, still "enabled but not active"...

Any thoughts?

Remember clean rom so nothing wont be mounted most of the time that's what happens when you don't do a clean wipe and install the rom

Sent from my LG-LS670 using Tapatalk
 
Which recovery version are you using? Xionia's clockworkmod is based of 2.X AFAIK, but you need 3.X to make an ext4 partition. There's a link in my post with the zips (at the bottom) that leads to the link for this new one (grab the one for optimus v). Once that's updated, it should work alright. I had the same issue as you before I did this. The new recovery has orange text, btw.

Oh, and I have like 200 apps almost...

Using 3.X, (the optimus V one)....orange text all the way...

yeah, Titanium says I have 190 apps...hence the cache issue.

I'm gonna run through all the commands one more time, and if that doesn't work do a full wipe and fresh ROM install again, snarl. (btw, using Drew's CM7, not the other one...that shouldn't matter, right?)
 

Trending Posts

Forum statistics

Threads
956,449
Messages
6,968,308
Members
3,163,549
Latest member
jimmyrichard