yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] oostah:
Would this work on a hero cdma running aosp Gingerbread? I allready have data2ext on my hero. I see that data2ext4 is faster. Is there a flashable zip? The 1st post said there's a "data2sd-installer.zip" I don't see it any where. Thank you for any info and the hard long work put in this.
[Desire Android Development] mornixuur:
Thnx! I only started rooting and installing custom roms last night. My installed version was stock froyo including htc latest ota update. It took many hours and lots of frustration but i went to sleep with Oxygen 2 installed. Today i switched to a sense HD remix rom out of curiosity and to see data2sd in action. Most stuff seems to work but it won't power off. Besides i liked Gingerbread... :D

Anyway i will have a try after dinner and report back later.
[Desire Android Development] Droidzone:
I'd been updating the programs in the flashable zips to add support for Cyanogen. Just uploaded it now. See this

Sibere's is better than any of those that you used. It's arguably more stable. Maybe not as fast as the others, but definitely as stable as a rock. The script which he has made is significantly different from other Data2SD installations.

I'll try Gingerbread and tell you..If you have the installer already, just try the flashable zips on it
[Desire Android Development] mornixuur:
Flashable scripts on Oxygen 2 RC7 Gingerbread are probably not working. This is what i did:

1) booted into recovery and did a complete wipe

2) installed oxygen 2 RC7

3) flashed the app2sd remove script

4) flashed data2sd script

Got no error messages and everything seemed ok. After reboot the phone is stuck on the HTC boot screen.

Too bad! I will be patiently awaiting future developments... :D

Cheers!
[Desire Android Development] Droidzone:
Oxygen is significantly different from Cyanogen, at least according to what it said on the thread. Unfortunately I've never installed it. You'll have to help out with some info. Like what a2sd scripts are present, the names of the a2sd script files, whether it supports init.d etc. Ask somoone in the thread, and if you have this info, I may be able to port the flashable zips to Oxygen.

But Sibere's method as such should work. It even works for DHD Roms.
[Desire Android Development] Droidzone:
GingerVillain on Sibere's Data2SD

Good News..I can officially confirm that Gingervillain 0.8 supports Sibere's Data2SD code and the latest flashable zips..Use the AOSP version of the flasher.
[Desire Android Development] oostah:
I'm sorry for being a pain. Which zip do I need for aosp gingerbread is it e2fsprogs-arm.zip? And is this data2ext4 or data2sd?

I don't see aosp version of zip
[Desire Android Development] mornixuur:
Cool! I will try this one later. Getting all the app2sd info for Oxygen or doing the manual install might be a bit to technical for me at this moment.
[Desire Android Development] Droidzone:
Being a pain is forgiveable..Not reading the OP is not! :)

Those are not the zips..That is for the step-by-step procedure.

Look here.

Data2SD is Data2ext4!
[Desire Android Development] Droidzone:
The order of installation which you followed too is wrong. See my post.

Rom>A2SDKiller>Reboot>Recovery>Data2SD Intaller
[Desire Android Development] oostah:
Sorry I read the first three pages and the last six pages. I have dyslexia so if I don't see aosp zip as key words I get lost. Thank you so much for your time and patients
[Desire Android Development] rayiskon:
data2sd on stock rom

Hi all !

so here is the case,i have an unrooted Desire running stock 2.2 froyo . basicly i want to use sibere's data2sd. i want to keep my stock rom and i already bought a Kingmax class10 16GB microSD,now the plan is:

1-root the phone via Unrevoked

2-install init.d and busybox for stock rom (a thread about this already exists on the forum)

3-partition my microSD using Gparted (14GB fat32 and 2 GB ext4)

4-apply sibere's method

now am i missing something, or the steps i mentioned are enough to make it work on stock 2.2 rom?

one more question, if i "unrooted" my phone after that (by installing official HTC RUU) would the data2sd still work ?
[Desire Android Development] Droidzone:
No you need an ext4 kernel

Definitely not! :rolleyes:
[Desire Android Development] rayiskon:
wow thanks droidzone for the ultra quick response ! :cool: ya i thought the stock kernel might not do the trick, but i kinda wished for it silently :D:D:D
[Desire Android Development] oostah:
I tried the link above download 5 times and get bad file when I try to extract it. I have tried different extraction methods I'm on my phone could be on my end. Going to try download something else and see.
[Desire Android Development] Droidzone:
It was zipped with pkzip. Probably need a desktop decompression utility
[Desire Android Development] Droidzone:
@Sibere,

Just an update..I believe every Rom works on your script now using the flashable zips.. :)

