yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] danarama:
Even after pc reboots?

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

DeFroST FAQ... http://xdaforums.com/showpost.php?p=6622965&postcount=2
[Desire Android Development] Droidzone:
Seems to have been temporarily fixed by rebooting..But all my USB devices are failing..Some Massive Windows 7 problem..

Anyway..Dont want this thread to go the way of my Windows problem..Will try fixing it later..

Adb works for now..So I'm trying the commands again..
[Desire Android Development] Droidzone:
Now, chown fails..

C:\Software\htc\android-sdk-windows\tools>adb shell
~ # chmod 755 /system/bin/e2fsck_recvy
chmod 755 /system/bin/e2fsck_recvy
~ # chown 0 2000 /system/bin/e2fsck_recvy
chown 0 2000 /system/bin/e2fsck_recvy
chown: 2000: No such file or directory

That's weird..Ls lists the file in /system/bin

Chmod also seems to have worked. What's with chown?
[Desire Android Development] bluelavender:
Thank you so much :)

BL
[Desire Android Development] shawe_ewahs:
Replace the script A2SD included on the zip ROM with mine, explained some post before, but without detailled steps, I never used LeeDroid ROMs.

Exists an option on ROM Manager for correct permissions.

With good people here supporting this work, is more easy ;)
[Desire Android Development] shawe_ewahs:
I detect now, that with DATA2SD on AuraxTSense I can't turn on WiFi, somebody with the same problem with this or other ROMs?
[Desire Android Development] op8867555:
Because of an unkown reason,I got boot loop after changing battery

Is there any idea to fix it?
[Desire Android Development] Droidzone:
Havent the foggiest..But you'd have a better chance of solving it if you ask in Q&A section.
[Desire Android Development] coutts99:
You also need to change /system/etc/init.d/98zipalign -:

