yashsingh1/xdaforums huggingface dataset:
[Legend Android Development] 24601:
tune2fs -l /dev/block/mmcblk0p2
[Legend Android Development] shara6:
how do i make my block size 4kb? i only have 1024 for it... btw i used CWR to partition my sd... is that ok?

thank you for reading my stupid question..
[Legend Android Development] shara6:
ok i run mke2fs -m0 -b4096 /dev/block/mmcblk0p2 and i saw my block size and it's 4kb now... i just spammed your thread im sorry...

peace
[Legend Android Development] maxq1:
works fine on mine. coming from cm6.1, my gizmo feels just as snappy with this mod. standard cm-adw; OC'd to 806; 8gb (w/ 1gb ext) cl6 sd. gettin' a friggin 1600+ score on quadrant, btw..

good job, TGF/BlaY0! thanks again for your work..
[Legend Android Development] shara6:
this definitely is a marvelous work... 600mhz stock frequency and i got 1200+ in quadrant!!!
[Legend Android Development] TheGrammarFreak:
EDIT:

Well, my exams are done for now. I'll look into the new version I had in mind tomorrow. :D
[Legend Android Development] shara6:
this really makes a difference... i can now play dungeon hunter.. it's now actually playable in 600-768 mhz... is it because of the 4kb block? coz i remember i played DH on CM 6.1 without any other mods, and it was painfully laggy...

i hope your exam went well, TGF... what other plans do you have for this?
[Legend Android Development] TheGrammarFreak:
I do indeed have further plans. I want to get this on ext4, and a few other things. I'm still new to scripting, but I've got the basic principles working. Panic not, I haven't abandoned you yet.
[Legend Android Development] oostah:
Yet!!!! Lol
[Legend Android Development] lykoi626:
lost data2ext

updated to the new gb version and it messed up the partitions how to i erase the block 2 so i can redo the entire process from scratch
[Legend Android Development] marvon10:
Hello,

I have enabled A2SD and is working well. My swap file is 32mb, ext-2 size 768mb and ext2 to ext3 is selected. Do i have to reformat my SD-card when i like to use

DATA2EXT? (and also fist to disable A2SD?). Please advise.

Thanks,

Mark
[Legend Android Development] TheGrammarFreak:
How badly has it messed things up? You can try running e2fsck on /dev/block/mmcblk0p2. This should identify and fix any errors on the partition without loosing data. If this doesn't work you'll have to re-format the partition.

You will need to disable a2sd for this to be on any use. Use titanium backup (or similar) to backup all your apps, then format the partition to ext2 with a 4kb blocksize as outlined in the first post. Then you enable data2ext, and you're goot to go.
[Legend Android Development] m1schi:
I'm wondering right now, the fix, that you're planning to release, are we going to use the old ext or do we need to reformat the partition and for this, backup and restore our apps? :>
[Legend Android Development] TheGrammarFreak:
It's not a fix, just a different way of doing it. You'd need to backup using titanium (or similar), install new one then restore your apps. Sorry :o
[Legend Android Development] 24601:
@TGF-

Flashed aosp's newest GB ROM for heroc. Repartitioned my sdcard to 1gb, 0 swap. When I issue the "mke2fs . . ." command to make the block size 4k, I get the return message, ". . . mmcblk0p2 is apparently in use by the system; will not make a filesystem here." Am I not set up correctly; or not connected correctly?
[Legend Android Development] TheGrammarFreak:
mmcblk0p2 (the ext partition) is probably mounted somewhere. Did you wipe data when you flashed the new ROM? If so, data2ext is still active (assuming you reflashed the zip), and the ext partition is therefore mounted to /data.

"mount|egrep mmcblk0p2" will shed some light on the situation ;)
[Legend Android Development] 24601:
Yes, I did wipe data when flashing the new rom. Here is the readout after running mount|egrep mmcblk0p2:

/dev/block/mmcblk0p2 on /sd-ext type ext3 (rw,noatime,nodiratime,errors=continue,barrier=1,data=ordered)
/dev/block/mmcblk0p2 on /cache type ext3 (rw,noatime,nodiratime,errors=continue,barrier=1,data=ordered)

So, it appears I have partitioned to ext3. Where to go from here?
[Legend Android Development] TheGrammarFreak:
The filesystem is not the issue. Your partition is mounted to 2 places atm, so it can't be formatted until it's unmounted...

adb shell
stop zygote
umount /sd-ext
umount /cache
mke2fs -m0 -b4096 /dev/block/mmcblk0p2
reboot

Do that ^ using adb

------------------------

