yashsingh1/xdaforums huggingface dataset:
[Legend Android Development] picklerick:
For anyone having the issue where wiping the dalvik-cache removes all your apps, try this it has worked for me.

Ok so after wiping the /cache and dalvik-cache I would lose all my apps but they was still on the /sd-ext. For some reason the dalvik-cache was not being recreated on reboot. I then cd'ed to /data and noticed that dalvik-cache directory was missing.

To fix this, I simply created a dalvik-cache directory in /data and rebooted.

*do not run the following code from recovery*

# cd /data
# mkdir dalvik-cache
# chown system:system dalvik-cache

or If you have enough space on the internal memory you can create a symlink and reboot.

# cd /data
# ln -s /mnt/asec/data/dalvik-cache /data/dalvik-cache

or move it to the cache partition.

# cd /cache
# mkdir dalvik-cache
# chown system:system dalvik-cache
# ln -s /cache/dalvik-cache /data/dalvik-cache
[Legend Android Development] oostah:
I think busybox may have some thing to do with it. I have had to download busybox from them market. Or use TB and load busybox from the problem button.
[Legend Android Development] unzi200888:
two important questions:

1)Do i have to use blayo's method to create ext partition on sd card?

2)What is the minimum class of sd I need to have in order to data2ext to work properly?

3)why do we need fat partiton at all? why we can't just format whole sd to ext?

4)If I create two partitions - fat and ext. Does fat partition have to be empty? or I can use it free, even to use all fat partition space?

5)Does fat partition have to be fat32 or fat16?

Appreciate any help.
[Legend Android Development] m1schi:
Right now I'm still on my standard SanDisk 8GB Class 2 and in my opinion it's still faster than the internal storage. I ordered a Transcend 8GB Class 6 card today, should arrive until wednesday :)

But it's usable with Class 2 imo :P Or I'm really ignoring the slowness.
[Legend Android Development] BlaY0:
No. You can use whichever partitioning software at your disposal.

Class itself is not important.

Coz fastboot knows only to interact with fat32. And I believe that your Windoze box doesn't know ext format either so you won't be able to use you phone as attached storage.

Fat partition is used the way as it was used all the time.

fat32 if you want fastboot to be able to read contents from it.

Sent from my HTC Legend
[Legend Android Development] TheGrammarFreak:
If you format the whole thing to ext the market won't work, and nothing will mount to /sdcard. Unless the script forces it to mount.

Sent from my HTC Legend
[Legend Android Development] r69001:
Im using the V4, at the quadrant the result is 950 (a bit higher than before),

but I cant see any improvement of the speed...

why?
[Legend Android Development] TheGrammarFreak:
Quadrant scores won't improve, that's just the way it is with this implementation. As for real world speed: it depends on a number of factors, most of which have been discussed in this thread :D
[Legend Android Development] unzi200888:
Hey guys thank's for a help...

But still didn't understand abut fats 32 partition:

Right now I have 2Gb micro sd, hope to get 8gb 6 class soon...

Bur for now I have 1 Gb filled with mp3's and another 1Gb free...

I want to create 2 partitions : fats32 and ext each one of 1 GB...

Is it gonna be a problem with fat cause it will be completely full with music????

I also saw that The Grammar Freak says that ext4 is more safer than ext2...

What does it mean safer??? Less FC's or something?

And about card class, does class really doesn't matter?

So I can also use 2 class or 4 class sd?

Appreciate any help.
[Legend Android Development] r69001:
Could you conclude me them?

You, as the one who answers all the questions should remember at least generally the factors... Im going through the pages and dont really understand the posts...
[Legend Android Development] TheGrammarFreak:
I don't answer all questions.

The class of the SD card is an indication of its throughput, how fast it can manage large files. Some SD cards (often class 4) can archive much higher transfer rates with small files than SD cards of a higher class. This has a massive impact, as a lot of small file transfers/edits happen on the data partition. Scandisk class 4 tends to be a good choice for this very reason. Readahead settings will affect performance, but that's fixed with the newer versions.

I hope this helps, and that it goes some way to answering your questions.
[Legend Android Development] r69001:
Okay.

I actually want to buy a SD card, so lets say sandisk 16GB class 4 is the best?

and I really appreciate your help
[Legend Android Development] fabi280:
Get a Class 6 Card.

My 8GB Class 4 was made my Legend too slow.
[Legend Android Development] r69001:
But still... can you give me the exact card I need to buy?

