yashsingh1/xdaforums huggingface dataset:
[Legend Android Development] doubleup:
My Data2ext is behaving really strange.

The ext app and dalvik-cache are not being used.

The files still show dates of a couple months ago.

So newer apps are not there but the ext data partition

is in active use by all apps. When I run data2ext -- enable

it tells me that is already in use and active.

Has enyone else found this problem?
[Legend Android Development] Zin0:
Sorry for bringing this thread back to the dead to the land of the living again but I just found out about this and I have a question:p I decided to make the size of my ext partition 2048 since that's the speed of my sd booster ( app on the market). I was on the 5.0.2.7 img of Clockwork but i flashed the 3.0.0.5 version, since that's what the instructions said. Anyway, process was fine and i got about 1.8 gigs of "internal memory". However, I was wondering if I had to stay on 3.0.0.5 because after I finished enabling data2ext, I went back to 5.0.2.7 and i tried to do a backup (nandroid), but it seemed to be hung up when it got to backing up the logcat, in cache. I've waited close to 2 hours but it's stuck there. On the flip side though, I tried doing a backup (nandroid) on 3.0.0.5 and it finished like normal. So

do i have to stay on 3.0.0.5 to make the nandroid backups and restores work?

Could the size of the partition be an issue as well?
[Legend Android Development] TheGrammarFreak:
Newer versionf of CWM shousld work, yeah. I wrote all this when CWM 3 was the latest version ;)
[Legend Android Development] Zin0:
Ah. So why is it freezing/hanging up/whatever you call it (lol) when it gets to backing up the logcat?

Edit- BTW i'm using the ext4 version.
[Legend Android Development] TheGrammarFreak:
Err, I don't follow. It doesn't back up logcats
[Legend Android Development] Zin0:
Okay. So when i back up , it does the usual. It goes through data, system, android_secure, etc. but when it gets to cache, it tries to back up the logcat. So Cache is the header and logcat is the detail. Idk why it goes to logcat but it is and its get stuck there. Do you follow now?

Edit- I'm going to try doing this again but this time should I try changing the partition size to 1024 or can I leave it at 2048? Also, i'm gonna try using the 5.0.2.7 version of CWM instead of the 3.0.0.5 version.

---------- Post added at 07:43 PM ---------- Previous post was at 06:48 PM ----------

I'm getting a "tune2fs: applet not found" error after doing

tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p2
[Legend Android Development] TheGrammarFreak:
I would assume that your current version of busybox doesn't have tune2fs in it, try installing a new version of busybox (busybox installer from the market)
[Legend Android Development] Zin0:
I tried installing the latest version of busybox and i rebooted the ol' hero but alas, i still get the same error. (Using the Busybox Installer app on the market)

Edit- I tried using the "Busybox"app and apparently it worked. Trying the commands now.

---------- Post added at 08:54 PM ---------- Previous post was at 08:38 PM ----------

It's still not working. This is so strange since it worked perfectly the first time I did this...So what do you think, Grammar?

Edit- Now instead of the applet not found, i get "tune2fs: not found" What's that mean?
[Legend Android Development] TheGrammarFreak:
I don't really know, I don't understand why the commands would simply stop working. Tune2fs: not found means exactly what it says by the way, Unix is good like that ;)

In all honesty, if you can get it back to where you had it when you first posted (data2ext working, CWM 3.0.0.5) I'd leave it there. CWM3 and CWM5 are functional identical, especially for older devices.

Seeing as I don't know the exact state of your phone at the moment I can't really advise on getting everything working again. However, restoring your ROM without deleting your data would just be a case of re-flashing the ROM without a data wipe. That will revert busybox to what it was before, and it should bring tunefs back too
[Legend Android Development] Zin0:
I see... Unfortunately, when i flashed 5.0.2.7, my backups "disappeared" somewhere. So i guess i'm basically screwed. Right now, i was actually to do the ext2 version and everything seemed to go well except when i rebooted, I still had the same amount of memory left (150 mb). It most likely has something to do with the tune2fs thing. I don't suppose there's another way I could restore my busybox back to what it was 2 days ago or at least reset data2ext so it can be clean lol.:o

Edit- I had another thought..Could it be my Rom?
[Legend Android Development] TheGrammarFreak:
Wrong button there -_-

I doubt your ROM is the issue. The first few lines of the logcat while booting would help in working out why data2ext2 isn't working.

The only suggestion I have left it to back up what you can, wipe and start over. In the interest of transparency, there are probably less destructive ways of fixing this; however I haven't used data2ext in ages. I think I stopped using it about a month after I posted it here, so I have no idea how this works any more :(