Actually, scratch that. I've found a way to upgrade the filesystem. If only I engaged my brain occasionally. ;)
[Legend Android Development] 24601:
Awesome, thx!! After unmounting /sd-ext and /cache, I get "/dev/block/mmcblk0p2 not found" message when trying to mke2fs. I presume I need to remount /sd-ext?
[Legend Android Development] TheGrammarFreak:
?? That shouldn't happen. If you remount it to /sd-ext it will just tell you that it's in use, we'll be back to square one. It's something else that's gone wrong

---------------------

For everyone:

I've got a working system for ext4. Woot, and it doesn't lag for me either, which is a good sign. I've been hammering away at a script to install it for the last 2 hours, but I keep getting syntax errors. I am now stressed, and bored of it. Damn scripting... Anyhoo, like I said: I'm new to this. I'll get it out to you as soon as I've worked out why it keeps failing (the essence of the script works, but the extra stuff I've added over the old one don't work, and bits that used to work have stopped working.)
[Legend Android Development] 24601:
Yeah, I was afraid of that. My phone froze, as well, and when I adb rebooted, the ext came back with "mmcblk0p2 is apparently in use by the system . . ." again. I'm gonna do some looking to see if I can find a solution. I'll let you know what I find. Good news about ext4!!
[Legend Android Development] TheGrammarFreak:
The command "stop zygote" is what's "freezing" your system. It's intended.

Sent from my GT-P1000
[Legend Android Development] oostah:
This is great can't wait lol now I'm going to be watching this thread like a hawk. Thank you thank you thank you
[Legend Android Development] BlaY0:
Wassup?

Sent from my HTC Legend
[Legend Android Development] TheGrammarFreak:
All my touch commands fail for reasons unknown, as well as filesystem checks. It's no biggie, I'm sure it's an obvious mistake.

Sent from my GT-P1000
[Legend Android Development] oostah:
I found a simple boost to the data2ext gain on quadrant went from 524 to 611 I'm on the hero cdma newest GB I got it from this thread """""[DATA2SD] More space (andmoreI/O) for your Desire (New version /EXT4/Flashable ZIP)"""" in terminal """"busybox mount -0 remount noatime nadiratime/mmt/asec/ext2/data"""""" then enter I rebooted everything is great its been hr now no problems thought people would like this.

This my 2nd quadrant test

Its at the bottom of the 5th post
[Legend Android Development] m1schi:
Flashed nightly #8 and data2ext didn't work anymore. Disable, reflash, enable didn't help, e2fsck told everything was clean. Reverted back to my nandroid backup - working again :>
[Legend Android Development] TheGrammarFreak:
Logcat. :)
[Legend Android Development] m1schi:
Just flashed to #8 just for you :P As said, it's working fine when going back to my last nightly - taht was #5 or sth like that :O

There are no "--Script starts here..." lines in the logcat, found it myself ;p

http://pastebin.com/beD27Xhi
[Legend Android Development] TheGrammarFreak:
Thanks. The script starts, then the filesystem check fails. This is because your ext partition is mounted to /sd-ext before the script starts. Could you do a fresh install and logcat the boot there for me? You don't even need to bother with gapps. Don't worry if you don't want to, I can check when I'm home. Bit that's in about 5 hours. :)
[Legend Android Development] m1schi:
I'll leave it to you :p Going to restore my nandroid backup and use the old nightly so far ;p
[Legend Android Development] TheGrammarFreak:
No worries. Thanks for the first logcat. :)
[Legend Android Development] HpX:
Just did a fresh install with wipe. CM 7 - B8.. data2ext is working fine her. Did not use your latest version, used this (data2ext-CM-test5-ish.zip).

Added a download link, if anyone want to test the old one
[Legend Android Development] TheGrammarFreak:
Cheers mate. I'll look into that over the next week. What I'll probably do is make a check to see if mmcblk0p2 is mounted anywhere; if it is, unmount it before continuing.
[Legend Android Development] lmsomb:
"make sure the second partition is ext2"

how do we confirm its ext2?... anything needs to be done after partitioning the card? (besides the commands)
[Legend Android Development] TheGrammarFreak:
If you've run e2fsck it's ext2
[Legend Android Development] lmsomb:
where is that specified... I don't think i've run that
[Legend Android Development] lmsomb:
oh and i tried to enable data2ext but it says that it is "already enabled but not active" ...?

any ideas?
[Legend Android Development] NEtKLiN:
Yes, i'm know one way. Run recovery from r4-legend-root then select repair ext
[Legend Android Development] TheGrammarFreak:
Status update