The last one I'm testing is Oxygen..
[Desire Android Development] docnasef:
Do not mean to be persistant but was wondering if I could get a confirmation, and

also was afraid the post might get "drowned" by all the other ones!
[Desire Android Development] Lanbase:
Sorry can anyone post me a link to the init.d enable flashing stuff for stock rom?

Thx I am a bit to lazy to search with the phone :)
[Desire Android Development] docnasef:
This is what I used

http://xdaforums.com/showthread.php?t=894445

works for me

but as you noticed trying to get DATA2SD to work as well!
[Desire Android Development] mornixuur:
Thnx again! I realised this mistake myself while installing Starburst. Trying again while typing this...:D
[Desire Android Development] [deXter]:
@droidzone:

Thanks for your flashable zips, makes life so much more easier! (of course, thanks also to Sibere and other devs who made all this possible...)

Btw, there are minor printf bugs in your scripts, which makes the output like this:

(btw, Flashed from AmonRA, for the latest Gingerbread Oxygen testing ROM. Scripts works fine otherwise.)

Apps2SD killer:

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

This is meant to be flashed immediately after flashing an A2SD based Ro[B][COLOR="Red"]E:unknown command [m,][/COLOR][/B]

Removing A2Sd scripts...

Install from sdcard complete.

Data2SD installer:

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

You have to install the main Rom, then the A2SD remover patch immediate[B][COLOR="Red"]E:unknown command [ly] E:unkonwn command [nguage][/COLOR][/B]

Installing Data2SD now..

Loading Data2SD Installer...

...

In case of errors, delete all your partitions with Gparted, wipe and st[B][COLOR="Red"]E:unknown command [art][/COLOR][/B]

If this was the reinstall of Data2SD, Flash the Data2SD Reinstaller zip[B][COLOR="Red"]E:unknown command [right][/COLOR][/B]
[Desire Android Development] mornixuur:
Confirmed: Oxygen 2 RC7 installs perfectly fine with the flashable data2sd. Just make sure you follow the install steps in the right order and don't forget to flash the app2sd remove script right after installing the rom and before reboot.

Cheers!
[Desire Android Development] ptulluri:
mattiadj your instructions do they only work for ext2 partition or will they work for ext3 as well.
[Desire Android Development] Droidzone:
How exactly did you debug that? Just curious..Recovery never shows that output does it? It's possible to delimit the messages to the coloumn width by linebreaks manually, but I saw that making it one long statement too served the purpose. In Recovery, it works, and the output is automatically truncated at the end of coloumn..But I didnt know there was a debugger for this...

Edit: But, anyway, on rechecking, there arent any bugs in Edify..

ui_print(" ");
ui_print(" ");
ui_print("This script removes A2SD scripts from Rom ");
ui_print("This is meant to be flashed immediately after flashing an A2SD based Rom, even before rebooting");
ui_print(" ");
ui_print(" ");
ui_print("Removing A2Sd scripts.. ");

Maybe you used the wrong debugger...I wasnt even aware that one exists for Edify..If you do know one, please share..

Or did you mean output on Amon Ra...Ra is pretty old, right? I dont know about full compatibility with Edify
[Desire Android Development] wollyka:
Quick questions in gparted should the second partition on the sdcard be also partitioned as a primary partition or a logical one? Since Windows cannot see the second partition if it is also primary

Thanks
[Desire Android Development] bluelavender:
the chmod i wrote up there.. done it.. have you ? :-)
[Desire Android Development] bluelavender:
For the e2fsprogs, there is a link for flashable zip in vibrant forum here... but somehow i cannot attach the link using xda apps
[Desire Android Development] danarama:
So if I:

~ # mkdir /sd

mkdir /sd

~ # chmod 777 system/xbin/busybox

~ # /system/xbin/busybox mount -o loop /sd-ext/ext2 /sd

You think that will work?
[Desire Android Development] sibere:
NA NA NA BIIIG mistake dude! :)

when you replace the busybox, you're doing something wrong.

you should do this : adb push c:\users\dan\desktop\busybox-armv6l /syste

m/xbin/busybox

then do the chmod thing

BTW 11,6Mb/s, very good SDcard :)
[Desire Android Development] danarama:
Ahhhhhhhhhhhhhh!

Rewind....

Thank you.
[Desire Android Development] sibere:
;)

You can use the latest 01data.txt script btw. No big change, just an update for the e2fsck (check of ext2 file) at boot
[Desire Android Development] ghmail2:
same question how to partition it excatly
[Desire Android Development] abz54:
sorry, if its already been mentioned, im a total noob to adb shell etc. how would i get this working on auraxtsense 8.0?