I dont want it to be incompatible with the Legend, and from the other hand, i want it to be fast, and have the best compatibility for Data2Ext...
[Legend Android Development] TheGrammarFreak:
I have a transcend class 6, it does the job. It's not the best though
[Legend Android Development] r69001:
so what IS the best? :D
[Legend Android Development] TheGrammarFreak:
The most expensive glass 6 you can find? I really don't know. Scandisk ultra looks good, you have to do a little research and make an informed choice :D
[Legend Android Development] unzi200888:
Any help welcomed. :)
[Legend Android Development] laie1472:
Sup grammar hope all is good. Wanted to say been using this mod and it is super awsome. It make my phone run faster in ever aspects. I've had no problems at all once I got it up and running. Performance is way past what I expected. Just wanted to say thanks for the great mod and all the hard work.

HTC-Hero-Sprint-Cdma

RA-1.7 recovery

CM6.2-187 Rom

Dec's #589/768 kernel

Kifno-build prop mod

Grammar freaks / data2ext /ext2

16gb Class 4 sd

Equals one nice hero

Something.About.Me.U.Dont.Like

Its.Cool.I.Understand.

.AWAH.
[Legend Android Development] r69001:
TheGrammerFreak will this card work with Legend?

SanDisk Ultra II SDHC 16GB

it says:

100X ultra fast, approximately 15MB/sec Read and Write

is it good?
[Legend Android Development] TheGrammarFreak:
Should work, make sure you read the returns policy just in case ;)
[Legend Android Development] r69001:
hehe :)

and I have just downladed an app that checks the sd card speed and class...

and its very awful...

5.9 mbs write

8.9 mbs read

class: ? :)

Thank you very much for the help
[Legend Android Development] TheGrammarFreak:
The one you tested is probably a class 6
[Legend Android Development] m1schi:
Whats the smartest way to move my data partition to my new SD card? Nandroid backup on the old one / restore on the new? Or just messing around with Titanium Backup / any shell commands? :P
[Legend Android Development] TheGrammarFreak:
The script copies your data partition for you. ;)
[Legend Android Development] m1schi:
I need to start using more words to describe my concerns :P I bought a new sd card and want to migrate stuff from my old one to the new one! ;p
[Legend Android Development] TheGrammarFreak:
Oh! Sorry, I see what you mean now. My fault. If nandroid will successfully back up the ext partition then that's the way forward. Else just use titanium backup.
[Legend Android Development] PresidentJFJ:
What's that app called? I'd like to try it
[Legend Android Development] TheGrammarFreak:
What's what app called?
[Legend Android Development] :
Can you post a signed version of v7 for data2ext2? Thanks
[Legend Android Development] cigaro:
I guess you mean "S2E". It's available in the market and works pretty fine. Take a look here for more explanation.
[Legend Android Development] TheGrammarFreak:
I'd love to, but java on my PC is completely screwed. I've tried various reinstalls etc. to fix it, but I've now completely lost interest. People who know how to sign are welcome to do so. I'll add it the the first post, and you get your name there too ;)
[Legend Android Development] :
You could try ppc geek auto sign program.:) but if that doesn't work then you're screwed
[Legend Android Development] TheGrammarFreak:
Requires Java
[Legend Android Development] :
:( aww that just sucks
[Legend Android Development] TheGrammarFreak:
Yup, sorry dude. If Java works on your machine you could sign it yourself. ;) Post the signed version if you do
[Legend Android Development] spleef:
i signed this with avabox hope this helps
[Legend Android Development] :
i got data2ext enabled on my nfx stock sense rom 2.31 (w/o apps2sd) but even though its enabled in the storage it still shows 140mb and even after installing an app the storage amount didn't change :(
[Legend Android Development] psyionx:
Noob asking question...

1) a noobish question, but i really want to know. The code below the only command to change ext2 to ext4? i tough changeing file system will also make the data in the partition gone as well. but still can retain data is a new thing to me. i'm from the windows side so what the Linux side do will make me blur a bit.. ^_^

can someone tell me what happen in these commands?

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

i can read that 3rd and 4th line says that theres a journal to be written and has journal in partition mmcblk0p2.

2) i've Flashed the latest nightly build of CM7 from Blay0's rom with ext2 using RomManager with backup the previous rom tho. so i still have my partition on my card. do use this the code above to enable the data2ext at CM7 side with ext4. Or i have to follow the new users part? theres no data2ext by default in CM7.

3) If i restore back to Blay0's rom from my recovery imgs. do i need to change back the ext4 to ext2 for the rom? or it sets in properly using RomManager recovery method?
[Legend Android Development] BlaY0:
4th line actually disables journal.

