- 09-14-2011, 11:09 PM
Thread Author #26
Re: [How-To] data2ext for Reborn, Froyo 2.2 and CM7
I actually haven't done the dalvik-cache part on CM7 yet, but that looks good. The amount of cache used is pretty low and /data is mounted on the sd card. It looks like you lost some formatting on the last few lines when pasting the output of the df command. I believe it should be:
One more thing you could do to make sure is to look for the dalvik-cache folder. You should find it in /data and not in /cache. The first command should come back as not found, the second should show your dalvik-cacheCode:/dev/block/mmcblk0p2 960.7M 77.9M 882.8M 8% /data /dev/block/vold/179:1 13.9G 8.3G 5.5G 60% /mnt/sdcard /dev/block/vold/179:1 13.9G 8.3G 5.5G 60% /mnt/secure/asec
Code:ls /cache/dalvik-cache ls /data/dalvik-cache
- 09-15-2011, 10:11 AM
Thread Author #27
Re: [How-To] data2ext for Reborn, Froyo 2.2 and CM7
Now I have run through the full set of instructions (including moving dalvik-cache) on CM7 too. Here is my df -h output afterwards on CM7
It turns out system apps on the ROM are still put on /cache/dalvik-cache. All of the user apps are on /data/dalvik-cache so there shouldn't be a problem with running out of space.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 - 09-16-2011, 06:36 AM
Thread Author #28
WARNING: I got the ota update notification tonight. I didn't want to chance accidently updating sometime and bricking my phone so I did the battery pull trick to remove the notification. This meant I got to test out the stability of ext4 on the sdcard. My results were:
1st boot, no access to sd-ext and /data looked like fresh reborn rom
2nd boot, had access to sd-ext and /data but widgets wouldn't load.
3rd boot, everything was back to normal
I'm guessing ext4 and the fsck saved my but repairing the partition after my battery pull. - 09-16-2011, 08:39 AM #29
Hoping to get this working on the ZVH update
sent from my CM7/Reborn w/ 1 Gb internal storage Optimus S
Always happy to help, hit that thanks button if I didCurrent Device(s): Motorola Droid Razr
Previous Device(s): LG Optimus S
Always happy to help out, Just remember to hit that thanks button!
Thanked by 2: - 09-17-2011, 02:29 PM #30
Re: [How-To] data2ext for Reborn, Froyo 2.2 and CM7
I am trying to get it working with gRom, I am running the GingerKernal and I dont think it is loading the ext4 modules, I am wondering i I can just get the modules from my nandroid of CM7 and put them where they go...here is what I get...
sh-3.2# data2ext --enable
data2ext --enable
insmod: can't read '/system/lib/modules/mbcache.ko': No such file or directory
insmod: can't read '/system/lib/modules/jbd2.ko': No such file or directory
insmod: can't read '/system/lib/modules/ext4.ko': No such file or directory
Data2EXT is already enabled but not active...
sh-3.2# - 09-17-2011, 02:42 PM #31
- 09-17-2011, 03:14 PM
Thread Author #32
Are you comfortable with shell scripts? Take a look at the data2ext script from the reborn zip, it includes the insmod command to load the modules for ext4 support
Thanked by: - 09-17-2011, 05:06 PM #33
Re: [How-To] data2ext for Reborn, Froyo 2.2 and CM7
Yes I know this all you have to do is "insmod /system/lib/modules/ext4.ko" but I do not have the right ext4.ko file, If I could find the ones that would load would be a start...
sh-3.2# insmod /system/lib/modules/ext4.ko
insmod /system/lib/modules/ext4.ko
insmod: init_module '/system/lib/modules/ext4.ko' failed (Exec format error)
sh-3.2#
So far this gingerbread stuff has not been going to well, can't wait till someone can get something good going, My screen is ultrasensitive, I think due to over clocking....we just need to find the ext4 modules for this kernal....the old ones dont work - 09-18-2011, 01:01 AM #34
- 10-03-2011, 09:40 AM #35
- 10-03-2011, 11:22 AM
Thread Author #36
Re: [How-To] data2ext for Reborn, Froyo 2.2 and CM7
The new version of Opti-rom 1.1.1 has ext4 file support build in so you should be able to flash the zip for CM7 based builds and go through the steps in the How-to.
If any required exe's are missing you will get errors while setting up the ext partition. This won't hurt anything, but we will need to figure out what is missing and get it added to the rom or a zip.
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 - 10-03-2011, 11:24 AM #37Current Device(s): Motorola Droid Razr
Previous Device(s): LG Optimus S
Always happy to help out, Just remember to hit that thanks button!
Thanked by: - 10-03-2011, 11:33 AM
Thread Author #38
Re: [How-To] data2ext for Reborn, Froyo 2.2 and CM7
I'm planning to update the How-to as needed once we have clear steps for ZVH based ROMs. I don't know how to do it yet and I'm still on ZVD so you may get more help from people actually running opti-rom or g-rom
- 10-03-2011, 11:33 AM #39
Re: [How-To] data2ext for Reborn, Froyo 2.2 and CM7
Opti-ROM now supports data2ext, apps2ext, dalvik2cache all natively.
I will get updated instructions on how to properly move apps to the ext partition on the sd card asap. Please do not flash any files to try accomplish this. We no longer need to flash anything to do this as it's built in. It may mess something up pretty bad.
Also, all ext formats are supported as well. Thanks to drew's newest kernel! - 10-03-2011, 11:50 AM
Thread Author #40
Re: [How-To] data2ext for Reborn, Froyo 2.2 and CM7
Great info. I see the dalvik2cache and app2sd scripts. Looks like it's using darktremor's app2sd so people can search for info on using that.
I see there is a darktremor's app2sdgui, do you know if the app2sd script including in opti-rom is compatible with the gui? - 10-03-2011, 11:58 AM #41
Re: [How-To] data2ext for Reborn, Froyo 2.2 and CM7
I am happy you like it. Don't search for info yet. I have put up a warning in my thread for the people interested. It's a very powerful script set and someone could really mess things up! I have already included (set in boot) what I know to be safe. Anything else is being tested. And still, only certain commands can be run after certain steps have been accomplished. So there is extreme caution that needs to be taken with this! I will be testing the GUI as well. Thanks for your interest.
Side note: most things are working, however using the proper commands will be important. Please just wait it out a little guys and i will have some instructions for you.
If you already have a formatted ext partition on your sdcard, it will be the easiest instructions. If you don't, you may be waiting a while as I don't plan to include instructions in the Rom thread about how to format an sdcard... - 10-03-2011, 01:40 PM #42
Thanks for the info. I will keep checking the Roms thread for updates. Really interested in this. As this is the only thing keeping me on ZVD. I just gotta have my 1Gb.
sent from my CM7/Reborn w/ 1 Gb internal storage Optimus S
Always happy to help, hit that thanks button if I didCurrent Device(s): Motorola Droid Razr
Previous Device(s): LG Optimus S
Always happy to help out, Just remember to hit that thanks button! 
- 10-03-2011, 02:36 PM #43
Re: [How-To] data2ext for Reborn, Froyo 2.2 and CM7
You motivated me! lol Got the commands up and it's fully functional.

