yashsingh1/xdaforums huggingface dataset:
[Optimus One, P500 Original Android Development] kyerie030:
Yeah, something like that. This may or may not work on stock rom because the rom needs to support 3rd party app2sd/data2sd. Example, if you look back a few pages (or more) you'll see people asking if this was working with rooted stock roms etc... If there were no results, try them out, for me, I never really liked stock rom... :P If this does not work on Stock rom + stock kernel, try stock rom + custom kernel. If it still doesn't work you'll really need custom rom + custom kernel. :)
[Optimus One, P500 Original Android Development] Jbazt_katuforzs:
that really is a dragg..:o our device havent hit opensource yet :( so this will not work on stocked rom with stocked kernel? or is there something i could do like tweaked/mod the stocked kernel.
[Optimus One, P500 Original Android Development] xcyborg007:
I also tried flasing it with cm9 lupo's ROM.. didn't work.. any solution??? thanks in advance.. :)
[Optimus One, P500 Original Android Development] kyerie030:
You could try using it with stock... I've used stock rom and kernel for what? Like 5 days before rooting my phone and switching to cyanogen.

This will not work on cm9 as I remember the code this uses is based on cm7. You can use link2sd instead though. I think that works on cm9 as lobg as you have 2 fat32 partitions on your sdcard? Not sure about this one though.
[Optimus One, P500 Original Android Development] kjloh:
I use it on both arjen and heyhappy latest ics rom from and works.

edit: it should only work with ext2 I think.
[Optimus One, P500 Original Android Development] NO0B:
Just installed it on Oxygen ROM http://xdaforums.com/showthread.php?t=1325386 and it's not working.
[Optimus One, P500 Original Android Development] thachtunganh:
:| oxygen already had A2SD...
[Optimus One, P500 Original Android Development] priyesh103:
can I use this data2sd on my Cyanomobile eXperience for

Galaxy 551??plz reply
[Optimus One, P500 Original Android Development] has2:
I am using sgsii v9 that have darktremor a2sd too, but by removing a2sd first (a2sd nodata, a2sd nocache, a2sd remove, etc) then install ungaze script, my ace got internal storage 1G now. :good:

But, I've add some lines before the script working because I got bootloop. The error I found was say: An error has occurred while formatting SD ext partition

When I am trying to execute from adb shell the commands : $bb mke2fs -b 4096 -i 4096 $sdext

The result is:

mke2fs: can't format mounted filesystem

So I think I need to add umount first before formatting the SDext partition

[COLOR="RoyalBlue"]	if ! $bb umount /system/sd
then
line="while unmounting SD ext partition (/system/sd)"
aborting
fi[/COLOR]
if ! $bb mke2fs -b 4096 -i 4096 $sdext
then
line="while formatting SD ext partition"
aborting
fi
[Optimus One, P500 Original Android Development] voyager20021:
I tried Ungaze on Arjen weeklies ICS and system goes laggy and wifi randomly disconnects (really annoying). Tested twice. It works with those 2 issues.
[Optimus One, P500 Original Android Development] has2:
What class your microsd has? If you already using class 10, then it really annoyed buggy ...
[Optimus One, P500 Original Android Development] voyager20021:
Class 4. Works well on GB.
[Optimus One, P500 Original Android Development] aayushARM:
Hey guys sorry if this is a nooby question, I am visiting this thread for first time! Has someone tested this with WC's AOKP Milestone 6? Is it all working properly??:confused:
[Optimus One, P500 Original Android Development] -DarkKnight-:
just makea nandroid backup and try it

Issue: I flashed this, worked find had 729 mb of free space left. rebooted again. don't boot anymore

restored nandroid again. flashed data2sd. boots first time, doesnt boot second

trys 3 more times. anyone know whats up?
[Optimus One, P500 Original Android Development] engr_exxi:
For Stock Rom (unmodded) for it to work you must have init.d functionality added to your rom. A simple way of adding init.d is using kitchen..

-zip boot.img and system.img (rename if it has yaffs in it) from stock rom backup (from recovery)

tested on stock rom LG optimus net dual p698. :D
[Optimus One, P500 Original Android Development] vicfirth_23:
a noob question as well :confused: is this working on LG p690 using JellyCream Rom Cm7 based. I am using link2sd but still my internal memory is getting low..
[Optimus One, P500 Original Android Development] TdiGuy:
was ext 4 support ever implimented?

So it seems that ext4 is supported. I am using this with CM 9.2 and my sd-ext is ext4 4 gig partition and its working just fine for me. Very happy with this mod / script.
[Optimus One, P500 Original Android Development] Asmy Yuh:
what is dalvik2ram mod means?
[Optimus One, P500 Original Android Development] rassawyer:
dalvik question.