Thanks:)
[Desire Android Development] sibere:
Primary.

We don't care about windows, do we? ;)

Updated the OP accordingly. Thanks for asking.
[Desire Android Development] lept0n:
Hi,

Are you on Leedroid 2.2f and did you change your ext part to ext2 from ext3?
[Desire Android Development] wollyka:
Lol ok thanks
[Desire Android Development] chding:
Anyone experience issue on installing an application? The phone is just restarted.
[Desire Android Development] danarama:
Yessssssssss!

Thank you Sibere for your guide, patience and support through these difficult times ;) 0.98GB internal memory.

Also, bluelavendar, thank you too for the chmod 777. I did indeed need it.
[Desire Android Development] _bryan_:
I also made fat32 aligning according to this tuto

http://www.patriotmemory.com/forums/showthread.php?t=3696

but i am not using the default cluster size (16k) I format the 2 partitions with 64k cluster size. it's faster in windows ,so i think it would be better. but maybe i am wrong. later i will try default cluster size.

I tested the speed of SD crad with sd speed tester on desire, i get

12 MB/s write

17 MB/s read
[Desire Android Development] sibere:
I did a 32K cluster size on mine.

Different brand, different quality I guess :)

12Mb/s W and 17Mb/s R is excellent. I'm even more surprised then that you don't have a better I/O score with sync OFF.
[Desire Android Development] sibere:
Welcome to the DATA2SD community ;)

You should be at ease with 1GB!

Hope you didn't forget the "-m0" option when you formatted your ext2 file like I did ;)
[Desire Android Development] chding:
sibere, any idea why the phone restarted when installing application from market? can help?
[Desire Android Development] sibere:
Nope. Never had this.

Is your 2nd partition more than 1GB? 2GB?

Did you have a App2SD rom before doing that hack?
[Desire Android Development] chding:
It is 2GB. I am using Aurax8 with removal of 40stuff2SD
[Desire Android Development] oostah:
Ok I thought flashable zip meant that you can do it from phone. I have limited access to PC right now. I will give it a try in a couple days. Thanks again for your time and patients.
[Desire Android Development] Droidzone:
But then, a flashable zip is not meant to be extracted either, is it?

Is a package of files..a set of flashable zip files for each configuration-Sense, AOSP and Cyanogen..It's more convenient handling links that way, instead of 6 different zip files..
[Desire Android Development] oostah:
Very true! It makes it easy if you flash roms like I do lol I go through them all. It is great to have them all do I wouldn't have to keep downloading every time I want to test something. Everyone dose things different so it kinda through me.
[Desire Android Development] jchoong:
Wow, DroidZone, you don't need much shut-eye? I log into this thread early in the morning and you are already online with your complete Data2SD installer package - customised for all sorts of ROMs! Such passion - I lift my hat to you!

I have this morning downloaded CM7 build 10, and want to try it with your new Cynogenmod script. Unfortunately, after trying for more than an hour, I have not been able to get a free download from EasyShare. Is it possible for you to upload to a mirror, say, MegaUpload? Thanks.
[Desire Android Development] [deXter]:
No, I didn't use a debugger in Recovery :) I just copy-pasted your script, did a search-and-replace and matched the text to what I was seeing on the recovery screen.

I just confirmed that this bug is specific to Amon-Ra only - the output displays fine in the latest CMW.

The reason I was using Amon-Ra was because of the ext4 support and the sd-ext fsck. (My phone crashes / I crash my phone a lot so I really needed an fsck tool in recovery!)
[Desire Android Development] Lanbase:
Thanx mate, got it all up and running...

@ droid you might want to add

This script, or link to it.....

Also in your post it is not real clear wich ext is required.

Scripts are excellent. Great teamwork great achievement.

Grtz

Sent from my HTC Desire
[Desire Android Development] Droidzone:
Hmm..Seems Amon Ra has a problem with Edify..Not surprising considering it hasnt been updated in a while..

My post is not meant to circumvent Sibere's instructions..People who use it are supposed to read the OP. My post is just to supply the zips.. :)
[Desire Android Development] [deXter]:
Fix for bootup hang caused due to slow initializing of SD card

@Sibere / droidzone:

So I tried the latest scripts, and after wiping/reflashing/testing a few times I've found that Data2SD causes the phone to get stuck at bootup:

- The first boot after flashing the ROM works fine

- The second boot also works fine, just to confirm

- The first boot after killing A2SD scripts works fine

- The second boot after killing A2SD also works fine, again to confirm

- Any boot after installing Data2SD doesn't work at all.

