yashsingh1/xdaforums huggingface dataset:
[Legend Android Development] mattcoz:
Well, what about this?

/system/xbin/run-parts( 64): Initiating Data2EXT...
/system/xbin/run-parts( 64): Waiting for SD card to settle...
/system/xbin/run-parts( 64): Executing file system check...
/system/xbin/run-parts( 64): /dev/block/mmcblk0p2: 141/62592 files (56.0% non-contiguous), 24422/249961 blocks
/system/xbin/run-parts( 64): Mounting /dev/block/mmcblk0p2 to /data...
/system/xbin/run-parts( 64): mount: mounting /dev/block/mmcblk0p2 on /data failed: Invalid argument
/system/xbin/run-parts( 64): Mount failed, reverting to normal mode...
/system/xbin/run-parts( 64): run-parts: /system/etc/init.d/40data2ext exited with code 1

edit:

Updated to V4 and VOILA! IT WORKS! :D
[Legend Android Development] TheGrammarFreak:
Cool. And the script is mounting it to /data, not /sd-ext. ;)
[Legend Android Development] SKAm69:
If I have an ext3 partition, what version should I use?
[Legend Android Development] oostah:
I had data2ext2 working great the 1st time i used it. Then tried data2ext4 kept getting fc on the markert and it wouldn't update my gmail it hallways showed it trying to sync. Im trying to get it up and running again with no luck.
[Legend Android Development] TheGrammarFreak:
Dude with ext3 partition, use the ext2 version.

To everyone whose having difficulty upgrading: I've just worked out part of the issue. Short term solution is to wipe data and start over (sorry). But then, you did backup, yeah?
[Legend Android Development] old.ghost:
I'm use ext4 but after some time, maybe one day, some apps can not be launched successfully. When you click app, it will go to black screen then back to desktop. After that even you reboot system or re-install app, the issue still exist.

I disable ext4 partition then re-flahs aosp 1/28 rom again, everything looks good after one day running. So the problem should be caused by ext4 partition. But I don't know what's wrong and how to fix, shall I try out ext2? Any idea? Thanks.
[Legend Android Development] sk8goofy:
Thanks!

I just wanted to say thanks! It works!
[Legend Android Development] oostah:
I'm using ext2 for aosp GB 1/2/1011 now could not get ext4 to work on the others.

I don't have the speed that I had with the older data2ext.
[Legend Android Development] TheGrammarFreak:
You don't have the quadrant score you used to. Overall it's as fast, and it's slightly more stable too
[Legend Android Development] oostah:
More stable yes. On the aosp GB thread we was just talking about the earlier build 1/26 of GB MOD was faster so it probably is the mod. Sorry for the miss information of your work. The GB MOD updates every three days it gets hard to tell what is what I apologize again.
[Legend Android Development] vinnypel2ella:
why is it that my buddy got over 1000 on quadrant with the RC3 but when updated to the newest we get like 300? curious if theres any way to increase performance through and command line stuff? Great work on this btw, worked GREAT but then market stuff stopped downloading so i had to redo it. in the process now.
[Legend Android Development] JonasDroid:
would this script work on Blay0's B0.7?

I'd love to use ext4 in stead of ext2

I guess it would but I thought I might just aswell ask before partitioning and flashing and then find out it doesn't and remove everything again :p
[Legend Android Development] TheGrammarFreak:
In theory, bit I've never tested it. Doubtless BlaY0 will make a better version anyway