echo "Starting Automatic ZipAlign $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE;
for apk in [B]/system/sd/app/*.apk[/B] ; do

to

echo "Starting Automatic ZipAlign $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE;
for apk in [B]/data/app/*.apk[/B] ; do
[Desire Android Development] Muxeu:
Does it mean except point 4&5 of normal instructions???
[Desire Android Development] hajen78:
I had iinga to do this data2sd for me, but every time i reboot it changes language. Does someone know what to do ?
[Desire Android Development] coutts99:
Yes do 4 and 5, but call the file 02data on the phone instead of 01 data
[Desire Android Development] Droidzone:
Guys..Does anyone have any clue about this one?
[Desire Android Development] blacriderv:
Does somebody have tried with OpenDesire 4.0.36 ROM ?

I did the entire process written in the OP (I removed the file 10app2sd from init.d), but when I reboot my Desire, it get stuck on the white background with green HTC logo...

If somebody had the same issue, but managed to get it work, tell me ;)
[Desire Android Development] shawe_ewahs:
Did you try to use my script like an alternative to original explanation? You only need replace original a2sd script on rom, an put my script (without .txt extension), wipe all and flash the modified rom.

My script create the file on sd-ext and seems to work, but give FC's on first boot that must be corrected with ROM Manager and reboot later.
[Desire Android Development] iinga:
Do you mind if i make it flashable?
[Desire Android Development] mattiadj:
Sorry to all but i'm a bit confused now!

Please answer me and if is necessary give me link and how-to.

I think a more clear situation is better for everyone.

1)Exists an universal update.zip to flash after flashing rom that make all automatic?

2)Is possibile to insert in a rom a script for automatic creation of partition and of DATA2SD?

3)How is the tutorial to have fully working data2sd to RCMixHD?

Also i want notice a bug that i have found.

I use the only gsm option for reduce the battery drain. If i don't set this option BEFORE the operation to have data2sd , this option return to "automatic gsm/umts" after each reboot.

Why??

Thanks to all!
[Desire Android Development] shawe_ewahs:
My script is flashable, it do dd on sd-ext for you. Only need to be replaced on original ROM that you want to flash, removing others like A2SD, dalvik2SD...

The problem for the moment is that wifi is not working, I'm looking for solve this problem.
[Desire Android Development] Droidzone:
I hate to barge in..but is there an error in the syntax of this commmand?

adb chown 0 2000 /system/bin/e2fsck_recvy

~ # busybox chown 0 2000 /system/bin/e2fsck_recvy
busybox chown 0 2000 /system/bin/e2fsck_recvy
chown: 2000: No such file or directory

Linux seems to believe that I'm trying to execute the command on a file/folder named 2000?

This command:

chown 0 /system/bin/e2fsck_recvy

works fine..

Is there a colon or something b/w 0 and 2000?
[Desire Android Development] shawe_ewahs:
Linux try to do the command that you thing are correct, try doing:

chown 0.2000 /system/bin/e2fsck_recvy

or

chown 0:2000 /system/bin/e2fsck_recvy

More examples on: http://en.wikipedia.org/wiki/Chown
[Desire Android Development] Droidzone:
Also I think there's an Error in mattiadj's code too..

Sorry if I'm wrong..But, that command actually overwrites the folder init.d with the file 01data. Shouldnt it be:

adb push c:\01data /system/etc/init.d/01data
[Desire Android Development] blacriderv:
Thanks for your answer.

I did that :

- From the OpenDesire ROM, I removed the app2sd script, then added yours (without the .txt extension)

- I formated my uSD using GParted (1st partition of 6.6Go and second 1Go FAT32 both)

- I put the ROM on my uSD

- Wiped datas, then flashed through Recovery and reboot

The ROM is working, but it seems that data2SD does not work, coz it displays 105 Mo in Parameters/SD card and memory

Have I done something wrong ?

Thanks in advance !!
[Desire Android Development] shawe_ewahs:
Seems to be all correct at the moment.

Try to use ddms (it's on Android SDK) and boot using ddms with Desire connected for have a log, the firsts lines must have some information from this script.

I don't test this script on all ROM's (for the moment only on NeoPhyte AuraxTSense 8.0) the problem can be in some differencies on ROMs, but I don't know why can be exactly.

The ROM need to have attached files from the 1st post here, except the script.
[Desire Android Development] fogbav:
Hi Flashmaniacs,

i want to play back my idea about compression on the ext2 file ...

I was told that ext2 compression has to be compiled into the kernel (no modul loading possible?) and that the files are already compressed ... so i seems there will be no benefit in here ...

but ...

i now adb pulled the ext2 file from my phone ... a 2 Gig file filled up to 1,1 GB free space ... so about 900 MB is in there.

After that i compressed the ext2 file -> compression mode normal Winrar ... and now i have a 470 MB big rar.

Taking this information seems that there is some benefit with compression in here ... about 50 %.

Payback : the data rate to SD-Card can be much faster with the 1 GHz Snapdragon in the background ... maybe we can get a nearly "double-Rate" to normal files ... and no effect to already compressed files like .apk files.

sadly i don't have the skills to compile a new kernel with ext2 compression enabled ... is there someone out called "linux god" willing to take this mission ?

maybe i am totally wrong here - but if successfull we can speed up I/O to SDCARD (bottleneck in here) up to 30-40 % ...

let me know if i am a total idiot - or some other comments in here ...8)

Thanks a lot ...
[Desire Android Development] shawe_ewahs:
Can be interesting try this feature, I never listen the ext2 compression, but can be interesting for have some alternatives for this script and have a little more of space using compressio loosing some speed.
[Desire Android Development] coutts99:
Ill have a look at doing this for you tomorrow.
[Desire Android Development] fogbav:
Whahhh ... ! Great ... thank you very much !
[Desire Android Development] mattiadj:
Nobody answer me :-(

sent from the future
[Desire Android Development] coutts99:
I'd do it now but the girlfriend is a bit pissed with how much time I'm on my laptop last couple of days :)

PM me so I don't forget!
[Desire Android Development] iinga:
What rom are you using? and what happens when you reboot? animation loop?
[Desire Android Development] EViollet:
Hi. Thanks for the answer.

I'm sorry. I had a look in the forum, and didn't find a mention of this, even though I had kind of figured out how it worked...

I just needed a confirmation.

Regards,
[Desire Android Development] Droidzone:
Using Stock Froyo ROM, rooted with Unrevoked..

No loops..It boots fine..Only thing is Internal size hasnt changed..126 mb..That was it previously too
[Desire Android Development] iinga:
So its the RUU that you've rooted?
[Desire Android Development] Droidzone:
Yup..This is what HTC gave me today..Just got it back from service..

Rooting went fine with Unrevoked.

But Alpharev failed..So to make it work, I had to install Aurax first, then Alpharev, then Nand restored back to Rooted Froyo..

Then, tried this
[Desire Android Development] iinga:
Does stock froyo rom support init.d scripts natively?
[Desire Android Development] Droidzone:
Oh..Oops..Guess not..

Well then, I'll go for Teppic's Stock based rom..

Thanks a lot, iinga!
[Desire Android Development] iinga:
No probs mate.

Just flash the zip in my zip to get data2sd working if you want an easy route (now you've properly set up the sd card)
[Desire Android Development] Droidzone:
Wow..

I'm sorry I missed the post where you described it..Could you link me to it? Just want to know what else should be done after flashing this zip..And does it work with all roms with init.d support? What about AOSP?

If you've already answered these qns, just post the link m8..I think I missed those.
[Desire Android Development] Zeljko1234:
@droidzone: Could you please read this thread or at least search it. And please, make your sig smaller.
[Desire Android Development] Droidzone:
Sorry abt the signature..Removed it.

And do you really think I could attempt the whole procedure for Data2SD if I wasnt reading the thread? I did miss a few recent posts though.
[Desire Android Development] iinga:
http://xdaforums.com/showpost.php?p=9530788&postcount=441

Basically it justs needs to be flashed immediately after a rom. I have tested it and have it working on Defrost, and should work on Leedroid, opendesire, oxygen etc. It deletes 10apps2sd and 40a2sd init.d scripts and writes 30data2sd. basically if a rom has either of those, it should replace them.
[Desire Android Development] Nitin985:
Does this mean we don't need and to install first time or is this after the first instaal
[Desire Android Development] fogbav:
**** ... i have send my wife into bed ... more time for Android ...8)

she needs her sleep ... *ggg* ... thank you very much for your time spending here on only an idea ...
[Desire Android Development] Droidzone:
I see the files in it. Good work.. So basically all those files being pushed are available in the flash..

The adb commands cant be scripted though?
[Desire Android Development] iinga:
Its a reinstall zip for after first time installation. The sd card needs to be partitioned and set up first.

Made it to facilitate using data2sd after rom upgrades
[Desire Android Development] iinga:
The adb commands only need to be done once as far as i know and have tested.

shawe_ewahs has produced an init.d script that does everything for you if you have partitioned the sd card correctly so you could try that.

I have a solution for first time installation (doing the dd= command etc) that needs testing though.
[Desire Android Development] Droidzone:
So, to summarize:

Partition the sd

Flash a rom/nand restore,

Flash your zip

Which commands would be needed in addition? Does it automate the swap creation and ext file creation?

EDIT: Ok, thanks..
[Desire Android Development] iinga:
No, this just reinstalls after you have done the adb work once.

However, you could do the adb work after flashing.

mount /dev/block/mmcblk0p2 /sd-ext
dd if=/dev/zero of=/sd-ext/ext2 bs=1048576
/system/xbin/busybox mke2fs -m 0 -F -L userdata /sd-ext/ext2
mkdir /sd
/system/xbin/busybox mount -o loop /sd-ext/ext2 /sd
cd /data
cp -a * /sd
cd /
sync
/system/xbin/busybox umount /sd
reboot

is what you'd still need to do
[Desire Android Development] mattiadj:
What is the zip????where is?

Is for all Rom including latest hd??

sent from the future
[Desire Android Development] sibere:
Yep, big mistake. the dot is missing. corrected in OP and thanks for your report.
[Desire Android Development] Droidzone:
http://www.iinga.net/desire/data2sd/data2sd-reinstall-signed.zip
[Desire Android Development] mattiadj:
So what is the advantage of this zip, sorry?

sent from the future
[Desire Android Development] sibere:
Dot was missing. Sorry, I was a bit in a rush when I updated the OP and I forgot the dot ;)

Don't worry the script was OK :)
[Desire Android Development] iinga:
When you upgrade/change roms all you have to do is flash it immediately.
[Desire Android Development] Droidzone:
Glad to debug it, Sibere.. :D

But sad that it didnt work for me though..I was apparently using the Stock ROM without init.d support. I'm downloading Teppic's Stock based rom with init.d support. Could you tell me..Once I install it (after a wipe), and flash iinga's zip, which adb shell commands would need to be repeated?
[Desire Android Development] sibere:
Yes sure!

If you mount the 2nd FAT partition and then mount loop the ext2 file, you'll see all your file. It's exactly the same when you copy all your nand /data to the new ext2 file system.

This file is at the same time a simple file seen from FAT32 point of view and the ext2 file thanks to the magic of the loop device :)

If in recovery you mount loop the ext2 file over /data, you should be able the to wipe dalvik-cache with the recovery menu.
[Desire Android Development] mattiadj:
So just a moment.now I have leeDroid with data2SD fully working.if I upgrade my Rom or change it with all wipes, I must only flash your zip in new Rom??

sent from the future
[Desire Android Development] sibere:
I dunno what his script is doing precisely. If it's automatic , then go for it. If not, and you want to restart from scratch, delete the ext2 file and go to steps after partitioning and formatting your SD :)
[Desire Android Development] Droidzone:
Weird that HTC with all its engineers couldnt think of something like this..:D
[Desire Android Development] sibere:
Think what would happen without data2SD. would you keep you apps & data? No because normally you do a full wipe. You should consider the same with data2sd.

After flashing, try to mount you ext2 file, but if you get FC, then go back to recovery , reflash, wipe and erase the ext2 file and build a brand new one.
[Desire Android Development] sibere:
Same for their battery driver :(
[Desire Android Development] iinga:
Not with full wipes. I don't think it will work if you wipe /sd-ext.

I have tested it on my defrost installation. Upgraded and then immediately (before rebooting) flashed that and had data2sd working.
[Desire Android Development] sibere:
Ho I see... Added in the prerequisites in the OP :D
[Desire Android Development] sibere:
So it means that an other side effect of data2sd is that you don't loose your stuff even after flashing a new rom :) Good news! :)
[Desire Android Development] blacriderv:
Damn it works great, I indeed forgot to put e2fsck_recvy :)

But now, I have the same bug as you with the wifi which does not work :(
[Desire Android Development] mattiadj:
Ok so only for upgrading without wipe....

Not bad but is much difficult to not wipe when change Rom :-(

sent from the future
[Desire Android Development] iinga:
Ok I just tested a batch script that does the adb work for you. Anyone else fancy testing it for me?
[Desire Android Development] mattiadj:
@sibere.

Have you read about the bug that I have discovered?

sent from the future
[Desire Android Development] sibere:
Do you know why the ext2 file is so much compressed with ZIP?

because it's full.... of ZEROs ! :D

Nandroid backs-up the entire file, even the empty space.

For the e2compr thing, the latest development is for 2.6.30 kernels and we're running 2.6.32. see?
[Desire Android Development] mattiadj:
ALL work?

How it is used?

sent from the future
[Desire Android Development] sibere:
witch and where?
[Desire Android Development] Droidzone:
Would you add a line about requiring init.d support? (In case of plain stock rooted ROMs). That seems to be why it failed for me.
[Desire Android Development] iinga:
as far as i can tell it works. however, the first step was done prior so i can't guarantee the first step works.

First: partition your sd card to have 2 primary fat32 paritions.

The script itself is configured to run from c:\android-sdk-windows\tools in which you place 3 files. Then it will do the rest, asking you to do various things (such as reboot your phone).
[Desire Android Development] Droidzone:
Sure..As soon as I get teppic's rom.. Post the link, m8..
[Desire Android Development] sibere:
yep just what I did.
[Desire Android Development] mattiadj:
So pc is needed, on simple zip to flash via recovery :-(

sent from the future
[Desire Android Development] iinga:
Pc is needed right now. I am working on shawe_ewahs script to get a simple zip to flash via recovery.
[Desire Android Development] mattiadj:
It this thread.

I have noticed that if I set only gsm mode AFTER made your mod, this setting is lost after reboot and all return to automatic mode.

If I set gsm mode BEFORE your mode all is ok and the setting is stored.

sent from the future
[Desire Android Development] mattiadj:
I'm waiting for it!!!

Can you post it also in my dedicated thread?

sent from the future
[Desire Android Development] iinga:
http://www.iinga.net/desire/data2sd/batch-data2sd.zip

Is for the batch script (windows) to set up data2sd automatically. It does sibere's adb work, so you don't have to.

Please follow on screen instructions and already have sd partitioned.

I cannot stress more that this is ALPHA.

If your sdk folder isn't C:\android-sdk-windows then edit the script to have the correct folder. Place the three files in the data2sd folder inside your android-sdk-windows\tools folder

It appears the ping to wait isn't working, so please give 10 seconds after rebooting from rom
[Desire Android Development] sibere:
Ok. Guess there is nothing I can do about it. Never had this issue since I used my phone for many weeks before moving to data2sd :)
[Desire Android Development] mattiadj:
So can you try?

sent from the future
[Desire Android Development] danarama:
I got bootloop after upgrade, so had to wipe data. Showed 148MB internal data. Then I advanced selective nandroid restored sd ext and all was ok. 1GB internal memory.

So

Nandroid backup

flash Rom

Upgrade zip

Wipe data

Selective nandroid restore sd ext

Works.

However if wipe is needed for compatibility reasons, not sure what can ne done

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

DeFroST FAQ... http://xdaforums.com/showpost.php?p=6622965&postcount=2
[Desire Android Development] iinga:
When i tested it (a few times) i didn't need to wipe data. I will test it again shortly.
[Desire Android Development] danarama:
Oh no this isnt your upgrade zip. Just generally for me. Must have been some erroneous data in my data partition. I made my own modified Rom and used someone else's.

My point is after data wipe can still fix sd ext with nandroid

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

DeFroST FAQ... http://xdaforums.com/showpost.php?p=6622965&postcount=2
[Desire Android Development] iinga:
Oh ok, i thought you meant in general it needed a data wipe.
[Desire Android Development] AndroHero:
already been tested and reporting working on df by another user :D
[Desire Android Development] danarama:
Sounds of the wickedness. Cheers Matey!

Shame I only have a class 4 card :(
[Desire Android Development] AndroHero:
you wouldnt need to turn sync off with a class 10, plus your more likely to get lag spikes and fc without sync :)
[Desire Android Development] fogbav:
Don't stop please ....8)
[Desire Android Development] AndroHero:
you should be alright as long as you dont install a stupid amount of apps :p but this is a great reason to upgrade to a class 10 card :D
[Desire Android Development] danarama:
Ah I dont install that much.

I have 80. Already running a2sd+ in conjunction with a custom mtd layout.

No idea what I'll use all the internal space for.

Just have to remember to remove the a2sd+ script.

Always searching for my next mod.... :)
[Desire Android Development] Bengaal:
Maybe a stupid question;

Can this mod be implemented in ROMs????
[Desire Android Development] danarama:
Actually, I have another question.

While I test this, I will keep my existing a2sd ext partition.

Does this partition start at the first block or is it after the FAT partition?

What I am asking is the new FAT32 partition created via this thread, does it sit at the end or between the storage and EXT partitions?

Edit> I think its inbetween
[Desire Android Development] HTF:
I have been running this for a few days now on defrost (manually removed a2sd script) and zero problems.
[Desire Android Development] wollyka:
If i already have a a2sd ext partition on the sdcard (for a2sd+), do you have to delete it before using data2sd? do i need it?

thx
[Desire Android Development] sibere:
Guys just keep in mind that the "boost" is just the cache writeback. So you can get a boost, but just for a small amount of data. If you transfer on the SD more than the available cache, the system will start to write on the SD and you can forget the "boost" effect until all the cache is flushed (sync) on the SD.

There's a few parameters to tweak for a longer writeback delay tho ;)
[Desire Android Development] danarama:
Thanks for the info.

I'm a noob with linux commands.

In the script, do I delete:

mount -o dirsync,noatime,nodiratime

AND:

mount -o loop,sync,noatime
[Desire Android Development] hess55:
"unzip the .zip file, open the folder, open the system folder, and then inside that open the folder called etc, you will see a folder called init.d, open that and delete the file called 40a2sd, now just navigate back to the root of the rom and re-zip it."

I cant instal leedroid without 40a2sd, verification filed, missing file 40a2sd ??
[Desire Android Development] sibere:
Many thanks :)

But actually it is NOT unlimited. Some guys here reported issues with android market when the partition was more than 2GB. So if you have this problem, redo your partition with a max of 2GB.
[Desire Android Development] sibere:
Yep. Means "write 1Mb at a time" this option is to speed-up the process of writing the ext file. You can try 1024 if you like, but it will take ages ;)
[Desire Android Development] sibere:
If your phone reboots before the cache is flushed, your data may (will) be corrupt.

That's why I run an e2fsck at boot time.

ATM I never had anything different in the log than a clean file system :D (but I'm usinc sync)

and if you transfer a lot of data on you /data, you can experiment some spike lags. That's all.
[Desire Android Development] sibere:
I never talked about dirsync mate but sync. So just delete the "sync" for the extra boost.

But even with sync, if you have a fast SD, you'll get a 200 to 300% I/O boost
[Desire Android Development] Zeljko1234:
sibere please use multi-quote ;)
[Desire Android Development] sibere:
Yep only when it's really usefull :D
[Desire Android Development] sibere:
For the ones who've asked, with my class 6, I have @998MHZ a total Quadrant Advanced edition score close to 2300pts with sync OFF (I/O is about 4800/4900pts)

Obviously I have less with sync ON. I/Os are around 1900 (compared to the stock 700pts)
[Desire Android Development] danarama:
Nah. No reason it should.

Wondering whether I will need to next time. Makes no sense to me

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

DeFroST FAQ... http://xdaforums.com/showpost.php?p=6622965&postcount=2
[Desire Android Development] iinga:
In some cases, the batch script I have created does not enable data2sd (but will set it up)...if this is the case for you, flash the reinstall script. I am working on why it won't work automatically after the batch script