To restore your version of busybox just flash your ROM again with no wipe. All your data will be intact (assuming the creator of your ROM wasn't a jerk by putting a wipe in the updater-script). What the re-flash does is restore the /system partition back to default. (Busybox is stored on /system). To reset data2ext run data2ext --disable, wipe /sd-ext then re-enable data2ext, but you lose all your data (I think).
[Legend Android Development] Zin0:
Thanks :) I'm just gonna wipe everything and start over (obviously keeping all my sdcard stuff). Since i'm so hard pressed for this, I'm gonna try doing this again lol. I need internal memory bad lol!
[Legend Android Development] TheGrammarFreak:
Ah, the joy of an SGSII ;)
[Legend Android Development] Zin0:
Lol yup. I actually was gonna get an S2 but then i heard about the SGS3, and based on the specs of it, its well worth waiting till august.;)

---------- Post added at 07:49 PM ---------- Previous post was at 07:32 PM ----------

So i basically started over everything (wiped boot,system, cache, data, sd-ext, cache partition, and dalvik cache, then restored my sdcard info from my computer to the phone and flashed my ROM again). So i tried doing the commands again and again, i got that "tune2fs: applet not found" error again, so i kinda feel that the same thing is going to happen again ( Me uninstalling and re-installing busybox and checking to see if the commands go through, but ending up giving "tune2fs: not found") So yeah.. Lemme know if i'm missing something. By the way, i'm wondering if it matters if i'm using ROMRepo's instructions or the ones in the first post?

Edit- Changing to 3.0.0.5 didn't do anything. Guess my busybox didn't change when i flashed my ROM again. Sometime tomorrow, i'll try doing it on another ROM, then if it doesn't work, i'll be on my way.
[Legend Android Development] Zin0:
Wow...just...wow...:)

I was right, Grammar:D

I had to get another ROM. I was on ZeroHero, then i wiped everything i could possibly do (save sd-card), flashed the TeamHeroC Rom, try following the instructions again, this time on 5.0.2.7 and BAM!! Genius Happened :D

So I guess this won't work on Sense ROMs. Anyway thanks for the assistance Grammar ;)

Let this be a warning to all who use this: Don't use Sense ROMs initially to enable this.. Not sure if it will work, once it's already been enabled, I plan on trying that asap and i'll report back what happens.:)

Edit- Found this article to help with flashing another ROM/kernel/etc. Sorry for the unnecessary drama ("Let this be a warning"...) lol.
[Legend Android Development] mafosh:
hi, question, i partitioned sd card using clockworkmod 5.0.2, then applied zip data2ext4-V4.zip, and ran in terminal data2ext --enable, it requested me to reboot, so i rebooted....

how do i now recognize if it works or not :) without messing phone with applications ... :)

kingston 8gb class4

EDIT: ok it works with leatest KANG CM7 :) partition over cwm5 was enough;) tested it with installing some apps, heh
[Legend Android Development] exProphecy:
hai guise. Is there anyway we can add instructions on what to do when we update our ROM (while having data2ext enabled) onto the first post? I was looking for the steps myself through the 45 pages and saw lots of people asking this same question. Wouldn't it be more efficient to add it to the main post?

Just a suggestion but great script! yay ^_^
[Legend Android Development] DemonDomen:
I have this problem on my GeeksPhone Zero:

I/run-parts( 72): --START OF SCRIPT, PASTE LOGCAT FROM HERE ON!--
I/run-parts( 72): Waiting for SD card to settle...
I/run-parts( 72): sd-ext is not a mountpoint
I/run-parts( 72): I'm checking the ext partition. Hang tight
I/run-parts( 72): /dev/block/mmcblk0p2: 11/125056 files (0.0% non-contiguous), 4018/125000 blocks
I/run-parts( 72): Success! Mounting /dev/block/mmcblk0p2 to /data...
I/run-parts( 72): mount: mounting /dev/block/mmcblk0p2 on /data failed: No such device
I/run-parts( 72): Mount failed, reverting to normal mode...
I/run-parts( 72): run-parts: /system/etc/init.d/40data2ext exited with code 1
[Legend Android Development] :
Hi, I visit from the Hero CDMA forums, and just wanted to say that this worked without modification for me.

I was lazy and just tried using CWM 3.0.0.5 (I have nothing to lose) to make the partitions on the SDcard. Apparently it uses EXT3 by default. I left it at that just for being lazy + for testing.