Go status updates, eh? I have managed to speed up database r/w, but I've lost a lot of speed elsewhere. Lol, damn you ext4! I'm on ~1080 in quadrant now. Grr...

Another interesting thing to note is that CM 7 nightlies seem to mount our ext partition to /sd-ext, which is a pain...

EDIT:

Quadrant 1120 now. Slowly slowly catchy monkey ;)
[Legend Android Development] oostah:
I'm using this boost with your data2ext. Can it be added in?

What do you think of this.
[Legend Android Development] TheGrammarFreak:
I'll look into it

--------------

Bumpity bump! New version. I'm still trying to sort out the OP formatting wise, but all the info is there. ;)
[Legend Android Development] BlaY0:
There's actually no way to measure real performance of data2ext with Quadrant without some poking. Quadrand does all its IO tests inside /data/data/*quadrant* dir. Inside this dir are two relevant subdirs one named files and one named databases. You have to move files outside of /data/data and symlink it back if you are using 3rd partition.

As for /sd-ext... you just need to add a condition if you find something mounted on /sd-ext, you just "mount --move" it to /data. To do that, you have mountpoint utility in busybox which will tell you exactly that...

Sent from my HTC Legend
[Legend Android Development] TheGrammarFreak:
I never knew about mountpoint. I assume it returns true or false? So

if mountpoint /sd-ext; then
mount --move

that kind of thing would work?
[Legend Android Development] BlaY0:
Something like that...

Sent from my HTC Legend
[Legend Android Development] TheGrammarFreak:
You're great for straight answers... Lol
[Legend Android Development] BlaY0:
And also if it is already mounted, you can skip fsck, so above condition should occure before fsck...

Sent from my HTC Legend
[Legend Android Development] TheGrammarFreak:
It only mounts to /sd-ext if it's not ext4.
[Legend Android Development] BlaY0:
For now. Maybe in later CM bulds they will introduce mounting of ext4 and your script again won't work ;)

Sent from my HTC Legend
[Legend Android Development] TheGrammarFreak:
Updates FTW, I'll look into it. ;) Cheers :D
[Legend Android Development] ddeschenes:
not sure if if I doing something wrong?

nvrmnd my ? was answered soo new info
[Legend Android Development] m1schi:
So right now it should work with the newest nightly and ext4 without problems? :)
[Legend Android Development] TheGrammarFreak:
I did all my testing on CM7 build 11. The only problem lies in nandroid backups. See the first post for info on that
[Legend Android Development] m1schi:
I'm still S-ON, because I couldn't make it through the process without errors.