If you plan to revert back to B at some point, there's a possibility to use this data2ext script instead of one from B. You would need to replace /data/local/init.d/40data2ext and load additional modules for ext4 support. Otherwise you would have to reformat that partition to ext2, coz there's no way to convert ext4 back to ext2 and data2ext script from B supports only ext2 or ext3.

Sent from my HTC Legend
[Legend Android Development] psyionx:
Ok, I'm having problem using fake flash to backup ext4. It faild to mount... (clockworkMod 3)

Blay0, some time i have problem restoring ext2. Some how the partition seems to get corupted. I think 2 times phone restart from over clocking test will corrup the ext partition easly. And another from random restart on a heavy 3d game killed it too. I only be able to fully restore rom with data2ext enabled with the commands from your partition tutorial. Ether the partition gone or its there but got corupted. Most of the test were from your rom. I was going to test it on cm7 but got tempted with ext4. Now im stuck where my cwm3 cant mount ext4. Any work around?
[Legend Android Development] playahate:
Hi. I've got a question. (Its not mine, but i'll write it)

After using your data2ext2-V7 we got appr. I/O 800 points in quadrant.

RName from 4pda.ru looked into your script and found that that it makes symlink to original /data/data ("/mnt/asec/data/data").

And when he changed lines at your script

cp -a `ls -A|egrep -v '^misc$|^system$|^property$|^local$|^lost\+found$|^data$'` /data/
for DIR in misc system property local data; do

to

cp -a `ls -A|egrep -v '^misc$|^system$|^property$|^local$|^lost\+found$'` /data/
for DIR in misc system property local; do

than it showed ~3k points.

So we wonder why did you do it?
[Legend Android Development] TheGrammarFreak:
Well, I used to have /data/data on the SD card too, but I got a fair bit of lag in certain situations, so I looked into solutions. One solution was to move /data/data to a separate partition (or even a loopfile on an separate partition) with a different filesystem. I figured that the internal partition wasn't used anymore, so we weren't gonna run out of space there, and that is seemed to have a respectable filesystem for managing databases (in the Legend's case, yaffs2). So I decided to try moving it back to internal memory, and it fixed the lag for me. It lowers the quadrant score because Quadrant does all of its IO testing in /data/data, so it essentially benchmarks the internal memory.

Please, feel free to put it back or tell me I'm wrong ;)
[Legend Android Development] Wingchun222:
Thank you sir! This issue was perplexing me!! Your suggestion worked like a charm
[Legend Android Development] unzi200888:
Question:

Can I partition my micro sd card by using recovery? I mean boot phone into recovery, then choose the advance option and then option to partition...

And then just convert it to ext2 according to TGF instructions...

Will it be ok?
[Legend Android Development] whitetigerdk:
Yup.. running fine here using that way of setting up system...
[Legend Android Development] SteaminLoaf:
Is this the reason I saw no change in Quadrant scores on my hero? Terminal said data2ext was enabled with no errors, and the size difference showed up where you install apps to ("internal"). My sd card shrank by roughly the same amount. I did not notice performance change one way or another.
[Legend Android Development] unzi200888:
wow that's strange...

It seems after flashing "update.zip" in order to get into recovery, I don't have such option(!) to partition sd card!!! any help???
[Legend Android Development] MaBlo:
ClockworkMod 2.xx don't have this option. You need version 3.xx if I remember correctly, please correct me if I'm wrong. If you don't have that you can use the recovery found in r4-legend rooting tools. Just open the recovery.exe when your at the red explanation mark. Hope this helps.
[Legend Android Development] unzi200888:
just flashed TGF recovery fo s-on users :)
[Legend Android Development] whitetigerdk:
Used quadrant to measure CM7 with data2ext enabled vs. blay0s Rom also with data2ext.. got ~1000 on cm7 and ~1700 in B0.7. Looks like the speed on I/O gained on B's rom is not obtained in CM7. Anyone else can confirm? (btw quadrant ran at CPU speed @767)
[Legend Android Development] TheGrammarFreak:
Read a few posts up, I explained why
[Legend Android Development] whitetigerdk:
Ahh.. Didn't get a word at all of what you ment ;) so only the db that quadrant uses is located at internal and all rest is on SD?
[Legend Android Development] TheGrammarFreak:
Kind of. I have an update planned, I'll write some "documentation" on it when I release. Don't pester me for it though. In that note, does anyone have any experience with making android apps? PM me if you do. :)
[Legend Android Development] r69001:
I tryed to install the data2ext v4 on my new sd card :D and its doesnt work... this is my cmd windows (without the sdk/tools navigation)...