It works, however my SDcard isn't nothing fantastic, so I didn't really 'feel' any difference. It's Just some cheap 16GB card. Haven't done any benchmarks either. I'll have to try with EXT2 as suggested in the OP.

I don't think I'm the first to try this on HeroC, but just wanted to share and say thanks.

CM6.2.0-RC0 custom build from their source sync'd about 2 days ago

edit: for S&Gs ran Quadrant Standard (full benchmark) came out at 518. This was with JIT on, not sure why it was on tho.
[Legend Android Development] BlaY0:
Your partition was mounted as ext2 even if it was formatted as ext3. It is backward compatible.
[Legend Android Development] :
Good to know. About 24hrs of use so far and nothing wrong it seems on my HeroC. I think we have others trying it as well.

Thank you. :cool:
[Legend Android Development] laie1472:
I read this whole thread and I want to give this a try. I gave up on apps to sd a long time ago after I found firerats custom partition mod. I have my sd card formatted as 16gb with no partition. I know how to create a partition with the recovery because that's what I had to do to use apps to sd when I was using it. I have a few ?? I am by far not the greatest with understanding how this all works so please bare with me because this mod sounds real good and I want to try it. First I have a regular sd card that I bought from the sprint store will it suffice in terms of seed to try this??? I don't know what class it is I'm sure not hi quality at all. Second Am I to understand I just format my card threw my pc, then then threw my recovery, make a ext 2 or 3 partition because I read some where on this thread that they were backwards compatible " I think " in the size of 512mb or 1gb. I already have nands of all the roms I use so I can skip that part. Next do a nand restore then flash the zip that the op posted, after I sign it first or the already signed one posted by the other user. After that reboot and see how it works. My next question is can I use this with the firerat mod??? Also will this is any way brick my cell or if worse comes to worse- I can just reflash my recovery then nand restore and no harm no foul.

With the firerat mod,--- if its ok to use with it---- can anyone explain the procedure in which I would flash this mod along with it. I know I ask a lot so please bare with me. I would be sure to give feed back. I am from the hero cdma forum and read about people trying this with success. I am running CM6 01/11/2011 nightly, Darchstar OC recovery1.7 Help would be greatly appreciated thanks
[Legend Android Development] Chynkinese:
I'm no pro either but I'll give it a go. In terms of speed it seems the general consensus is that a Class 4 is the minimum. If you're not sure what class your microSD is you can try using one of these applications to measure it: http://www.makeuseof.com/tag/5-lightweight-tools-to-check-the-speed-of-your-usb-flash-drive-windows/. You should be getting at least 4MB/s for a Class 4 card.

If your card is already formated as FAT32 you should be fine to continue with the partitioning tutorial found here: http://xdaforums.com/showthread.php?t=907436. I'm using CM6.1 and it seems the version of busybox that comes with CM6.1 doesn't have the mkfs.vfat applet you need at the end of the tutorial. I formated my microSD using my computer and a gparted live CD (if you don't know what I'm talking about then you should just stick with that tutorial by blay0). Remember to backup everything on your memory card first cause it gets wiped during the process.

EXT2 and EXT3 both work. The partitioning tutorial but blay0 makes a 647 MB EXT 2 partition but any size will work. I made my EXT3 1GB.

As for the firerat stuff and onwards...I'm afraid I can't help you there. If it's the custom MTD partitions mod that you're referring to, then I personally think it'd be unnecessary to use it at all.

When messing around with your phone like this there's always a chance of bricking it (/disclaimer).

(/off the record) I have yet to hear of anyone bricking their phone to an unrecoverable state when running these mods. As long as you have access to recovery and your nand backups then you should be able to restore your phone pretty easily. This is of course based on my own experience so ANYTHING can still happen. There's always a risk of bricking...
[Legend Android Development] Chynkinese:
My question is...is the read speed more important for the microSD or the write speed? My 8GB Class 6 A-Data memory card gives me about 4.5MB/s write and 13MB/s read. :( shoulda gone with the Transcend...
[Legend Android Development] TheGrammarFreak:
Both read and write will have an impact
[Legend Android Development] Chynkinese:
I got this thing working on a 8GB Class 6 card (read ~4.5MB/s, write ~13MB/s). My quadrant score is ~1350 and it feels just as "snappy" as it was before the data2ext. However, when I try to install apps from the market it takes a REALLY long time to download/install. The system also crawls sometimes at random...
[Legend Android Development] TheGrammarFreak:
Not much we can do do fix that I'm afraid

Sent from my GT-P1000
[Legend Android Development] palakgila:
Sorry... my bad! Wrong thread... : )
[Legend Android Development] J33per:
Using your zip and guide I boosted my Quadrant score on my HTC Hero CDMA running aospGBmod 0.2.1 from 350 to 536. I am running the stock 2GB Class 2 SD card that came with the phone.

