yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] AspenTree:
i'm going to test on a fresh install of liquidsense and hopefully this works b/c i just switched back to gingerbread to get the speed of data2ext and i just installed all my apps again so hopefully you found the fix....i'll post back with results
[Android Software/Hacking General [Developers Only]] AspenTree:
sigh....bootloops.........i'm going back to gingerbread.... :(

someday i wish someone could get app2sd removed so that i could have data2ext working on sense 2.1
[Android Software/Hacking General [Developers Only]] unCoRrUpTeD:
I just downloaded and flashed liquidsense and then a2sd_removal.zip. Booted right up.

It does remove busybox.a2sd, but in all testing across several different phones that has not caused any problems as the regular busybox is still in the ROM. The copy_remove.zip was missing some code to mount data before copying over, but I changed that one as well.
[Android Software/Hacking General [Developers Only]] AspenTree:
OKay so is this the correct instructions:

- wipe everything

- partition sd card to have 512mb ext2 (that's what i always use for ext)

- flash fresh install of rom

- flash data2ext.zip

- then reboot into system?

or do i

- wipe everything

- partition sd card to have 512mb ext2 (that's what i always use for ext)

- flash fresh install of rom

- reboot into rom

- reboot recovery

- then flash data2ext.zip?

thanks for all they help you've given me :D
[Android Software/Hacking General [Developers Only]] unCoRrUpTeD:
Updated OP.

Should be pretty clear now. :D
[Android Software/Hacking General [Developers Only]] maxq1:
before i dive into this, bro, some questions if you will:

this moves everything in /data to sd-ext right? by everything, does this include even dalvik cache?

if, for any reason, i decide or need to return everything back to internal storage i could simply flash a2sd-copy-and-blast right?

thanks in advance!

EDIT 1:

bootloop! htc legend on cm6.1 w/ darktremor a2sd; ext3 partition. restored everything to internal storage, flashed a2sd-blaster then data2ext-V1. after restart, bootloop :(..will try on ext2 partition later

EDIT 2:

bootloop also on ext2..was really hoping this mod will work on my phone
[Android Software/Hacking General [Developers Only]] unCoRrUpTeD:
I'll look into it as this is also part of my dual-boot script that I am working on, which means that if this doesn't work on certain phones then the dual boot scripts won't work on all phones.
[Android Software/Hacking General [Developers Only]] maxq1:
^ cool, man! i'm waiting on that as well. thanks!
[Android Software/Hacking General [Developers Only]] AspenTree:
this didn't give me bootloops so you've completed that step

but this didn't work at all :(

here's what i did:

- partition sd card

- wipe everything

- fresh install NFX stock 2.31.651.7 oxed (without apps2sd)

- install data2ext.zip

- reboot into rom

- once i approached the initial lock screen, i did adb shell reboot

- then i signed into google

- let it sync and load

- then i check application storage and it said 136mb

- so then installed titanium backup from makret

- after install i checked internal storage

- it went down to 131mb!

summary: not only did internal storage not say like 4xxmb like it does when gingerbread uses data2ext w/ 512mb, internal storage didn't even say anything different than the stock amount of internal storage :(

also even if the interal storage didn't correctly say how much storage we had after installing 1 app i knew this zip didn't take affect b/c of the great lost in internal storage :(

again i testing on nfx stock 2.31.651.7 (without apps2sd and oxed) and this did not work :(

edit: after fresh install method i tried the method where the rom doesn't have apps2sd.....this still doesn't work :(
[Android Software/Hacking General [Developers Only]] AspenTree:
this would be awesome if i got this to work on my rom but it doesn't even work on my rom's base....:( and you haven't fixed yet....but i'll be checking up on this for fixes whenever you release a fix :D
[Android Software/Hacking General [Developers Only]] unCoRrUpTeD:
I might be able to get to it tomorrow. If not it will be Wednesday. Been hard at work on my dualboot script, which uses a very complicated method of determining how to set it up. I only need to make a couple changes to this and symlink everything differently. I'm going to download nfx's Rom without a2sd as I had been testing on his a2sd stock Rom.

Sent from my dual-booted liquidsense 2.1
[Android Software/Hacking General [Developers Only]] AspenTree:
After talking with TGF about getting this to work with sense roms he said we need the correct e2fsck for sense 2.1 roms and also the libext2fs.so file for sense. Then we need to make sure busybox is intergrated into the ron by default. He couldn't help me get those files so the rest was left up to me but he did correct the script for sense roms though. Thought. I'd share that with you so that you could try and get this working for sense roms on the hero CDMA after you complete your dual boot mod. :)
[Android Software/Hacking General [Developers Only]] i@jim:
Sorry to sound noobish here, but I'm running AOSP 2.2.1 on my heroc. i have moved all my apps to internal using titanium backup (in preparation for this). i have formatted by sdcard using cwm 3.0.0.5, with a 512 MB partition and 0 (zero) swap. Now I want to flash your cool data2ext! Which one do I use?

Important note! I have already tried flashing GrammarFreak's data2ext (ext2 version), and for some reason it didn't take.

And just now when I go into terminal emulator,

su

and then

data2ext -- enable

I get the following: "data2ext already enabled but not active."

Does this mess things up terribly? Can I still flash your stuff?

Yours,

Jim
[Android Software/Hacking General [Developers Only]] unCoRrUpTeD:
I haven't changed what is here. It might work, might not. I tested on a couple of roms and it worked, but didn't work on others. Nandroid first. Flash a2sd-blaster.zip which removes any instance of a2sd and data2ext. Flash data2ext.zip.

Like I said I haven't changed it yet. Been working on my dualboot script. So it might work and might not.
[Android Software/Hacking General [Developers Only]] i@jim:
That's completely cool. Thanks for taking the time to reply!

Yrs,

Jim
[Android Software/Hacking General [Developers Only]] grifovunque:
...perfect...

very good apps.... i ' m very happy....

now i have used data2ext on new installation of rom and work perfectly on ideos with 1gb ext4....

it's a beautiful utility for adding space to internal memory...

excellent...

later i try with an already installed rom with a2sd....

thank you very much!!!!

:):eek:

update: i have a problem, apparently all work perfectly but when i active wifi the cell reboot :-(
[Android Software/Hacking General [Developers Only]] zicoxx:
same problem with wifi..

on my ideos script runs very very well but when i enabled wifi my phone reboot..sigh

i hope that's you can fix it..

however thanks,great script!
[Android Software/Hacking General [Developers Only]] evilvoice:
Works semi-great on a heavily modded Sprint stock rom. Overall, it took a few reboots, but is working. I have 409mb available. The only issue I found is that AlarmDroid does not work. I tried moving it to system/app and still not loading...i may try moving it in the actual rom, reflash everything and see what happens. The offending apk is not your fault by any means, just listing what I came across. I flashed the zip after I used your sd partitioner. On first reboot after flash, phone was normal...read that you said it takes another reboot, so I performed another reboot. On 2nd reboot, the whole system FC (just about every app came up and FC), performed another reboot. On 3rd reboot, AlarmDroid complained - but everything seemed fine...did a few more reboots, but it looks like the 3rd is the magic number for my rom...I may include this in my personal rom (obviously removing duplicate files like bb

I have one request and that is to make it more like the other scripts and allow it to be enabled, or not enabled. I am not saying have an on/off switch as the scripting for that would be extremely complicated, but have an off until enabled on switch for those looking to throw this in a rom. It is possible to put this in a rom, but some may not want it enabled right off the bat (like me)...Could it be possible to have an enabler script that upon running would move files where they needed to go? Like for instance have the tmp folder, add a file called enabled2e (or something) that runs mountpoints.sh and moves /tmp/50data2ext to system/etc/init.d...I dunno, just spitballing
[Android Software/Hacking General [Developers Only]] unCoRrUpTeD:
Creating a flag to enable or disable is pretty simple. Not sure if I put one in there. I'm not looking at it right now. All it needs is ...

if [ -f /data/.data2ext ];then
xxxx -------
xxxx /
xxxx | Existing commands
xxxx \
xxxx -------
else
# move everything back to /data
cp -a /xxx/xxxx/* /data
exit 0

I'm going to update this at one point with some checks and a different way to mount everything, which will reduce the overall script size and make it more compatible with more roms and phones. It's been a while since I looked at it , but I know that I include busybox in somethings as it has more functions than what is normally provided in the roms.
[Android Software/Hacking General [Developers Only]] grifovunque:
sorry unCoRrUpTeD,

have you reports for wifi problem on ideos when i use your script?

have you some ideas?

thank you
[Android Software/Hacking General [Developers Only]] unCoRrUpTeD:
I'm working on a new script that should solve the problem.
[Android Software/Hacking General [Developers Only]] grifovunque:
Wow this is a great news

Thank you very much :-)
[Android Software/Hacking General [Developers Only]] ungaze:
Will this replace the ROM's installed busybox? I'm not sure but I think darktremor's app2sd uses it's own busybox(busybox.a2sd?), can you make the same kind of modification? cause I don't want or rather I can't change my ROM's preferred busybox as it gives birth to some problems. who knows, it might also solve some problems.
[Android Software/Hacking General [Developers Only]] unCoRrUpTeD:
If I need to. I don't think I have to. busybox.a2sd has commands not usually found in the roms busybox and the script knows where it is.
[Android Software/Hacking General [Developers Only]] oostah:
man thanks this the easist data2ext i have used. good speed to. htc hero

GingerSense 2.3.3
[Android Software/Hacking General [Developers Only]] unCoRrUpTeD:
On top of that the script is pretty simple. I had been sitting on this script long before data2ext was even mentioned. Didn't know there was a want for it.

I just need to add some filesystem checks, and change the way it links everything, but will keep this one for those that can use it. But both should work just as well. Also going to add in a change for r/w buffer size of the sdcard, which should increase it even more.
[Android Software/Hacking General [Developers Only]] oostah:
tats great im trying a r/w buffer now dont like it much. will give your a shot.:cool: thanks alot for this. it made things alot easer.
[Android Software/Hacking General [Developers Only]] grifovunque:
Have you news to solve wifi problem on ldeos u8150? Thank you.
[Android Software/Hacking General [Developers Only]] shogunn:
Worked great on Evo running CM7 RC4. Only problem is that when you apply a theme using theme manager it does not stick after a reboot. Work around is to just do a hot restart, other than that awesome getting quadrant scores in the 2000 range.
[Android Software/Hacking General [Developers Only]] unCoRrUpTeD:
I think I have a flag set in /data. Not sure. But I should have a different version up this week.
[Android Software/Hacking General [Developers Only]] fowenati:
From the first post I can do this without wiping by doing the Copy-Blast one, then the Data2Ext?
[Android Software/Hacking General [Developers Only]] unCoRrUpTeD:
Yes. And I should have the new version up either tonight or in the morning.
[Android Software/Hacking General [Developers Only]] fowenati:
Alright I guess I'll wait for the new one then. Been tryin to get data2ext for a while now
[Android Software/Hacking General [Developers Only]] unCoRrUpTeD:
I had some bad storms move through last night and am cleaning up the mess that was left behind. I tested out the new version this morning, but need to do some work to it to decrease the time it takes to turn the screen on. The version thats up right now is the same version I'm working on, minus an e2fsck check and the scripts to carry this over on a fresh install or update of a rom.
[Android Software/Hacking General [Developers Only]] oostah:
them storms are going to hit us at 1:00am. hope you didnt get to much damage. look forward to the new release take your time. we will be here when you are ready.:D
[Android Software/Hacking General [Developers Only]] unCoRrUpTeD:
Luckily I didn't get any house damage. Just a knocked down tree and half of my fence is down. I love severe storms, but now that I have my own house its a mix of love and hate.

BTW: Have you tried the ubuntu install yet. I'm going to give it a try Wednesday.
[Android Software/Hacking General [Developers Only]] oostah:
not wet i'm going to give it a go sometime this week. maybe tomorrow :D
[Android Software/Hacking General [Developers Only]] Pyr0TeK:
So I got a new SD card... 16gb class 6. I formatted my card with clockworkmod 3.0.2.4 for 256 data (i think) and 0 swap sizes. I installed CM7, gapps, flashed data2ext and got the phone up and running after a few reboots. My phone is super slow when running apps now, like Facebook, Gmail, etc... to the point it asks my if I want to FC them and I just click wait a few times. How can I tell if my sd card is setup correctly and/or what can I do to look at my setup to make sure I have this setup correctly?

Here is my: df -h

Filesystem Size Used Available Use% Mounted on

tmpfs 95.4M 32.0K 95.4M 0% /dev

tmpfs 95.4M 0 95.4M 0% /mnt/asec

tmpfs 95.4M 0 95.4M 0% /mnt/obb

/dev/block/mtdblock3 170.0M 94.5M 75.5M 56% /system

/dev/block/mtdblock5 236.3M 117.5M 106.6M 52% /data

/dev/block/mtdblock4 130.0M 70.4M 59.6M 54% /cache

/dev/block/mmcblk0p2 236.3M 117.5M 106.6M 52% /data

/dev/block/mtdblock4 130.0M 70.4M 59.6M 54% /data/dalvik-cache

/dev/block/vold/179:1

15.2G 942.3M 14.3G 6% /mnt/sdcard

/dev/block/vold/179:1

15.2G 942.3M 14.3G 6% /mnt/secure/asec
[Android Software/Hacking General [Developers Only]] unCoRrUpTeD:
You've experienced some of the same things I have before. Sometimes it works fine, other times it doesn't. Same with the screen wake issue. I'm going to have some time tomorrow to look at this.
[Android Software/Hacking General [Developers Only]] oostah:
could it be the ext size is to small? i thought i have read that it needs to be 524 or something bigger but not more than 1g.
[Android Software/Hacking General [Developers Only]] Pyr0TeK:
Thanks... I will monitor this thread. :)

What should I make my partition sizes? I nandroided this morning and backed up my sd card so I was going to repartition my sd card again.

data = 1024

swap = 0 (or should that at least be 32mb?)

UPDATE: OK... so I totally rebuilt my phone this morning... partitioned ext to 1024 and swap to 0. Fresh install of CM7... restored apps etc... still laggy. So currently, for now, I am totally wiping everything, sd card included, and going to run CM7 with no data2ext or Firerat MTD to see how much space I have internally after my apps restore etc... and to test speed compared to the last data2ext setup I had implemented.

UPDATE #2: So I redid everything again and I am currently running CM7 with no data2ext or Firerat mods... phone is FAST... and now I only have like 30+ meg free internally... boo... I know data2ext should be slower since it is accesing the sd card to run apps etc... guess I'll either leave it as is for now or go back to Firerat's if I need the space.

You guys don't have slowness issues running data2ext?
[Android Software/Hacking General [Developers Only]] oostah:
i get great speeds with a 16g class2 sdcard and if you have a 16g class6 your phone should be faster. here are some of my speeds. im using the sdcardspeedfix3072kb for read/write speed.
[Android Software/Hacking General [Developers Only]] unCoRrUpTeD:
I am going to test the rw increase method with this once I get home. I have only had the slowness issue twice out of testing this out dozens of times, but am not sure the reason. Could be an issue with fresh installs and/or everything needs to get back up to speed for the 1st time.
[Android Software/Hacking General [Developers Only]] shogunn:
No slowness issues here. Although I did add noauto_da_alloc to your code in the busybox mount options. Found it in another data2sd thread in the desire forums. It apparently has system run in ram instead of cache on the sd card according to them. Might help for those of you experiencing slowness.
[Android Software/Hacking General [Developers Only]] tahahawa:
Just flashed data2ext but I'm insure if it's working. Will check.

Sent from my U8100
[Android Software/Hacking General [Developers Only]] unCoRrUpTeD:
busybox df -h

data should be mounted on /dev/block/mmcblkXX
[Android Software/Hacking General [Developers Only]] Pyr0TeK:
Any thoughts on that? and if I attempt this again... should do 1024 data and 0 swap when I partition with clockwork? Not even sure what version of ext clockwork uses when you format either. I am guessing my 16gb class 6 is ok for this?
[Android Software/Hacking General [Developers Only]] unCoRrUpTeD:
Its going to be ext2. I looked briefly at what it does. I need to look some more. I don't include anything that I don't know what it does.
[Android Software/Hacking General [Developers Only]] hunterd13:
you should really do a speed test on your card to determine how reliable the transfer speeds are for your particular card. the class of card really means nothing, as performance will vary wildly from card to card even of the same class. my class 2 greatly outperforms my class 6. should let you know what to reasonably expect from data2ext scripts.
[Android Software/Hacking General [Developers Only]] unCoRrUpTeD:
noauto_da_alloc only works with ext4 filesystem. After further review it has mixed reviews on using it, but does increase the speed. I could not get it to mount ext2 with noauto_da_alloc, but am including a couple of flags that can be set to convert to ext3 or 4. And I am removing a line during the flash that formats the ext partition, which should mean you can flash this over another version of data2ext or a2sd without moving anything. Lots of added featured also. Need to test ext3 and 4, but need to get a different kenrel for ext4.
[Android Software/Hacking General [Developers Only]] hunterd13:
unCoRrUpTeD, just want to say thanks for the work. im using this on ext4-cm7 and it is by far the snappiest data2ext/apps2sd that i have tried, and i think ive tried them all. awesome work.
[Android Software/Hacking General [Developers Only]] Pyr0TeK:
Will you be posting a new build soon?
[Android Software/Hacking General [Developers Only]] unCoRrUpTeD:
I slept a little late this morning and wasn't able to get everything finished. I had one remaining issue that i will change tonight.
[Android Software/Hacking General [Developers Only]] Pyr0TeK:
HURRY! lol. I'll test it out... I ain't scared to rebuild for the 3,598th time... :D
[Android Software/Hacking General [Developers Only]] shogunn:
Yea forgot to mention I was using ext4.
[Android Software/Hacking General [Developers Only]] Pyr0TeK:
So I wiped and loaded again this morning... went back to AOSPGB instead of CM7 and flashed data2ext and we'll see how she runs today.

I do know that when the rom first comes up.. it takes a while to mount the SD card... apps are still lagggggggggy and ask me often if I want to force close them so I just click wait. Why in the hell is mine running so slow? For example, I launched Twitter and tried to login etc... 2 or 3 times it asked me to FC or wait... I just don't understand. Maybe my sd card sucks? 16gb ADATA class 6. Phone runs fine with no data2ext loaded. Data ext set to 1024 and zero swap.

I'll run it today to see if anything improves... rebooting a few times also.
[Android Software/Hacking General [Developers Only]] Pyr0TeK:
What speed fix is that? Something I need to do?
[Android Software/Hacking General [Developers Only]] unCoRrUpTeD:
It increases the read speed of the sdcard. I'll have it incorporated along with some other things. I'm fixing to test out the newest version.
[Android Software/Hacking General [Developers Only]] Pyr0TeK:
Cool... let me know... I ain't scared to trash it and rebuild. :)
[Android Software/Hacking General [Developers Only]] Pyr0TeK:
Just ran this...
[Android Software/Hacking General [Developers Only]] unCoRrUpTeD:
?????????????

Are you doing fresh installs?

Still having an issue with the new script. Will work on it as I have time today.
[Android Software/Hacking General [Developers Only]] Pyr0TeK:
Updated my last post with images... and yes.. fresh... full wipe. Seems to be running OK for now.
[Android Software/Hacking General [Developers Only]] oostah:
i have used and tried several data2ext if you need any one to test let me know. i want to try your data2ext with the read/write added to it. yor data2ext is fast as it is i add the sdcard read/write fix to it and its flies with a 16g class2 i need to get a 16g class10.:D
[Android Software/Hacking General [Developers Only]] Pyr0TeK:
What fix are you talking about?... and I didn't think a class 10 was good for the Hero?
[Android Software/Hacking General [Developers Only]] franciscofranco:
Eagerly waiting for the new version, this one is fast as it is, I can't imagine how faster it will become with an update.
[Android Software/Hacking General [Developers Only]] oostah:
i have not ready anything about class 10 being bad for the heros.

heres a link to what im using in the op he has ra rcovery and i have clm 2.5.0.7 and every thing works. im using the 3072zip the flash able zips are at the bottom.

http://xdaforums.com/showthread.php?t=1010807
[Android Software/Hacking General [Developers Only]] oostah:
i cant see the imgs you posted did you get it to work.
[Android Software/Hacking General [Developers Only]] hunterd13:
i read something about the hero and class 10 cards also. cant remember what exactly was mentioned about it though.
[Android Software/Hacking General [Developers Only]] unCoRrUpTeD:
I couldn't either. My laptop charger crapped out on me earlier, I'm sick, and I worked all day today and work all day tomorrow. So I wasn't able to get anything else done.
[Android Software/Hacking General [Developers Only]] oostah:
man you are having a bad week. did you get your yard put back to getter. i have been six for over a month we moved and i had to find a new doctor which is not easy to do not to many are taking new people with every one out of work. it sucks
[Android Software/Hacking General [Developers Only]] franciscofranco:
Any news about the update?
[Android Software/Hacking General [Developers Only]] unCoRrUpTeD:
Tomorrow or Wednesday. Need to do some final tests.
[Android Software/Hacking General [Developers Only]] ungaze:
@unCoRrUpTeD

Hi, was using your script and modified it for optimus one(your script actually works out pretty well, just wanted to modify it a little to integrate it in ROMs. Check out my sig). Now was playing around with "df" and found out that the block size used by mke2fs for my ext2 partition was different from all my other partition/devices.(2048 for ext and 4096 for everything else). So I studied a bit and tried to force mke2fs to set the block size to 4096 as well. Guess what, I/O score raised up by 1k(I/O score before=2.5k, with block-size 4096 score=3.7k, with ownhere's patched libsqlite.so score =4.9k).

Well I really don't know if this works on any device as well, just wanted to let you know. mke2fs line is now

$mke2fs -b 4096 ${extmount}p2

update: A friend also assigned an inode value by assigning "-i 4096" and reports additional speed as well.