The score in quadrant is known to be slower (it's expected too), and it has absolutely no impact on the actual performance.

Sent from my HTC Legend
[Legend Android Development] spleef:
when running this command after flash and partition i get error not found on both commands..

•Ensure that mmcblk0p2 isn't mounted anywhere. You can do this by running "mount|egrep mmcblk0p2". If that returns anything, the ext partition is mounted. Unmount it using "umount directory/that/mmcblk0p2/is/mounted/to". Most often it's mounted to /sd-ext; in this case run "umount /sd-ext"

.

not sure what o do from here since it wont let me unmount any advice would be fantastic thanks
[Legend Android Development] TheGrammarFreak:
What's the exact error?
[Legend Android Development] spleef:
unmount not found
[Legend Android Development] TheGrammarFreak:
umount, not unmount

Sent from my HTC Legend
[Legend Android Development] spleef:
yeah i feel stupid thanks man. i must be getting old or something...haha

but everything went through just restarted phone will let ya know how it goes.

.

i have a gig in internal storage thats freaking sweet
[Legend Android Development] spleef:
when i backed up my sd files i just copied to my pc ... just copy back and it will be ok?
[Legend Android Development] TheGrammarFreak:
In theory

Sent from my HTC Legend
[Legend Android Development] spleef:
one more question.. does this stick?.. like say aospcmod1/20 (is what im using) gets updated.... i always flash from freshly wiped and formatted. so when i wipe and format will it still be enabled and running or do i have to do it again? also is ext4 compatible with other cutom roms such as jaybob's builds of CM(froyo) or aosp's froyo rom? those are the other roms i use when not playing with the gb rom. not sure if this has already been covered, ive read alot of the thread just maybe missed it or didnt understand. thanks again
[Legend Android Development] TheGrammarFreak:
It doesn't stick.

Ext4 will only work if the ROMs kernel has support for ext4.
[Legend Android Development] zeonism:
Hi TheGrammarFreak,

First of all, thanks for making this available, great stuff.

There's a question I hope you can help to answer before I put my hands on it. I am currently on the CM7 nightlies with Data2ext4 installed. Now I see B 0.7 seems good to give it a go just for trying it out so I assume the following steps are the correct way to perform in order to revert back to my currnetly CM7 nightlies + Data2ext4 any time I want:

1. Do a Nandroid backup on my current ROM. (with Data2ext4 enabled)

2. Flash B 0.7 the normal way with Rom Manager

3. To go back, do I just do the Nandroid restore? or do I flash the CM7 first then flash and enable Data2ext4 after that then I do the Nandroid at the end?

Thanks very much for helping me out with this

Andy
[Legend Android Development] TheGrammarFreak:
If you use CWM3 and it does successfully back up /sd-ext then yes, that should work. You might run e2fsck on /dev/block/mmcblk0p2 after you restore.

If you're using CWM2.5 then fear not! Help is at hand. Do an nand backup. This will do everything except the ext4 partition. Now you'll want to do this:

su
dd if=/dev/block/mmcblk0p2 of=/sdcard/data-backup.ext4

To restore you'd do a similar thing:

su
mkdir /mnt/asec/tmp
mount /dev/block/mmcblk0p2 /mnt/asec/tmp
dd if=/sdcard/data-backup.ext4 of=/mnt/asec/tmp

then reboot and activate data2ext ;)
[Legend Android Development] zeonism:
Yes, that was the path I went, cheers buddy!

Andy
[Legend Android Development] Macanage:
TheGrammarFreak,

I was running into a few FC'd issues. Handcent, Google maps and voice. I un-installed them several times and then re-installed. They seem to work fine for a while until I come out of airport mode or reboot the phone. I thought it would be good idea to un-install them, wipe davlik cache, and then re-install. After wipe of Davlik all did not go so well. Most apps were frozen and some missing along with no pics on the app shortcut. I did the "data2ext --disable" rebooted, wiped davlik and re-installed the Handcent, google maps and voice. Not sure where to go from here.

Will I need to run the line codes again or just enable data2ext? Does a wipe of Davlik screw things up or is it just my dumb luck?
[Legend Android Development] picklerick:
since installing data2ext4 my phone takes 5-7 mins to boot up, logcat says something about davlikm and goes through all my apps
[Legend Android Development] TheGrammarFreak:
Issues noted

Sent from my HTC Legend
[Legend Android Development] :
anyone know how to get this to work for liquidsense 2.1.1 beta 2.1 sense based rom for the htc hero cdma?

thanks
[Legend Android Development] laie1472:
Sup Grammar, hope all is good.

Wanted to know am I correct ??? The only way to screw up this mod is to have a sudden power loss like battery failure or if I drop my phone and the battery comes out. If so what are the damages done in such a case?? and what steps would I have to do to fix it. Also is it safe to do normal reboots or should I stick with the power down function??? And do I have to flash the zip file and redo the process over again if I want to change roms?? If these questions have been asked already I apologize for asking them again. On a side note I have this working on CM6187 and it works great. Took me a few tries as I was trying to use a nand and with that it was a no go lol.

But when I started fresh it was good. Thanks for a great mod.
[Legend Android Development] TheGrammarFreak:
Reboot from power menu is fine. If anything gets corrupted then run e2fsck on the affected partition. And you need to reflash this zip with any rom change

Sent from my HTC Legend
[Legend Android Development] laie1472:
Super Thanks...
[Legend Android Development] laie1472:
A sup grammar hope all is good.

Running your mod and its made my htc hero a new phone thanks its way faster in every way. How ever I cannot figure out how to do a nand+ext or just a nand.