I totally need S-Off to use CMW3, right?
[Legend Android Development] TheGrammarFreak:
No, you just need to persuade someone to compile CWM3 in fakeflash format. I would, but ma Linux box is broken :(
[Legend Android Development] oostah:
If I flash CWM 3.0.0.5 then wipe everything AND in partition format boot/system/data/cache this will get rid of old data2ext right? Then flash aosp GB boot setup. Reboot to recovery flash new data2ext flash gapps Reboot. I can't really tell from my phone is the command mke2fs -m0 the same.
[Legend Android Development] TheGrammarFreak:
Sounds about right. I'm not responsible for brickings
[Legend Android Development] oostah:
What the hell lol brick!!! Can this brick the phone? I thought only the wrong radio or GSM things would brick the phone.
[Legend Android Development] TheGrammarFreak:
It could ruin your SD card.

Anyway, what I meant to say is that it's not my fault if the procedure you outlined went wrong ;)
[Legend Android Development] BlaY0:
Actually only power failure during HBOOT flash could brick the phone but even that could be solved via jtag. There are several other situations that could brick it but are very unlikely to happen...

Sent from my HTC Legend
[Legend Android Development] :
Hmm, is data2ext --disable supposed to move everything back to the phones internal storage?

If so, it's not doing such for me. I suppose I could manually mount the ext2 partition and cp everything over manually while in recovery?

/dev/block/mtdblock5 159.5M 8.3M 151.2M 5% /data

Maybe this is different from the Legend. HeroC user. :cool:
[Legend Android Development] TheGrammarFreak:
It's not meant to copy stuff back, no
[Legend Android Development] :
Ok, nevermind now I thought I was going to do another format, but I see that isn't the case after re-reading the OP 'existing user' instructions.

I think you have a typo? "tune2fs -O ^has_journal /dev/block/mmcblk0p" should be "tune2fs -O ^has_journal /dev/block/mmcblk0p2" ? notice the 2 at the very end.

upgrade doesn't seem to work, everything force closes on reboot after re-enable data2ext. ;)

the phone acts like it's a fresh install... I think data2ext --enable causes the phones /data to get copied back to the sdcard again.
[Legend Android Development] oostah:
Would it be easyer if some one singed the zip then we don't need to do s off. Is this right?
[Legend Android Development] TheGrammarFreak:
The issue is that CWM doesn't have support for ext4 below version 3. So the extra partition isn't backed up. Which somewhat defeats the point of a nandroid backup.
[Legend Android Development] oostah:
I understand that part. It was doing s off and s on. Is this becouse the zip is not singed. Sorry for all the questions just trying to learn.
[Legend Android Development] TheGrammarFreak:
The fact that my zip isn't signed is not really relevant, as we flash it through a custom recovery. The fakeflash zip needs to be signed with a specific signature
[Legend Android Development] lmsomb:
is it recommended to disable data2ext before flashing a rom?
[Legend Android Development] oostah:
Ok that's along the lines I was thinking. I thought it would be best to ask then make an ass out of my self more than I already do.
[Legend Android Development] TheGrammarFreak:
It'd make no difference.
[Legend Android Development] TheGrammarFreak:
Hmm... It shouldn't copy data across if you've done it before. And I'll look into the fs upgrade thing over the next week. You backup, right? ;)
[Legend Android Development] maxq1:
TGF, like i previously posted, got this to work on a clean build 0 of the cm7 nightly, 806oc, on an ext2 partition. everything was well for a couple of days (even when rebooting via extended controls), then this happened:

turned phone off normally via pwr button

went to CWM 3.0.0.5 via newer update.zip (i'm still s-on)

rebooted phone (wanted to make a backup but changed mind) w/o any changes from recovery --of this i'm sure: it wasn't late in the evening, not tired or under the influence of anything, or doing any other thing :D

BOOM! my phone's back to what it was PRIOR to enabling data2ext

i mean, all data was gone and storage is back to internal! :eek: enabling data2ext again says it's already enabled. had to revert to a backup as i was expecting my wife to call/sms within 30mins and prolly meet afterwards. was meaning to do a logcat but if she sees my phone w/ no sms messages and barely a couple of call logs..well, let's just say it ain't healthy for me! :o

anyway, just wanted to report this so any one trying out this mod will know. will still try this out though if i have time and report back. still, cheers for the great work!
[Legend Android Development] fabi280:
Just found out that the Music playback on CM7 build12 using data2ext4 is kinda laggy. Worked fine with CM build8 with data2ext 5th beta
[Legend Android Development] janarp:
little question... does file in first post work with class 2 sd card??
[Legend Android Development] m1schi:
Correct me if I'm wrong, but this should work with every SD class. Only the speed could vary, leading to decreased speed.
[Legend Android Development] TheGrammarFreak:
If it makes itself known to android in time, yes. Any sd card could be used

Sent from my GT-P1000
[Legend Android Development] fabi280:
My class 4 card made my legend really laggy.

Works nearly lagfree except the music playback thing mentioned above with a class 6 card
[Legend Android Development] :
Backup? What's that? :cool: I abuse my phone so much I never have time for those haha. I did finally buy TI backup and start using that + dropbox to make restoring apps a bit faster.

Anyway, I haven't had time to mess with it since. We also had a ROM upgrade so it was perfect timing to do a nice fresh wipe.

I'll probably give the ext4 a go from scratch sometime in the next few days, tho other HeroC users have reported success and the same or slightly better Quad I/O scores (FWIW).
[Legend Android Development] evank418:
had the first data2ext version installed nicely up n running. rebooted today and all apps are gone. haha i really need to study linux to understand what all these stuff means. somehow, someway, after couple reflash of the rom and data2ext, i got it back. afraid to turn my phone off now. haha
[Legend Android Development] oostah:
im running aosp GB the data2ext was fast on my hero. but this data2ext4 seams slow like its slowing down my phone. i have seen some heros getting qadrents of 611 im starting from start to see if its me my scores are lower with this. i no you can get it to fly.

how can i go back to data2ext ????
[Legend Android Development] TheGrammarFreak:
Quadrant will show this to be slower, this is because of the setup I use and the way quadrant benchmarks IO. If your phone is genuinely slower then we have a problem. I'll look into other mount options and the like. :)

And you still have my old zip I assume? Reformat to ext2 and use the old zip. But it's not as safe

Sent from my Galaxy Tab
[Legend Android Development] oostah:
well that hurts could it kill my phone using the old one whats not safe.

by bing slower IE on xda app it shows reciving information fast but when it shows prosecing it takes upto two min or longer same with the internet it hangs and downloads well some times it shows its compliet then go to the file and its empty.
[Legend Android Development] TheGrammarFreak:
You're more likely to loose data with the old version. It's up to you. And I notice the slow down too, I'm working on it.

Sent from my Galaxy Tab
[Legend Android Development] oostah:
dang i thought it was me some people on the GB thread say there heros are flying fast. with data2ext4:eek:
[Legend Android Development] m1schi:
Just noticed the sd card I'm using, that came with my Legend, is a class 2 card. Thinking about buying a class 6 now :) The increased speed should be noticeable? (While I'm not noticing any slow downs anyway :>)
[Legend Android Development] TheGrammarFreak:
It depends on more than the class. It might go faster. Find an SD card that maintains performance with small files. It's more likely to be class 4 than 6. Read reviews ;)
[Legend Android Development] utodeb:
@TheGrammarFreak

Did you see this (http://xdaforums.com/showthread.php?t=921530) ? Maybe this is the lag explanation ..
[Legend Android Development] TheGrammarFreak:
Just seen, looking into integrating it ;)
[Legend Android Development] utodeb:
Cool.

Could you maintain and push this fix in dat2ext2 and not only data2ext4 ?

because if we want data2ext4 we need cwm3, and to have cwm3 we need s-off ...
[Legend Android Development] TheGrammarFreak:
Ok, but it won't be anywhere near as tested. ;)

EDIT:

On that note, could I ask one of you to do some testing for me? Attached it a completely untested version of data2ext2. In benchmarks it will appear slower, in real world usage it should be faster. Hopefully y'all know how to make an ext2 partition ;) If someone could test it and let me know if it works, I'd be grateful (I'm busy working on data2ext4 atm)
[Legend Android Development] utodeb:
Yeah that's work nice. I have a quadrant score of 1291 (oc 768) and when I play music there is no more lag ;)

Edit : I have CM7 build 13
[Legend Android Development] TheGrammarFreak:
Cool beans. Could you grab the output of a command for me?

cat /sys/devices/virtual/bdi/179:0/read_ahead_kb

I just wanna check that the readahead settings have changed ;)
[Epic 4G Android Development] linuxkidd:
Gents,

This didn't take much effort, but I wanted to provide it since I think others can benefit from it.

The updated mods are available at http://android.linuxkidd.com/edify/ due to the size restrictions of attachments here at XDA. These are compatible with both the older Clockwork Mod versions as well as with the new 3.0.0.x which only supports Edify scripting.

I have flashed and verified the aosplock.zip to be 100% functional.

The remaining files have been modified in the same way, but were not tested. Any reports regarding errors received during the flashing process are desired.

NOTE: Original credit for these mods go to Dameon87 and were downloaded from his google code site, then modified with the new scripting.

All available mods:

297411 Jan 13 20:44 aosplock.zip
4644739 Jan 13 20:44 huluflash.zip
10191121 Jan 13 20:44 samapps.zip
11931285 Jan 13 20:44 samwidgets.zip
7692093 Jan 13 20:44 sprintapps.zip
1453370 Jan 13 20:44 stockemail.zip

Installation Instructions

----------------------------------

* adb reboot recovery

* Flash the Zip file(s)

* Reboot

If you don't get any errors during the flashing of the Zip files, then all should be fine. If for some reason, the desired outcome is not obtained, please post to this thread. However, keep in mind... I simply updated the installation script for the add-ons. I did not create the add-ons. Hopefully, someone from the community can help figure out where things went wrong.

Enjoy!

LK

--- NOTE: These have been updated as of Jan 13 to correct the installation script. Please report on the new format.
[Epic 4G Android Development] Leon H:
Nice! I'm stoked on this.
[Epic 4G Android Development] squshy 7:
Umm this is weird...are there prerequisites for this?

I'm still running di18, still on rfs, rooted with baked snack and app2sd (the whole paritioned sd card thing). I wanted to try out the hulu. Flashed with cwm, nothing failed...but I can't find it anywhere. Is the app2sd messing it up? Its not in system/app, system/sd/app, or system/data

Sent from my baked and emotionless SPH-D700
[Epic 4G Android Development] linuxkidd:
These mods are specifically targeted at DK28 ROMs, so your milage may vary.

Aside from that, there won't be anything noticable on the device. But, if you browse to Hulu ( make sure you have Plugins turned completely ON, and not 'On-Demand' in the browser ), you should be able to watch Hulu content.

LK
[Epic 4G Android Development] thizzmaster:
tried the hulu flash but when i opened it, there was a message that said that hulu is working on providing streaming to mobile phones and that its not supported on my phone as of now? it was after installing the huluflash