http://forums.androidcentral.com/lg-...ml#post1314580Thanked by: - 10-03-2011, 05:39 PM #44
Last edited by blackops1125; 10-03-2011 at 05:55 PM.
Current Device(s): Motorola Droid Razr
Previous Device(s): LG Optimus S
Always happy to help out, Just remember to hit that thanks button! 
- 10-03-2011, 05:44 PM #45
- 10-04-2011, 10:07 AM #46
Re: [How-To] data2ext for Reborn, Froyo 2.2 and CM7
Out of curiousity, once you partition, can you go back? I partitioned my 4gb card, then upgraded to a new phone and formatted the card to sell with the phone. It said I only had 2.73gb available, I'm assuming due to the partitioning? I'd like to go back to "stock" so the buyer has the full 4gb available to them.
Just another crazy Andi lover
Have you been helped? "Thank" the person who helped you!! Don't be stingy! - 10-04-2011, 10:10 AM #47Thanked by:
- 10-04-2011, 12:09 PM #48
Re: [How-To] data2ext for Reborn, Froyo 2.2 and CM7
That did it, thanks!
Just another crazy Andi lover
Have you been helped? "Thank" the person who helped you!! Don't be stingy! - 10-04-2011, 09:34 PM #49
Re: [How-To] data2ext for Reborn, Froyo 2.2 and CM7
ad74 07:14 PM Today
Originally Posted by the_maplebar:
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.
This is to: the_maplebar:
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. - 10-05-2011, 09:10 AM
Thread Author #50
Re: [How-To] data2ext for Reborn, Froyo 2.2 and CM7
I haven't used link2sd so I can't really say. I believe link2sd lets you move the individual applications to the sd card. This means there would be more maintenance (having to move apps) but you could keep some commonly used apps on the internal memory.
If you are concerned about messing up the commands I suggest you try using ADB. That way you can copy and paste the commands from the post to the command prompt. Also I have not heard of anyone bricking their phone by dong this even if they screw up. It is possible that you could screw up the ROM, I did as I was figuring this out. All I had to do was dirty flash the ROM and everything was working again. Make a nandroid backup then you can easily go back to what you have right now before running any of the steps.



Reply



