I added an entry to the wiki for the rom and liked back to this thread.

Thanks!!!

http://romrepo.info/wiki/index.php?title=Enable_data2ext
[Legend Android Development] TheGrammarFreak:
Might I suggest a few spelling corrections? I'll leave you to find them...

Also, never go larger than 2GB for the ext partition, it'll screw the market over. In your case you now have no mountable SD card if all of it is formatted to ext. (Nothing mounts to /sdcard). I feel that anything above 1024MB is unnecessary.

Swap isn't needed.
[Legend Android Development] mythboy:
Hi man,

I am a newbie to do root/flash work with my Legend. Last day, I finally flashed my unrooted OTA Froyo 2.2 into rooted CM6.1. I pretty enjoyed the achievement and keep install the apps.

Then an issue comes, although I find we can move some app to sdcard, still the internal space becomes smaller and smaller.

Then I find I can do something like data2ext.

Here is my problem, Is it possible to do this stuff without losing what I installed? Since, nowadays I tried very hard to wipe -> recovery -> reinstall those apps which I can't stand any more...

Thus could you please tell me how can I do maybe some backup and then partition the sdcard and then get the data2ext.

Thank you so much!:)
[Legend Android Development] TheGrammarFreak:
Titanium backup.

Sent from my GT-P1000
[Legend Android Development] mythboy:
Appreciate!

Then I guess What I need to do is use this titanium backup to backup whatever in my phone.

move the backup file from sdcard to somewhere in my computer

do what you wrote here to enable data2ext

then recovery

Am i right?

xD
[Legend Android Development] TheGrammarFreak:
Use titanium to backup all your apps and data. Pull everything off your SD card onto your PC. Partition using clockworkMOD, put all your stuff back on your SD card. Flash the zip. Using a terminal emulator issue "data2ext --enable", then reboot. All your apps are kept anyway. Jobs a goodun
[Legend Android Development] mythboy:
Or can I just copy whatever in my sdcard now,

then do data2ext

then move those file back.

Does this work? :)
[Legend Android Development] TheGrammarFreak:
??? When data2ext is first enabled it copies all your apps anyway. When you partition your SD card the whole SD card is wiped.
[Legend Android Development] mythboy:
Hmm, I see. I thought the zip file you posted here will perform the partition work..

Then you mean I need to partition the sdcard by myself and then do the data2ext things( I mean flash the zip.) So, actually, just flash the zip and enable the data2ext doesn't format/affect the data on sdcard.

:)
[Legend Android Development] TheGrammarFreak:
That's correct
[Legend Android Development] mythboy:
Thank you so much for your reply!!!

Could you please give me some suggestion about how many space I need to partition and what type?

I got 16G Class 4 microsd.

Then Swap 128MB

Ext2 512MB? should I format ext2->ext3?

Thanks!
[Legend Android Development] TheGrammarFreak:
1 GB ext2 partition. No swap

Sent from my GT-P1000
[Legend Android Development] mythboy:
That really helps!
[Legend Android Development] mythboy:
Sorry to make trouble again..

Once I entered the ClockworkMod Recovery 2.5.0.1

Why I didn't see "partition sdcard" menu?

Only

-rebot system

-apply sdcard:update.zip

-wipe data/fac rest

-wipe cache partiton

-install zip from sdcard

-nanroid

-partiton menu

-advanced

in partion menu, they are:

- mount /system

- mount /data

- unmount /cache

- mount/sdcard

- mount /sd-ext

- format boot

- format system

.....

-format sdcard

-format sd-ext

in advanced menu

-Reboot Recovery

-wipe dalvik cache

-wipe batter satas

-report error

-key test

Did I get a wrong version of clockworkMod recovery?
[Legend Android Development] TheGrammarFreak:
Look in the general section for the partitioning guide by BlaY0
[Legend Android Development] mythboy:
Thanks TheGrammarFreak! I am done!

I am going to use the Tixxxxx to recovery all my stuff.
[Legend Android Development] lmsomb:
I know you said it takes a while to load the first time cuz its copying stuff across but my phone is been stuck in the HTC screen for about 10mins now... is that normal?
[Legend Android Development] TheGrammarFreak:
Probably not. Get a logcat, use pastebin to post it here.
[Legend Android Development] Dennis_Lee:
it isn't working in CM7 building cm_legend_full-0.
[Legend Android Development] TheGrammarFreak:
I shall refer you to the post above yours
[Legend Android Development] m1schi:
Need your help right now.