~ # mke2fs -m0 -b4096 /dev/block/mmcblk0p2
mke2fs -m0 -b4096 /dev/block/mmcblk0p2
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
31008 inodes, 30987 blocks
0 blocks (0%) reserved for the super user
First data block=0
Maximum filesystem blocks=4194304
1 block groups
32768 blocks per group, 32768 fragments per group
31008 inodes per group
~ # tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p2
tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p2
tune2fs 1.41.6 (30-May-2009)

Please run e2fsck on the filesystem.

~ # e2fsck -yf /dev/block/mmcblk0p2
e2fsck -yf /dev/block/mmcblk0p2
e2fsck 1.41.6 (30-May-2009)
Group descriptor 0 checksum is invalid. Fix? yes

Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/block/mmcblk0p2: 11/31008 files (0.0% non-contiguous), 978/30987 blocks
~ # tune2fs -o journal_data_writeback /dev/block/mmcblk0p2
tune2fs -o journal_data_writeback /dev/block/mmcblk0p2
tune2fs 1.41.6 (30-May-2009)
~ # tune2fs -O ^has_journal /dev/block/mmcblk0p2
tune2fs -O ^has_journal /dev/block/mmcblk0p2
tune2fs 1.41.6 (30-May-2009)
~ # data2ext --enable
data2ext --enable
/sbin/sh: data2ext: not found
~ #

^^^^^^^^^^^^^^^^^^^^^^

this was in recovery screen...

when i try to activate with terminal emulator it says:

Data2EXT is already enabled, doing nothing...

and i did install the zip xD

Thank you for your help :D
[Legend Android Development] TheGrammarFreak:
Logcat boot please. also give me the output of

df -h

Cheers ;)
[Legend Android Development] r69001:
well the previous sd card wasnt working well so i replaced it...

but i just want to make sure i know how to partition to ext4? (Please explain me? I want to do it with cwm 3.0.0.6)

Thank you
[Legend Android Development] TheGrammarFreak:
first post
[Legend Android Development] dju:
data2ext4-V4.zip works great on my nexus one and last cm-7.0.0-RC2

as always :)
[Legend Android Development] TheGrammarFreak:
Sweet.

On another note: I know I said I'd make an update, and I did start. I wanted to unify the ext4 and ext2 version, I wanted to give a few more options and I wanted to make an app to control it. But I can never find the time to test every possible scenario and fix all the bugs I find. So I've decided to be honest with myself: I won't update this any time soon. I'm really sorry that I gave false promise, it wasn't something I wanted to do, and it's something I hope never to do again. I'm not going to even think about when I might try again, I could have forgotten about it by then. So, until further notice, this is a finished product. It works, it's mostly bug free. I'm happy with it.
[Legend Android Development] gidkid:
For those who want it - a signed version of the ext2 v7 zip for those using Amon_RA or other recoveries with no signature verification toggle.

If this is to be considered a mostly finished product, you might want to update the OP with this zip so that people can find it easily. Of course, it's your decision.
[Legend Android Development] TheGrammarFreak:
If you could sign the ext4 one I'd be grateful. I'll stick 'em in the OP too
[Legend Android Development] :
lol just do what most devs do with their old work they just want to brush up on....work on it when you have free time to work on your old work like this and improve it :D

maybe 3 months from now you'll release an update lol but i'll be waiting and ready to use it when you do :D

thanks for a great mod :D
[Legend Android Development] :
couldn't start data2ext :(