I'M Using RA1.7 recovery,dec's oc768 kernel#589 and CM6-2-187. And I've ran the check, it always comes back as 0contagious 0errors. I ran the -p in the check menu to fix all problems no questions, and still no go. I mean my phone flawless with this mod untill I want to do a nand or a nand+ext. It will go and make both nands no problem but after making a nand the phone refuses to boot back up. I've waited for an hour. Then I have to do a battery pull because its stuck. And when I restore a nand its has none of my settings. Its like I flashed a new rom. So I have to repeat the whole process. And then I can boot up fine. Is there anything I'm missing for getting a nand?? I've fast boot erased and reflashed my recovery a couple of times thinking I had some corrupt files that were mabey preventing the nand. But no go. So your help would be greatly appreciated thanks

Something.About.Me.U.Dont.Like.

Its.Cool.I.Understand.AWAH
[Legend Android Development] JonasDroid:
Why don't you try to disable data2ext -> do a nandroid backup -> enable data2ext

That should copy the data to your phone so it can do a nandroid as usual.

That is if you have enough storage space on you phone
[Legend Android Development] laie1472:
What do you mean if I have enough storage on the phone???? I have a 16gb card. Is that what your meaning. And Ill try what you suggested thanks

Something.About.Me.U.Dont.Like.

Its.Cool.I.Understand.AWAH
[Legend Android Development] picklerick:
ok I dont want to sound like I am complaining since this is a great mod and I very much appreciate your work. I found out the reason I am having issues with apps crashing and the long boot times is due to me upgrading aosp CM7 roms. Every time I upgrade the issues begin, I would say 75% off my apps crash after upgrading. I end up having to do a complete wipe and reinstalling everything and then enabling data2ext.
[Legend Android Development] oostah:
That's why I have TB and its still easy compaird to firerat.
[Legend Android Development] picklerick:
I have TB too, do you restore both apps and system or just the apps?
[Legend Android Development] oostah:
Some times just apps apps and system still learning it. Do run fix permissions dose help. Some times I run it 2 or 3 times till they are 98% fixed I have 118 that it fixes I try to get 110 fixed
[Legend Android Development] laie1472:
Im running this on CM6-2-187 And all of my apps work haven't had any crash or force close they all work better.. On a side note to the guy having trouble with apps fc try enabling data2sd before you load up all your apps and when you have it enable reboot first. Then load ypur apps.

Something.About.Me.U.Dont.Like.

Its.Cool.I.Understand.AWAH
[Legend Android Development] picklerick:
no i mean apps only FC after upgrading the rom, for example:

I am running asop-CM7 and then there is an update to the rom released, so i flash the newer version of the rom and then reflash data2ext and after it boots up all my apps are listed but 75% of them crash. I tried reinstalling the apps that FC which fixes the problem but only till i reboot. After I reboot for the second time the apps FC again. I have also tried wiping only the Davilk cache.
[Legend Android Development] laie1472:
With this mod I would recommend a full wipe ever time you flash an updated rom. Just flashing the rom over the previous rom and flashing the file again might be the cluprit.

Something.About.Me.U.Dont.Like.

Its.Cool.I.Understand.AWAH
[Legend Android Development] picklerick:
wow i just realized it does it even after a fresh install as soon as i reboot the aps all crash but if i dont reboot everything it fine, oh and i am running EXT4 version. if I reinstall the crashing apps they will run fine till i reboot, wtf?

also i wiped the /cache and dalvik-cache and now all apps except system apps are gone...
[Legend Android Development] laie1472:
Are the apps you have already loaded when you do the enable data2sd. Or do you flash the rom, then enable then reboot then load your apps?? And are you doing a batch install like with TB. You know loading all of the apps at once???

Something.About.Me.U.Dont.Like.

Its.Cool.I.Understand.AWAH
[Legend Android Development] picklerick:
I flash the rom, then gapps, then reboot. Then setup my google info and install TB. After that I flash data2ext, enable, and then reboot and next I restore my apps from TB in batch mode. Everything is fine till I reboot after installing all the apps.

PS. It doesn't matter if I install the apps using TB or the market both ways FC.
[Legend Android Development] oostah:
Take your apps off sdcard it has a hard time keeping apps and app setting if they are on apps2sd there is a apps2sd killer to help with that. I have to go move some of mine back to the phone after reboot. I for get to flash the apps2sd killer.
[Legend Android Development] picklerick:
link to this apps2sd killer? i cant find anything on it
[Legend Android Development] oostah:
I posted the zip on kifno's thread not sure where its at now maybe 6or7 pages back on his thread