I've also tried to install the scripts manually (as per the 1st post) and the result is the same. I've also confirmed that there are no extra APP2SD scripts in /system/etc/init.d

Here's my logcat:

http://pastebin.com/UYuESyry

This is on Oxygen2.0 RC7 (Gingerbread).

Edit:

So after investigating this a bit and taking a look at AdamG's apps2sd script, I've modified the script as necessary. Now my system boots just fine! The new logcat looks like this:

- waiting for device -
--------- beginning of /dev/log/main
I//system/xbin/busybox( 70): Slow-initializing SD card detected!
I//system/xbin/busybox( 70): Starting DATA2SD
I//system/xbin/busybox( 70): e2fsck 1.41.3 (12-Oct-2008)
I//system/xbin/busybox( 70): Pass 1: Checking inodes, blocks, and sizes
I//system/xbin/busybox( 70): Pass 2: Checking directory structure
I//system/xbin/busybox( 70): Pass 3: Checking directory connectivity
I//system/xbin/busybox( 70): Pass 4: Checking reference counts
I//system/xbin/busybox( 70): Pass 5: Checking group summary information
I//system/xbin/busybox( 70): userdata: 431/65536 files (0.5% non-contiguous), 14529/262144 blocks
I//system/xbin/busybox( 70): Small cache detected, dalvik-cache will remain on /data
I/logwrapper( 70): /system/xbin/busybox terminated by exit(0)

:)

So the problem was that some SD cards take longer to initialize, but the the script didn't check for that.

Anyways, I'm attaching my fixed version of the script and flashable zip here. (Btw, I've also added noauto_da_alloc, please remove it if you don't like it!)

I take no credit or responsibility for this, this fix is thanks to AdamG / _thalamus. And of course, credits for original work done by Sibere and droidzone. :)

PS: The AdamG apps2sd script also does other fancy stuff, like disabling apps2sd if ext partition isn't present, so that the phone can still be booted up without an sd card. Would be nice if we can implement these as well!
[Desire Android Development] Droidzone:
I just installed the same version of Oxygen with the aosp script I'd uploaded and it worked just fine :)
[Desire Android Development] [deXter]:
Yep, the problem isn't in the script but the SD card, so I modified the script so it waits for the SD card to be initialized first instead of blindly mounting it, which was causing errors like on my phone. :)
[Desire Android Development] Droidzone:
Thanks..I will inspect the changes..
[Desire Android Development] docnasef:
Could someone point the way please? PRETTY PLEASE?!!

Stock Rooted ROM

Flash init.d

Flash RichardTrip Kernel

Reebot

Flash A2SD killer

Reboot

Flash DATA2SD

IS THIS THE CORRECT ORDER?? :confused:

@ droidzone really appreciate all your hard work, but you of all people know how we have "both" struggled with this particular version of the stock ROM !!

Phone specs :

Android Version 2.2

Baseband Version 32.49.00.32U_5.11.05.27

Kernel Version 2.6.32.15-gd96f2c0

htc-kernel@and18-2 #1

Software Number 2.32.415.3

THANKS AGAIN

Awaiting a reply
[Desire Android Development] Droidzone:
I thought your problem was solved! ;)

It might be a little more complicated than that in your case. Do you have a Nandroid backup of the non A2SD rom with just init,d?
[Desire Android Development] docnasef:
thanks for your rapid reply

No do not think I have that (might have nanroid of orig stock rooted WITHOUT init.d)

could run that....

OR

but might be willing to flash the whole ROM from scratch ,

root it Unrevoked

run the init.d

if you think that might help
[Desire Android Development] Droidzone:
Yea, try to do the latter. Data2SD cant run on a system with an existing a2sd config. The a2sd killer can be applied only on a custom rom which you have just flashed. So you cant. Either try to find an arabic(?) custom rom, or do the Stockrom+rooting+init.d yourself and then do the data2sd setup. A2sd shouldnt be used.

Unless someone has a better idea which might work..
[Desire Android Development] Lanbase:
I understand you don't want to bypass Sibere and other devs involved with Data2DS, but if you sumarize instructions like you do in your post it helps when the instructions are complete, moreover because sibere links in the OP to that post.

youre post states now;

1. Data2SD Installer (Installation script)

Scenario: Installing Data2SD for the first time

Instructions:

1. Complete wipe

2. Install any Rom through recovery

3. Once the Rom installation finishes, without leaving Recovery, immediately flash the A2SD Killer flashable zip.If flashed on a non-A2SD Rom, the flash wont do any harm.