I made a nandroid backup on CM7 with data2ext enabled. Then went to my CM6.1 nandroid backup, to make a save my Swype settings (dictionary etc) and went back to CM7. But data2ext doesn't seem to be enabled. The internal storage says its around 200MB (the default one of the Legend).

Trying to enable it via shell gives me this message: "Data2EXT is already enabled but not active..."

Also I just disabled it, restarted the phone, reenabled and restarted it again. Still not active :O

What am I doing wrong right now?
[Legend Android Development] TheGrammarFreak:
Try re-flashing the zip
[Legend Android Development] m1schi:
Should I disable it first or leave it enabled?
[Legend Android Development] TheGrammarFreak:
disable, reflash, enable. Run e2fsck on /dev/block/mmblk0p2
[Legend Android Development] m1schi:
e2fsck did the trick. Thank you :))

Still, this is not normal to appear? I just made a nandroid backup, then it didn't work anymore :O
[Legend Android Development] TheGrammarFreak:
That's the problem with ext2, I'm working on it. I do, in fact, have a working solution, it's just got features that don't work. I have an exam this Wednesday, so I'll have a crack at fixing it on Thursday. ;)
[Legend Android Development] 24601:
I used CWM 3.0.0.5 to create partition, and forgot to run "mke2fs -m0 -b4096 /dev/block/mmcblk0p2" after flashing the zip file. I ran the MOD fine and it moved my data. Can/should I now run "mke2fs -m0 -b4096 /dev/block/mmcblk0p2"? Will it damage my data if I do?
[Legend Android Development] TheGrammarFreak:
You'll loose your data if you do. If it works, leave it

EDIT:

Having said that, if you haven't installed anything since running this MOD you can run the command without loosing data. I think.
[Legend Android Development] 24601:
Cool, thx. I installed a few updates, but nothing that cannot be redone. I ran tune2fs and sure enough, block size is 1024. Sh**. What are the pitfalls with the block size at 1k instead of 4k? I'm not too far along to just do this all over. Do I need to move the data back to phone in order to do this, or just move the SDCard data to computer, repartition with the correct 4k block size, and then move data back to card? Sorry for all the questions.
[Legend Android Development] TheGrammarFreak:
The difference lies in speed. Mebbe nandroid backup, reformat the ext partition, nand-restore sd-ext then run e2fsck on it

Just to point out, the script copies data to the sdcard, and uses mount --move to move that old data partition elsewhere (/mnt/asec/data to be precise), so all your old data is there. If you format the sd-ext partition without backing it up you'll loose all your changes, and when the phone reboots it'll just copy your old data back to the SD card again
[Legend Android Development] 24601:
Thx. I created nandroid backup with CWM 3.0.0.5, got the "No sd-ext found. Skipping backup of sd-ext" message. Now, that's interesting!
[Legend Android Development] TheGrammarFreak:
The mountpoint is wrong in CWM then. Nothing I can do to fix that.
[Legend Android Development] 24601:
Yeah, that could be a problem. I'll explore with other heroc users that have tried this MOD. I used Ti to backup the couple apps I had installed, then ran the 4096 partition. It worked fine, and now my block is at 4096. I then ran e2fsck and got the following error:

e2fsck 1.41.10 (10-Feb-2009)
e2fsck: No such file or directory while trying to open /dev/block/mmblk0p2

The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>

Is this a problem?
[Legend Android Development] BlaY0:
Yes, PEBKAC to be exact. Rather use block device that really exists like for instance /dev/block/mmcblk0p2 ;)
[Legend Android Development] TheGrammarFreak:
What BlaY0 said.
[Legend Android Development] 24601:
Thx, *embarrassed*. Because I was not too far into the initial MOD, I went ahead and re-partitioned the sdcard and made sure to use the 4096 settings. All is good.

Hey, TGF, I didn't intend to increase your workload by posting this link in the Hero forum (actually, it was already posted in the wiki attached to aosp's GB thread). I just meant the Hero devs may want to look at BlaY0's Legend work to see if it can help with the Hero. Thank you both for your patience and humor, and good luck with exams this week TGF!
[Legend Android Development] TheGrammarFreak:
Lol, dw. I actually enjoy helping people. Exam tomorrow, mechanics. What fun...
[Legend Android Development] Chynkinese:
enjoy. F=ma ..works every time.

How to I check the block size of my partition?