/ # mke2fs -m0 -b4096 /dev/block/mmcblk0p2
mke2fs -m0 -b4096 /dev/block/mmcblk0p2
mke2fs 1.41.6 (30-May-2009)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
124928 inodes, 124905 blocks
0 blocks (0.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=130023424
4 block groups
32768 blocks per group, 32768 fragments per group
31232 inodes per group
Superblock backups stored on blocks:
32768, 98304

Writing inode tables: done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 32 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
/ # data2ext --enable
data2ext --enable
/sbin/sh: data2ext: not found
/ # data2ext --enable
data2ext --enable
/sbin/sh: data2ext: not found
/ #
C:\Users\Queen35>adb shell
sh-3.2# data2ext --enable
data2ext --enable
/system/xbin/data2ext: line 6: basename: command not found
sh-3.2#

couldn't start data2extv7 :( i was so close to doing it too!!! lol

i added the files to the zip, removed apps2sd, then i did the following above :(

so close can you help out?
[Legend Android Development] TheGrammarFreak:
Hmm... Did you copy the files manually? If so then there are probably symlinks missing. Try calling the script thus:

/system/etc/init.d/40data2ext --enable
[Legend Android Development] :
posting my questions on the other thread from now on so i can keep track of everything :D
[Legend Android Development] The_Hamster:
Mine doesn't work. Help? :D

I//system/xbin/run-parts( 59): --START OF SCRIPT, PASTE LOGCAT FROM HERE ON!--

I//system/xbin/run-parts( 59): Waiting for SD card to settle...
I//system/xbin/run-parts( 59): sd-ext is not a mountpoint
I//system/xbin/run-parts( 59): I didn't find the device file. I'll make it
I//system/xbin/run-parts( 59): I'm checking the ext partition. Hang tight
I//system/xbin/run-parts( 59): /dev/block/mmcblk0p2: 11/124928 files (0.0% non
-contiguous), 4014/124905 blocks
I//system/xbin/run-parts( 59): Success! Mounting /dev/block/mmcblk0p2 to /data
...
I//system/xbin/run-parts( 59): mount: mounting /dev/block/mmcblk0p2 on /data f
ailed: No such device
I//system/xbin/run-parts( 59): Mount failed, reverting to normal mode...
I//system/xbin/run-parts( 59): run-parts: /system/etc/init.d/40data2ext exited
with code 1
[Legend Android Development] h4kudoshi:
Would this work on any other ROM? I am excited to see the some new Sense ROM's coming out and would like to try this out on them.
[Legend Android Development] curto:
oi guys i havent been here for ages but i just did a quadrant bench and i got like 895 and the I/O is crap. i went from cyanogenmod gingerbread back to froyo cause i need the proxy settings to get on my uni network and well froyo seems just faster n stuff, anyways yeah i just checked my sd card and storage thing on the phone and it says like yeah 500 or so mb total space and then i checked the terminal thing with data2ext --enable and it goes yeah its fine, its already working. so uhh yeah is the I/O meant to be like that in quadrant? i mean the phone is still fast n stuff and i havent noticed anything slowing down or anything so i never thought to check if my score was still the same on froyo but uhh yeah. so like whats going on there if anyone knows? cheers
[Legend Android Development] TheGrammarFreak:
Not sure, it's odd that it fails where it does with that error. I've never seen that before, sorry

Probably. It might need a minor edit, but it should work as is

I know exactly what's going on. This is intentional, the way I set this up ensures stability. The "other" way, the one that BlaY0 uses, requires a faster SD card than I have, so it didn't work properly for me; thus I set it up this way

It seems that on some ROMs for the Hero have a slightly different implementation of the mount binary, not sure what I can do about that. Sorry

On another note, thank you all for putting logs in where appropriate, it makes this debugging so much easier! You guys are the best ;)
[Legend Android Development] h4kudoshi:
I am trying this out on ExpressoEnergy Rom for HTC Hero. I got this error

/dev/block/mmcblk0p2 /system/sd ext3 rw,noatime,nodiratime,errors=continue,data=

ordered 0 0

not sure where to go after that..
[Legend Android Development] TheGrammarFreak:
What did you do to get that output?

twitter.com/TheGrammarFreak
[Legend Android Development] h4kudoshi:
Thats what I got from mount|egrep mmcblk0p2

I formatted every partition, and did a clean install of the rom. Then after it was successfully running I flashed the data2ext2-v7. Then I did the "mount|egrep mmcblk0p2" command in both adb and terminal and got that error. I umounted "/system/sd" and the i was able to run the "mke2fs -m0 -b4096 /dev/block/mmcblk0p2" but when it got down to the bottom where it does the writing blocks it froze at that then just went back to the adb command.

I tried to reboot and it freezes completely a short way into the bootscreen.
[Legend Android Development] Cobesz:
is it me, or isn't this working with the latest nightly build ? #25

edit: Nvm, I am an idiot. (forgot to reflash the data2ext zip -_-)
[Legend Android Development] h4kudoshi:
Any insights anyone? Help is greatly appreciated! :)
[Legend Android Development] TheGrammarFreak:
I think your ROM tries to mount the ext partition somewhere, which is why stuff failed earlier. As for the mke2fs stuff, I'm not sure what caused that.
[Legend Android Development] spleef:
i only ask this cause im guilty of doing it myself did you type unmount or umount.... the correct input is umount and try to umount sd-ext works everytime for me hope that helps