4. Now reboot once into Android desktop. (If the system fails to boot at this point, it means that some exotic A2SD script is lurking beneath.)

5. Once you confirm that the Rom boots fine, Reboot into Recovery once again

6. Now flash the Data2SD Installer zip. After it finishes installing, boot into Android and enjoy Data2SD

Now for point two I would rather see someting like;

2) Install any rom with Init.d enabled, or install one without it and flash the init.d installer (you can link to the thread "Enable init.d on stock *rooted* Desire roms" ), verify that Ext4 is suported by the kernel of your ROM or install a kernel with Ext4 support.

Needless to say that the ext partition has to be ext4 ;)

maybe sibere can change op after this:

Howto for a HTC desire with clockworkmod recovery:

I did this with a stock HTC sense 2.2 froyo rooted rom with init.d support and my own kernel, forked from richardtrip sense kernel v5e. I don't know for other ROMs or Kernels. Your ROM must support init.d boot scripts. ----->>>> when it doesn't flash the init.d installer (you can link to the thread "Enable init.d on stock *rooted* Desire roms" )

It is merely repeating information, but since you are so dedicated the past two days to make Data2SD life easier, I think it would safe you some support time ;)

keep up the good work guys!

btw sibere can you post your kernel you're using now? I have flashed one of Coutts just for the ext4 support, but want to try your modded richardtrips, I am on stock rom --->> unrevoked ---->> s-offed --->> moebieus83 init.d --->> couts kernel ---->> droidzone Data2SD install script. Simply fantastic Data2SD install within 1 hour on out of the box htc rom!! :) :)

grtz
[Desire Android Development] sibere:
Come on... I've posted all useful information already. A link to a rooted/init.d supported ROM and a link to a ext4 supported kernel. If you want to use another ROM/kernel it is you responsibility to adapt it to the requirements. I can't adapt or modify the howto to deal with every ROM and every situation.

Sure I can! But just as a quick disclaimer (not only for you but to anybody how's gonna download and install it): this kernel has been built to suit my own needs and works pretty well with the ROM I have ATM. Don't ask for an other one which would suit you own need if this one doesn't work for you :)

It's still based on V5e with loads of FS supports, swap, readahead 128kb, cgoups CPU sched, all CPU governors, slightly undervolted (SVS) by 75mV, undeclocked to 128Mhz and O/C to 1113600Mhz, my battfix, GPU+, camera tweak for more fps in 720p, CFQ but some other I/O scheds available too and maybe a few other things that I surely forget.

Here is a flashable ZIP
[Desire Android Development] sibere:
I'm surprised but happy to read this :)

It shows that you're working hard on this!

The only thing I'm a bit concerned about is the switch off... On sense ROMs, the /data is unmounted nicely (HTC script somewhere) but I'm not sure that it's the case for AOSP ROMs though.

One way to make sure is to turn off the phone, reboot in recovery mode and check the status of the partition with a /system/bin/tune2fs -l /dev/block/mmcblk0p2

If it's clean that"s perfect. If it's not, this could end up with data corruption ... :(
[Desire Android Development] Lanbase:
Ok don't change the OP, its obviously clear enough, I was mainly talking about

your sticky link to droids post to the excellent auto installables.

I fully understand although you do also refer to the droidzone easy installer post which shows this;

2. Install any Rom through recovery.

wich is contradicting with the OP without the following added.

with Init.d enabled, or install one without it and flash the init.d installer (you can link to the thread "Enable init.d on stock *rooted* Desire roms" ), verify that Ext4 is suported by the kernel of your ROM or install a kernel with Ext4 support.

Now the following sentence was for droidzone ; "It is merely repeating information, but since you are so dedicated the past two days to make Data2SD life easier, I think it would safe you some support time "

Where "repeating" was referring to the OP...

Ok now we've got that cleared up , thanx for the kernel!

I know what kernel it is , should be great with my stock rootet own rom ! :)

grtz.

Btw: No offence droid, on the contrary , you're doing a great job, I am just sharing my experiences with following the procedures,

and share my thoughts on improvements on making it clearer for other users.
[Desire Android Development] sibere:
Ha all right then. Wasn't clear for me :) I may have not understood it right :)

I actually don't recommend the use of this script. I was using it beforehand and it caused me a few troubles and is not compatible with the developments I'm working on ATM. I don't want to go too deep in technical details but one is a full support while the other one is just a dirty hack :)
[Desire Android Development] Lanbase:
Ok, now.. I ..understand ;)

I will check on tecnical details myself, so I guess I am heaving the dirty hack init.d support now....

Anything I shoud be aware of or be carefull with?

Grtz