Edit its on page 40 is the zip you have to flash rom then apps2sd killer boot don't load any thin just make sure it boots then go back to recovery flash gapps sigh in let it do its thing let the sync at the top get done then flash data2ext and then do the commands
[Legend Android Development] laie1472:
Yea my advice is to not load any app or any data untill you have the data2 ext up and running so.... Flash your rom then google apps. Then boot up. Sign into your account let it sync. Then boot into recovery and flash the data2sd zip. Then boot up and do the commands and reboot. Then check your internal mem. If its all cool then reboot once again. I say this to me is a for sure measure IMO. to make sure everything took well to the system. After that then load all your apps back with TB. With this mod I noticed that the apps all go to internal mem. The option to move to sd is greyed out in my apps list. Hope this helps Good luck.

Something.About.Me.U.Dont.Like.

Its.Cool.I.Understand.AWAH
[Legend Android Development] laie1472:
A oostah that's strange my apps all install to internal mem. by default. The option is greyed out. What data2sd are you using????

Something.About.Me.U.Dont.Like.

Its.Cool.I.Understand.AWAH
[Legend Android Development] oostah:
I'm running aosp GB they still get moved to SD even when set to internal.
[Legend Android Development] laie1472:
Something.About.Me.U.Dont.Like.

Its.Cool.I.Understand.AWAH
[Legend Android Development] wjason:
I had the same problem. I would have to reinstall widgets after every boot and most apps would have to be reinstalled.....so I went back to Firerat's. Not as much space but runs more smoothly for me.
[Legend Android Development] TheGrammarFreak:
Odd, I don't get such behavior...
[Legend Android Development] picklerick:
I wish i knew what was going on, the steps i take are:

1. wipe

2. format all partitions (sd-ext, boot, system, cache, data)

3. flash lastest asopCM7 rom

4. flash gapps

5. reboot and sign in to google

6. reboot, flash data2ext4-v4, and reboot

7. issue commands:

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

8. reboot and install apps (everything runs fine)

9 reboot = fail (the same apps always fail, ie: maps and handcent sms)

system apps are not affected and when I launch the music player it starts scanning my sd card for errors
[Legend Android Development] TheGrammarFreak:
If you can face doing it all again (I don't expect you to, don't worry) could you start fresh and logcat the first boot process after you enable data2ext?
[Legend Android Development] picklerick:
yea i will install everything again and provide the logcat, not a problem
[Legend Android Development] picklerick:
removed........
[Legend Android Development] TheGrammarFreak:
Woah. Hmmm, I'll read it carefully later. Lol

Sent from my HTC Legend
[Legend Android Development] picklerick:
ok thanks, I hope you can help cause your mod spoiled me and now I need my space :)
[Legend Android Development] TheGrammarFreak:
It looks to me like apps are overwriting themselves... Most unusual... Try the attached zip (you might need to start over. Again, very sorry).

EDIT:

There is also a possibility of a screwed SD card, if you have a spare kicking around try that one out. If it is a screwed SD card we'll have to discuss whether or not it was this mod that did it. I sincerely hope not

EDIT 2:

Or, of course, move the partition. It would be possible to have the ext partition first, followed by the FAT32 one, but I'd need to edit the script for that to work. If we need to do that; 1. It's not a problem, and 2. The corrupted area of the SD card would be part of the FAT32 partition, which could also cause issues

All of this is not to say that your SD card is borked, I'm just considering the solutions. ;)
[Legend Android Development] picklerick:
thank you for you time, I will try the new .zip later tonight when I come back. Also the SD card is less then one month old but thats not to say it isnt the cause of failure, especially since its a Wintec card. I do have a spare SanDisk one around here some where. I will try the spare card also and report back.
[Legend Android Development] TheGrammarFreak:
Ko, I'm sorry to be so negative. I wish I knew an easy fix, I really do
[Legend Android Development] picklerick:
ok so I decided to try the data2ext2-v7 first and i have rebooted about 10 times without any issues. are the scripts much different? why would the ext4 version cause these issues and not the ext2? I will still try the ext4-testing version also.

here is the logcat from the ext2-v7