Have not had a chance to try this yet, building a ROM atm, to finally get away from stock (2.2.2) on my LG P505 that I've been using for about two weeks now. Had a question from reading the OP though. Talks about dalvik having high I/O & read/write, making it undesirable to have on the external card. Is there any way to make a shutdown script that could copy the dalvik to the external card on shutdown, and another to copy it back to it's proper location on reboot? Seems to me this could go a long way to fix the long boot times, as it would at least mostly eliminate the need to recreate the dalvik on every boot, while still mostly avoiding the stress on the external card caused by high I/O,etc.
[Optimus One, P500 Original Android Development] rassawyer:
Kitkat?

Ok, tried this on CM7, and loved it. It's absolutely awesome. Now, I flashed to cm11 unofficial and it errors out with "error moving /data". Any ideas to fix it?
[Optimus One, P500 Original Android Development] franciscofranco:
Are you both using the same TB version? Try the patched lib before applying data2ext and tell us if the hangings still happen.
[Optimus One, P500 Original Android Development] kenblat:
Yah, exactly what i wanna test now ... report back when done, the 60th flash my P500 within 2 days OMG hehehe :)))
[Optimus One, P500 Original Android Development] franciscofranco:
Eheh I know what do you mean with 213546451 flashes in a few days.

But yeah that feedback will be important. You were talking about local.prop some posts ago, don't worry bout that ****...I ended up just adding the lines to build.prop...I might come up with a different strategy today for those "tweaks". But I don't wanna spam ungazes thread with it, just said because you asked about it.
[Optimus One, P500 Original Android Development] kenblat:
GOOD NEWS

- CM 7 beta 6.2 => install TB => test OK

- Update libsqlite.so using francisco's .zip file => boot => test TB again => OK

- Update Ungaze data2sd (testing while surfing the net so i did not remember exactly that i chose Ungaze origin (2048) or the 4096 block-size one hehehe) Boot => TB NOW OK (restore over 40 apps successfully)!!!!!! OC CPU to 806MHz for benching (mine phonw only stable @ 748MHz) quadrant reach over 25xx pts, I/O over 53xx :))

df show that mine mmcblk0p2 1K-blocks was 505736 so that mean i'm flashing the 4096 data2sd right?

TIA.

P/S: will use this configuration few hours and then test all francisco's tweaks over it (both P500_tweaks.zip and the local.prop or your new build.prop if available... :D)

If all gone well - ClockworkMod 3.0.2.4 recovery will be tested too. :cool:

And last but not least, thanks all you guys for amazing contributions!
[Optimus One, P500 Original Android Development] franciscofranco:
Better way to check if you used the 4096 block thingy or the original 2048 is to open the init.d script 23data... and check if there is a line on mounting with -b 4096, but if you got so big i/o score I bet you did it with the 4096 thing.

Glad it worked fine to you, ungaze did an amazing job with this script!
[Optimus One, P500 Original Android Development] arczangel:
how the hell you got 1991 results on quadrant???
[Optimus One, P500 Original Android Development] kenblat:
1ST - pls do the nandroid backup

- backup your data @ sdcard

- re partition your sdcard, make sure using ext2 for the 2nd partition (if using Win mini partition tool pls set the FAT32 as Active and primary)