--------- beginning of /dev/log/main
I/cm ( 69): Welcome to Android 2.3.2 / aospCMod-aospCMod-20110201
I/cm ( 70): _
I/cm ( 71): __ __ _ ___ _ _ __ ___ __ _ _ _ _ __ __))
I/cm ( 72): ((_ \(/'((_( ((\( ((_)((_( (('((\( ((`1( ((_)((_(
I/cm ( 73): )) _))
I/cm ( 74):
I/mountsd ( 89): Checking filesystems..
I//system/xbin/run-parts( 64): e2fsck 1.41.10 (10-Feb-2009)
I//system/xbin/run-parts( 64): /dev/block/mmcblk0p2 was not cleanly unmounted, check forced.
I//system/xbin/run-parts( 64): Pass 1: Checking inodes, blocks, and sizes
I//system/xbin/run-parts( 64): Pass 2: Checking directory structure
I//system/xbin/run-parts( 64): Pass 3: Checking directory connectivity
I//system/xbin/run-parts( 64): Pass 3A: Optimizing directories
I//system/xbin/run-parts( 64): Pass 4: Checking reference counts
I//system/xbin/run-parts( 64): Pass 5: Checking group summary information
I//system/xbin/run-parts( 64): /dev/block/mmcblk0p2: ***** FILE SYSTEM WAS MODIFIED *****
I//system/xbin/run-parts( 64): /dev/block/mmcblk0p2: 266/62592 files (6.0% non-contiguous), 55568/249952 blocks
I/busybox ( 95): mount: mounting /dev/block/mmcblk0p2 on /sd-ext failed: Invalid argument
I/logwrapper( 95): busybox terminated by exit(255)
I/busybox ( 98): chown: /sd-ext: Read-only file system
I/logwrapper( 98): busybox terminated by exit(1)
I/busybox ( 100): chmod: /sd-ext: Read-only file system
I/logwrapper( 100): busybox terminated by exit(1)
I/mountsd ( 102): /sd-ext successfully mounted
I//system/xbin/run-parts( 64): Initiating Data2EXT...
I//system/xbin/run-parts( 64): sd-ext is not a mountpoint
I//system/xbin/run-parts( 64): Waiting for SD card to settle...
I//system/xbin/run-parts( 64): Executing file system check...
I//system/xbin/run-parts( 64): /dev/block/mmcblk0p2: 266/62592 files (6.0% non-contiguous), 55568/249952 blocks
I//system/xbin/run-parts( 64): Mounting /dev/block/mmcblk0p2 to /data...
I//system/xbin/run-parts( 64): EXT partition mounted...
I//system/xbin/run-parts( 64): Data2EXT enabled...
I/logwrapper( 64): /system/xbin/run-parts terminated by exit(0)

as you can see I am still getting the "/dev/block/mmcblk0p2 was not cleanly unmounted, check forced." even though I am rebooting normally. I'm not sure if that is normal but I figured I just point it out.

also I just tried to install angry birds and it keeps saying I don't have enough space to install angry birds even though i have 762mb free....

even tried with ADB Install

C:\android-sdk_r05-windows\android-sdk-windows\platform-tools>adb install files/AngryBirds.apk
failed to copy 'files/AngryBirds.apk' to '/data/local/tmp/AngryBirds.apk': No space left on device
[Legend Android Development] BlaY0:
/data/local is still on internal storage. Free some space on internal storage or make a tmp dir somewhere on SD and symlink /data/local/tmp to it.
[Legend Android Development] TheGrammarFreak:
The fails with ext4 are interesting. I'll look into it, but I have no idea what causes it

Sent from my HTC Legend
[Legend Android Development] picklerick:
Is this correct? I was under the impression that the whole /data partition was mounted to the SD-EXT partition. How would the phone be able to distinguish "/data/local" being on internal storage and "/data/data" being on sd-ext storage? For this to be possible I would have to create the symlink like this /dev/block/internal_storage/local/tmp -> /data/local/tmp , right? If "/data" points to the sd-ext partition wouldn't every sub-directory point to the sd-ext partition also, unless it was symlinked back?

PS. I apologize if I am completely wrong since I am new to this.

****EDIT****

I removed all the files from the /app folder and the insufficient storage has stopped. thanks and sorry for being lazy.
[Legend Android Development] BlaY0:
You don't have to guess anything... just take a peek into the script and you'll see which directories are actually symlinked back to internal storage...
[Legend Android Development] spleef:
Seems like everybody skips the partition part could that be the problem way I do it is I get my rom settled in boot to recovery move everything on SD to my pc. while in recovery flash data2ext zip still in recovery I partition 1k and swap0 then I reboot and run terminal emulater to run the set up and enable

Reboot then check storage if all is well put everything back on SD you put on PC. has worked this way for me 6/6 times
[Legend Android Development] BlaY0:
LOGCAT

10 chars
[Legend Android Development] Pyr0TeK:
Ok... I just edited my original post. Powered off phone, started adb logcat, powered on phone. That enough?
[Legend Android Development] TheGrammarFreak:
e2fsck does not seem to be part of your ROM