- Wipe all user data and wipe dalvik-cache as well (just for sure that you don't get any FC after flash new rom)

- flash Mik_OS cm7 6.2, reboot

- reboot again to recovery

- flash ungaze.zip (if you r using AmonrRa recovery PLS do not use the edify version!!!!)

- reboot and done (100% for sure - i'm flashing almost 50 times from last night with many trials and failures... so it's must be OK hehehe)... your I/O now at least over 1500, pls using Quadrant pro 1.1.1 or 1.1.6 only pls don't try the free version 1.1.7

With this u will easily got around 1800-1900pts

update libsqlite.so and tweak Ungaze script for 4096 block-size will fly-up our phone @ 25xx pts with maximum OC 806MHz :D

Quadrant score is for SURE but about "performance" pls feel it by yourself :D as our opinions (or maybe just mine hehhe) our phone was fast enough for all needs, follow all these tweaks somehow just for full fill the "finding limit" game.
[Optimus One, P500 Original Android Development] ungaze:
wohohoho, I missed many fun discussions. Might get to use the computer in a while. It's crazy down here when holy week comes in.
[Optimus One, P500 Original Android Development] kenblat:
Dear Ungaze,

After the first kernel panic (due to trying to quadrant several time with the unstable 806MHz), the TB errors show-up again (weird usb debugging error, TB hang while restore apps...). Maybe the 4096block-size so sensitive or even the e2fsck procedure did not work great? And how about Dalvik-cache @ Ram :D does it loose sth with a sudden kernel panic?

But i can said that i fall in love with this trick and willing to lower few MHz for preventing kernel panic :D

Thanks for great script and trick, Ungaze!
[Optimus One, P500 Original Android Development] ungaze:
No prob and don't worry. Next release will have more options for better customization. Back to working with the script right now.
[Optimus One, P500 Original Android Development] kenblat:
AWESOME!!!

Here is mine phone now @ 768MHz, i'll try to persuade Banjo go for P500's YONIP extreme :D. Dreaming about higher clock speed and UV feature as well :cool:

So our P500 can easily reach 2000pts compare to mine ASUS Eee Pad 1GHz dual core tegra 2 Honey come 3.0 around same same 2000pts :D :p
[Optimus One, P500 Original Android Development] N_lover27:
guys I dont know if this happened to you all.

after flasing cm7 6.2 I flashed Ungaze_Data2SD.zip

everything ok.

but date and time and other system setting(like if i have disabbled gps it starts on reboot) reset after everyboot. so anyhow to prevent this?
[Optimus One, P500 Original Android Development] cmangalos:
banjo just got his o1 last week ,

and what holding him back is his spouse playing angry birds,

well lets wait for the man's contribution on o1

maybe bfs or cfs kernels,

for those who don't know banjo is a great contributor on spica history

giving the best kernel spica has ever had, the perfect OC'd kernel

which you can choose of either BFS or CFS , with camera fixed ( crispier camera output) and BPS manipulation, ( making spica semi amoled resulotion )

i hope he starts on modifying o1, also banjo never stops helping new ones,

answering all question even if it was repeated.

sorry for OT, im just excited because banjo is now an o1 user as well.
[Optimus One, P500 Original Android Development] kenblat:
same here, just notice this morning after reboot hehehe
[Optimus One, P500 Original Android Development] franciscofranco:
Only thing that changes for me is the language, but I really don't care because I prefer English. But yeah it's a bug, other friends of mine already asked me about it. They changed a few lines in build.prop like the language or the GMT settings to make it permanent, but I don't know more details.
[Optimus One, P500 Original Android Development] Momaro:
sadface... download works 45 min later
[Optimus One, P500 Original Android Development] wIIse:
Hi,

I have tried the original version and since he has not updated to version 2 I am going to try yours on my HEROC just now and see if works.

Will install latest aosp gingerbread for my heroc and then this script! will be reporting soon!
[Optimus One, P500 Original Android Development] wIIse:
It did not work!

I did the following:

Parttion my sdcard

ext2 512 and swap 0

install ROM reboot

reboot to recovery CM3

flashed edify version of script

reboot

no data2sd folder was created under system and it did not work.
[Optimus One, P500 Original Android Development] cmangalos:
try none flash non-edify version
[Optimus One, P500 Original Android Development] franciscofranco:
If you can't flash by any chance just move the files manually to the respective places and reboot.
[Optimus One, P500 Original Android Development] lerkin:
I experienced same problem, but a had force closes added to the reset...
[Optimus One, P500 Original Android Development] wIIse:
Amend versions won't work with latest CW recovery.

Too bad I wanted to give this one a try
[Optimus One, P500 Original Android Development] franciscofranco:
Just move the files to /system/etc/init.d and /system/bin and reboot.
[Optimus One, P500 Original Android Development] wIIse:
Thanks for the suggestions I will try next time since I have already applied uncorrupted script which flashes fine.
[Optimus One, P500 Original Android Development] ViTAMiNCHEG:
Using "Ungaze Data2SD" on CM7 + franciscofranco tweaks and SD Speed Increase app from the Market. So far so good. Great performance and pretty fast and stable system. Only noticed few bugs after phone reboot - Language and GMT is changed.
[Optimus One, P500 Original Android Development] cmangalos:
will try to edit build prop lines, for language and GMT bug, hope i made it right,

@ungaze kababayan any updates
[Optimus One, P500 Original Android Development] ungaze:
Question:

Are those people having the Language and GMT bug , all using CM7? Also, did you guys install data2sd along with CM7 or did you install it after booting for the first time with CM7?
[Optimus One, P500 Original Android Development] Momaro:
I use english so I didn't notice the language bug. What I did notice was turning off jit and dithering (cm7 obviously) didn't work: after reboot it was checked again. And yes, I flashed data2sd after booting cm7 once.

Oh and clock in notification panel didn't update right, even though elsewhere the phone knew the correct time. (clock app, lock screen)
[Optimus One, P500 Original Android Development] lerkin:
No, I have same bug with 2.2.1 ROM. Install it after rebooting
[Optimus One, P500 Original Android Development] ViTAMiNCHEG:
This is how I did:

Installed CM7, rebooted the phone, after the reboot restored apps via Titanium Backup, then applied franciscofranco tweaks one by one (Tweaks.zip, local.prop, libsqlite.so), rebooted my phone few times and then at the end flashed in recovery "Ungaze_Data2SD.zip" (Amend/update-script)
[Optimus One, P500 Original Android Development] ungaze:
Hopefully. I'll get the update up 14hrs from now. New version will have:

-an interactive script executable through terminal

-move data to ext? and back to internal, move dalvik-cache to RAM,/cache or back to where /data is mounted.

-Hopefully. a fail safe method wherein if bootloop occurs, next boot would revert everything to the way it was before.

If you'll notice, with the current data2sd script, when typing "mount" on terminal, you will find two /data mounted. Hopefully on the next version this will be fixed along with the GMT and language thing and also the local.prop thing.
[Optimus One, P500 Original Android Development] cmangalos:
Thanks kababayan for the effort,

i upgraded from 6.1 to 6.2

then got multiple force close, set up wizard as well

reboot to recovery wiped all

then rebooted well . after that, i reboot again and set up wizard pops out again.

every reboot it shows up.

will just wait for your update bro

Edit: guys i have succesfully booted

but i got a problem, lockscreen is not working.

when i lock screen it lock,

but if i press any buttons, phone automatically unlocks,

cannot find the specific setting

i applied lock screen pattern but still no luck at all, please guide
[Optimus One, P500 Original Android Development] homecanibal:
Hi there

Sorry my n00b question. How i format my sdcard? swap 0, ext 2 256/512 fat 32 the rest?

[]
[Optimus One, P500 Original Android Development] Momaro:
Yup
[Optimus One, P500 Original Android Development] homecanibal:
thks man

(to short)
[Optimus One, P500 Original Android Development] ungaze:
FINALLY!!!!!

I'm very tired right now(with almost just a 2hr sleep), so I can't make an undo.zip atm.

I'll just release the new versions for those who can afford to re-flash from scratch. Please bear with me, less sleep = less concentration so I might get to work faster after I get some rest ;) .

Well here's the zips

Ungaze_Data2SD_v2_amend.zip(for amon_ra recovery)

Ungaze_Data2SD_v2_edify.zip(for clock-work-mod recovery. Untested so please leave feedbacks if the updater works)

"USE ONLY ON ROMS WITHOUT APP2SD OR EVEN DATA2SD/EXT"

Istructions:

1.flash the update.zip through recovery then reboot.

2.using terminal enter:

d2sd

3.choose your desired setup and continue with the instructions.

4.when done. reboot.

what this does for me is make it easier to update and fix bugs.

what this does for the users is to make it easier to move /data back and forth from internal to ext and vice-versa. It makes it more dynamic as you can choose your own dalvik-cache mount point.

I will update the first page when proper migrating instructions and files are at hand. To those who can't afford to lose their data, please refrain from trying this as it will surely result in a boot-loop. I'll try to make it available for everyone asap(maybe tomorrow or later tonight). When all is done and settled, fixing the date and language bug should come next(if it is still present). Thanks for everything(specially the donations), and keep the feedbacks coming.
[Optimus One, P500 Original Android Development] Zerobarat1:
Gonna test it right now on andy's latest build and give you results ;) . According to andy his previous method of a2sd did not work on ginger 2.3.3 and who knows maybe your way works .
[Optimus One, P500 Original Android Development] aursta:
so it works?
[Optimus One, P500 Original Android Development] Zerobarat1:
No actually it doesn't . It does boot up perfectly fine , but the SD config files say that I do not have an ext partition .... which in fact I do have an ext 4 :( . Saaaad....

Hmmmm interesting , even though I wiped the ext partition in recovery , titanium back-up says it has like 420 megs filled ( practically it did no suffer any wipe ) .

Can someone tell me a command to wipe it through adb?
[Optimus One, P500 Original Android Development] aursta:
ahh.. damn
[Optimus One, P500 Original Android Development] bluviper:
i think Ungaze means this:
[Optimus One, P500 Original Android Development] Momaro:
I wipe my sd by re-partitioning in recovery :p

Did you test if it was running in any other way? Like checking your quadrant score? Or were you worried about internal space that wasn't freed?
[Optimus One, P500 Original Android Development] Momaro:
he only means if you've already applied old data2sd you cannot flash the new one on top.
[Optimus One, P500 Original Android Development] aursta:
if i flash this script, then where my apps installs? internal or ext partition?
[Optimus One, P500 Original Android Development] cmangalos:
try ext2, which is preffered by ungaze
[Optimus One, P500 Original Android Development] ungaze:
Where did you see that message? Can you post a "mount" command output here? if you can mount it, you can use "rm -r (your ext mount-point)".
[Optimus One, P500 Original Android Development] Zerobarat1:
Specifically it said that my SD does not have the correct config ( Fat32 + Ext part ) . I tried to wipe ext part but recovery failed ( even though it said it did it successfully , titanium back displays that my ext part is quite full , exactly as I left it before I changed ROM's ) and trying it through adb once again did not work , though I think I should have actually tried doing this in recovery ( mounting it and then trying to wipe it :( )

Either way I cannot definetely say it does not work on andy's rom . I did use the latest one and it's in a pretty mangled state atm . I would say alpha state .
[Optimus One, P500 Original Android Development] homecanibal:
Ungaze,

I tried this in fresh new andy's rom, moved data to ext, and dalvik-cache to ram, and quadrant can't complete IO file test. If i reboot, lost programs installled.

What i did wrong?
[Optimus One, P500 Original Android Development] ungaze:
can youi post mount output as well? in terminal/adb:

mount > mount.txt

this should print the output to the mount.txt file. paste the contents here.
[Optimus One, P500 Original Android Development] Zerobarat1:
Ok ... but you forgot to mention where I will find the txt file . I did a search with Astro manager and it did not find it .
[Optimus One, P500 Original Android Development] homecanibal:
It's give me an error

sh: mount.txt: Read-only file system

In to adb...
[Optimus One, P500 Original Android Development] ungaze:
s2pid me, of course, type this instead

mount > /sdcard/mount.txt

you should find the file on the root of your SD
[Optimus One, P500 Original Android Development] Zerobarat1:
Well here you go.

And as I said I'm not sure I'm a very adequate test subject because andy's build is pretty buggy and even if you do make it work or it was indeed my fault that it did not work because my ext partition wasn't wiped properly , it's not a build you can actually use for daily use :( .

Gonna switch to mik's build in 10 min or so :) , so process that thing bro ;)
[Optimus One, P500 Original Android Development] ungaze:
thanks for the quick reply, not much info there BUT, one thing bugs me. mtdblock9 is still mounted as /data, wherein my mod should have unounted it no matter what(meaning by force). anyways, just waiting for my girl to leave the pc alone and sleep then i could start to work again.
[Optimus One, P500 Original Android Development] homecanibal:
Ungaze, here is mine mount.txt
[Optimus One, P500 Original Android Development] kenblat:
Tesing with CM7 beta6.2 (clean setup) with many ways install, it work great for the first time but after reboot, force close all apps @ /data.

anyway, very neat script, love the ideal and your efforts as well.
[Optimus One, P500 Original Android Development] ungaze:
@homecanibal

thx for reply, another weird thing, /data is also mounted. to top it off, there's two /ramdir mounted. Let's see if it's not asking too much, I'm sure i've read in mik's thread that sometimes, /system don't get formatted properly, so could you try to do the force format on /system first before re-installing the rom and then this mod?

Guess it's time to try mik's CM7 and andy's GB. But before that, I'll make the migrating process easier first. Few questions.

does edify script works?

anyone from froyo tried this it already?

stay tuned!
[Optimus One, P500 Original Android Development] Bytecode:
Here's my report.
[Optimus One, P500 Original Android Development] lekhwani:
For those of you who can't wipe their sdext properly, do it through clockworkmod recovery. After doing this you can revert back to amonra. Clockworkmod recovery neatly formats the ext.
[Optimus One, P500 Original Android Development] ViTAMiNCHEG:
Will there gonna be Ungaze_Data2SD_v2 amend script?
[Optimus One, P500 Original Android Development] cmangalos:
try

mount > /sdcard/mount.txt, it should work, you can find mount.txt on sdcard root
[Optimus One, P500 Original Android Development] ungaze:
Correct me if I'm wrong but, I'm pretty sure that all recovery for O1 supports edify scripts. If not, I'll upload new update-scripts.

Anyone has this working? Really weird as I'm not losing any apps that I install(no time/date language bug either), BUT, it seems that my msgs gets wiped on every reboot. I'm investigating this and spending every spare time I have to correct this, so don't lose hope.