yashsingh1/xdaforums huggingface dataset:
[Desire Q&A, Help & Troubleshooting] geminga:
I don't even want to imagine, how long a SD card will last running Android on it :D

I think I will get a cheaper and smaller class 6 for this, I don't want to kill my 32 GB :S:D
[Desire Q&A, Help & Troubleshooting] bluelavender:
**whack my head first**

Woah... so dumb of me.. why didn't i think of that... Thanks, Thanks AndroHero.. going to try it tonight :)))

BL
[Desire Q&A, Help & Troubleshooting] bluelavender:
Don't imagine, go and get new SD :D

the huge storage is wow :)

BL
[Desire Q&A, Help & Troubleshooting] AndroHero:
dont let it worry you, i just spent 30 mins shouting at my laptop because it wouldnt let me push a file to my sd card using adb, stupid me forgot to log out of adb shell before trying to push it :D lol
[Desire Q&A, Help & Troubleshooting] AndroHero:
ok ive just tried this seems to work good, now i have 1.3gb of internal storage :D only problem is all market downloads now get stuck at starting download :( any ideas??
[Desire Q&A, Help & Troubleshooting] Orka82:
Start the app "Talk".

See if your downloads starts after that..

Edit seems like market is having some problems right now..
[Desire Q&A, Help & Troubleshooting] seto_613:
No, I'd tried this yesterday. the phone will hang on splash screen, or going into bootloop.

Maybe the /data/app is linked to somewhere and i don't know where to modify it.
[Desire Q&A, Help & Troubleshooting] AndroHero:
it does work i just did it with leedroid, just remove the a2sd script in /system/ect/initd before flashing
[Desire Q&A, Help & Troubleshooting] AndroHero:
thanks, when i try to start a download, the downloading icon pops up on the taskbar for half a second then disapears, the download just says starting download, i will wait and see if its market related :)
[Desire Q&A, Help & Troubleshooting] seto_613:
Remove 40a2sd only?

i remove 02cachedalvikcache too, and get a boot loop...
[Desire Q&A, Help & Troubleshooting] AndroHero:
02cachedalvikcache moves the dalvik cache to the /cache/partiton, i havent tried deleting that yet, but would like to as the /cache partition is hardly big enough for the dalvik cache
[Desire Q&A, Help & Troubleshooting] seto_613:
i see...

Thank you, i'll try it NOW~~~~
[Desire Q&A, Help & Troubleshooting] AndroHero:
ok so the dalvik cache on the cache partition just seems to contain some .dex files for the framework (which is weird as the framework is deodexed) anyway the standard dalvik cache is still in /data/ anyway, ive flashed a theme so its defo deodexed, all i need now is the market to work :D

*edit* im just getting download unsuccessful now straight away :(
[Desire Q&A, Help & Troubleshooting] bluelavender:
Androhero, how about trying with space less than 1gb ? Yesterday i got problem exactly the same, and solved it by lowering to 900mb
[Desire Q&A, Help & Troubleshooting] AndroHero:
im going to try that next :D
[Desire Q&A, Help & Troubleshooting] seto_613:
It works, it works!!!

thanks to AndroHero's support.

I made a 1G fat32 for /data and market has no problem on download and install apps.

kernel_v2.2f_chgrmod2 for battery fix ...... OK

My Theme (flashing bootanimation, framework and system apps) ...... OK
[Desire Q&A, Help & Troubleshooting] bluelavender:
my turn now :D

:) :) :)

BL
[Desire Q&A, Help & Troubleshooting] AndroHero:
all thanks should go to sibere for his excellent tutorial and script, all i did was state the obvious :)
[Desire Q&A, Help & Troubleshooting] bluelavender:
another happy man here :)

thanks sibere, androhero, seto... all works very fine, including market, with theme-able rom (minus app2sd script) :)
[Desire Q&A, Help & Troubleshooting] seto_613:
I found that the market download failure issue is caused by low cache.

the cache partition is always low but not near 40m. it can't be released by itself.

I tried to wipe cache to release it but it become low after reboot. that means something eat it. there is no problem on non-a2sd rom (the result is on 2pages ago).

Is this caused by 02cachedalvikcache?

edit:

I'd deleted the 02cachedalvikcache but the cache is still keep low.

I browser to /data and find that there are a list of files in dalvik-cache and about 20MB.

I really don't know what caused this.... is there any way to move the dalvik-cache to other place instead of /data?
[Desire Q&A, Help & Troubleshooting] AndroHero:
i said before all thats in the dalvik-cache in the /cache/ partition seems to be some .dex files for the framework, i dont know why the framework needs them if its deodexed but i assume its somthing to do with us removing apps2sd, it still leaves you with 20mb tho, if you want, you could flash one of the modified alpha rev hboot tables, one gives you a bigger cache, you dont need to worry about the size of /data/ now init.

check out www.alpharev.nl
[Desire Q&A, Help & Troubleshooting] seto_613:
I'd read your post, but i didn't know half of the cache will be eaten.

Some of the great games is more then 20mb like Pocket Legends, so can't be downloaded.

My be need a method to move such things out of there.
[Desire Q&A, Help & Troubleshooting] AndroHero:
like i said the only options you have is to flash one of the alpha rev hboot tables, if you can get your /system/partition down to 180mb there is a table with a 60mb cache, or use the tut in the android development section to modify your own partition tables, then you can make the cache as big as you want :)

http://xdaforums.com/showthread.php?t=806321
[Desire Q&A, Help & Troubleshooting] seto_613:
Thanks, i'll try that custom mtd. i can move about 25mb to cache.
[Desire Q&A, Help & Troubleshooting] AndroHero:
just move some /system/ space to /cache/ i usually have about 40-50mb of free space in /system/
[Desire Q&A, Help & Troubleshooting] seto_613:
Filesystem Size Used Available Use% Mounted on
tmpfs 207.8M 0 207.8M 0% /dev
tmpfs 207.8M 0 207.8M 0% /mnt/asec
/dev/block/mtdblock3 225.0M 223.1M 1.9M 99% /system
/dev/block/mtdblock5 1007.9M 562.8M 393.8M 59% /data
/dev/block/mtdblock4 65.0M 1.4M 63.6M 2% /cache
tmpfs 8.0M 0 8.0M 0% /app-cache
/dev/block/mmcblk0p2 1.0G 1.0G 0 100% /mnt/asec/ext
/dev/loop0 1007.9M 562.8M 393.8M 59% /data
/dev/block/vold/179:1
13.8G 8.3G 5.5G 60% /mnt/sdcard
/dev/block/vold/179:1
13.8G 8.3G 5.5G 60% /mnt/secure/asec

Thanks AndroHero, It works!

However, do u see? after apply the custom mtd, the cache become normal....

anyway it works perfect~ Thank you very much!

edit:

Filesystem Size Used Available Use% Mounted on
tmpfs 207.8M 0 207.8M 0% /dev
tmpfs 207.8M 0 207.8M 0% /mnt/asec
/dev/block/mtdblock3 225.0M 214.9M 10.1M 95% /system
/dev/block/mtdblock5 1007.9M 562.7M 393.9M 59% /data
/dev/block/mtdblock4 65.0M 1.4M 63.6M 2% /cache
tmpfs 8.0M 0 8.0M 0% /app-cache
/dev/block/mmcblk0p2 1.0G 1.0G 0 100% /mnt/asec/ext
/dev/loop0 1007.9M 562.7M 393.9M 59% /data
/dev/block/vold/179:1
13.8G 8.3G 5.5G 60% /mnt/sdcard
/dev/block/vold/179:1
13.8G 8.3G 5.5G 60% /mnt/secure/asec

After flash my theme, there is 10.1M avaiable, maybe more stable?

With my dirty system, the Quadrant BenchMark is here.

What a great I/O!!!
[Desire Q&A, Help & Troubleshooting] AndroHero:
10.1mb is more than enough, its just incase you want to flash or add somthing to system, ive had my space down to just a few kbs in /system/ with no instabilities :) its weird how your cache went back to normal tho isnt it lol
[Desire Q&A, Help & Troubleshooting] seto_613:
ic. However, data is much, cache is enough, so let it standby at system~~

with this data2sd, titanium become un-necessory. It's really perfect :cool:
[Desire Q&A, Help & Troubleshooting] bluelavender:
Yep.. this is perfect :-) thanks to sibere .. btw do you guys think it's better for sibere to have his own thread for this ? This is quite revolutionary :-)

And seto, does your theme work with leedroid ? :-)

BL
[Desire Q&A, Help & Troubleshooting] seto_613:
+1. It should be own thread for this Data2SD~~

My theme work is my own work.
[Desire Q&A, Help & Troubleshooting] bluelavender:
Oh.. i mean can i flash your theme on top of leedroid rom ?
[Desire Q&A, Help & Troubleshooting] seto_613:
yes, u can. but on a2sd rom only.
[Desire Q&A, Help & Troubleshooting] Zeljko1234:
I read this thread and it's look like that sibere really did great job. Did you guys test it in real situation? Is it everything ok? What about speed, lag, simultaneously playing music, video, using map etc.? Because everything is on sd card now and we know that speed could be slower then with internal memory. OS must access sd card for data, cache...

If I make nandroid backup and something goes bad, can I just restore my configuration? I think I can, asking just to be sure.
[Desire Q&A, Help & Troubleshooting] AndroHero:
woop i just got this working with a 2gb ext4 partition, i bet im the only person in the world with a desire with 2gb of internal storage :D lol
[Desire Q&A, Help & Troubleshooting] AndroHero:
yeah if you do a nandroid first, you can revert to a standard rom with all changes gone :) speed lag is none existant even with my class 2 scandisk 16gb micro sdhc card, but obviously the i/o boost is none existant in reality its just a Placebo :p
[Desire Q&A, Help & Troubleshooting] sibere:
Year don't expect a boost with class 2 unless you take the "sync" option off ;)
[Desire Q&A, Help & Troubleshooting] Zeljko1234:
Could someone test with SD Card Speed Test using sibere mod? I have Apacer class 4 16GB card, with kernel speed patch and sector alignmen. My result is 3MB/s write and 10MB/s read.

I'm planing to try mod in next few days. But I'm careful because I'm going to business trip for two week and I really need smartphone.
[Desire Q&A, Help & Troubleshooting] sibere:
Sd card speed test is testing /sdcard, not /data.

But atm I have 9mb write and 12 read :)
[Desire Q&A, Help & Troubleshooting] mattiadj:
I want to try but....I don't understand the step 3....can anyone help me?I must install a no app2sd ROM before?

sent from the future
[Desire Q&A, Help & Troubleshooting] Zeljko1234:
Yes, I know but everything it's on sd card now :) Thank you for test. What sd card class and manufacturers do you have?
[Desire Q&A, Help & Troubleshooting] Orka82:
What do you use to measure SD-card speed?

I have a class 6 transcend card and my write speed was about 4 and 10 read.

4 feels slow...
[Desire Q&A, Help & Troubleshooting] AndroHero:
1) download leedroid 2.2f (apps2sd version)

2) 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.

3) now you need to partition your sd card, use gparted to make 2 fat partitions, a large primary partition and a secondary one about 1gb in size.

4) once you have done that copy the leedroid.zip to the sd card, boot into recovery, do all your wipes and flash the rom, one fashed boot it up and set it up as normal.

5) once set up, hold the power button and choose the option to reboot into recovery.

6) once in recovery connect your phone to your pc, open a command prompt and navigate to the tools folder inside the android SDK.

7) now in the command prompt type the following one at a time:

adb shell

mount /system

mount /data

mount /sdcard

exit

8) now leave the command prompt open and download the file at the bottom of the screen, (i have had to zip it, just open the .zip and the 01data file is inside) and copy it to the root of the c:\ drive on your pc.

9) in the command prompt type (one at a time and always wait for the # to appear again before entering a new command)

adb push c:\01data /system/etc/init.d

chmod 755 /system/etc/init.d/01data

cd /

mount /dev/block/mmcblk0p2 /sd-ext

dd if=/dev/zero of=/sd-ext/ext2 bs=1048576

/system/xbin/busybox mke2fs -F -L userdata /sd-ext/ext2

mkdir /sd

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

cd /data

cp -a * /sd

cd /

/system/xbin/busybox umount /sd

exit

adb reboot

10) your phone will now reboot with a much bigger /data/ partition.
[Desire Q&A, Help & Troubleshooting] Orka82:
Why not the one without a2sd? I used the one without..
[Desire Q&A, Help & Troubleshooting] AndroHero:
the one without apps2sd is odexed meaning you cant flash themes or edit the framework, the apps2sd one is deodexed :)
[Desire Q&A, Help & Troubleshooting] Orka82:
I see. No need for me to change anything then..

Thanks. :)
[Desire Q&A, Help & Troubleshooting] mattiadj:
Thanks a lot!!!!!

Only two question.

Can I use no app2sd version of leeDroid?if yes which step I must ignore?

I want have 2gb for app and rest for storage so which of two partition became of 2gb?

Have I with this tutorial the performance boost??

sent from the future
[Desire Q&A, Help & Troubleshooting] AndroHero:
you can use the non apps2sd version, just start at step 3, it very tricky for this to work with more than a 1gb partition, i got a 2gb partition working but i had to bind mount /data/ to a ext4 partition and its more complicated and unstable i suggest you keep it to 1gb, the 2nd partition is the one that will become /data/ and yes this is how you get the I/O boost :)
[Desire Q&A, Help & Troubleshooting] bluelavender:
Agree... i know firsthand.. first "live tester" for space greater than 1gb in non a2sd ... and failed :-)
[Desire Q&A, Help & Troubleshooting] bluelavender:
Currently i am using class 4 kingston... looks good :-)
[Desire Q&A, Help & Troubleshooting] mattiadj:
So after this hack i have 1gb internal memory?

Now i have 1gb of ext app2sd and used is 500mb and since i have custom partition i have 44mb internal memory free.

With this hack, since i can't use app2sd, i have the same possibilty to install apps or i have more space anyway?

can i use custom partition with data2sd?

Thanks
[Desire Q&A, Help & Troubleshooting] HTF:
Just for the record I am using a 1.2gb data partition using this method and my market works fine and I am having no problems. I am using defrost rom though and not leedroid like most of you.
[Desire Q&A, Help & Troubleshooting] coolexe:
awesome now i have 1gb data too.......
[Desire Q&A, Help & Troubleshooting] bluelavender:
Allright, so this data2sd mod is confirmed to work with leedroid, rooted stock, & defrost & alex mod (?)...

Has anyone else tested with auraxtsense ? I tried twice & failed..
[Desire Q&A, Help & Troubleshooting] mattiadj:
BTW is better to have 1gb app2sd or 1gb data2sd? :)
[Desire Q&A, Help & Troubleshooting] AndroHero:
yep it works with auraxtsence, just remember to remove the script called stuff2sd before flashing :D
[Desire Q&A, Help & Troubleshooting] coolexe:
hmmm in 1gb app2sd, data still in internal storage but in data2sd all r in sd-ext...

so data2sd is batter... we can install more than 100 app on it n still much space for other apps..
[Desire Q&A, Help & Troubleshooting] sibere:
Yes you're right, but not on the same partition and not the same file system.

So SD card speed test is testing /sdcard Fat32 partition, not the /data ext2 partition :)

And for the record, my µSD is a class 6 Transcend 8GB card.
[Desire Q&A, Help & Troubleshooting] bluelavender:
Thanks AndroHero :)

So far, my problem when flashing auraxtsense was due to it fails to recognize the SD Card (i flash it with sd already partitioned to 2 fat32).

Let's see if that stuff2sd was the cause.... :D

BL
[Desire Q&A, Help & Troubleshooting] Zeljko1234:
And this could be, let say, problem because both partitions are on the same physical card. If one or more processes access ext2 in same time when different process access fat32, speed will be slower. I hope that you now understand me :)

My Apacer class 4 obviously is not fast as it should be. I'm going to test it and see is it problem with card or with compatibility with Desire.
[Desire Q&A, Help & Troubleshooting] sibere:
How ok big misunderstanding here :D

Did you try to optimize you card with the link I gave? It usually makes a big difference!
[Desire Q&A, Help & Troubleshooting] sibere:
It not really revolutionary , it has been done already (search the forum) but there was no detailed tutorial (or I missed it ;) )
[Desire Q&A, Help & Troubleshooting] Zeljko1234:
Yes, I did every optimization I found. Kernel patch and claster alignment. Before patch it was really slow, about 1MB/s read and 2MB/s write, after 2/7. After claster alignment 3/10. So obviously it's much faster but write is still slow for class 4.
[Desire Q&A, Help & Troubleshooting] sibere:
Indeed :/ 3Mb/s is the internal NAND speed. With this card you will not get any speed improvement unless you activate data writeback but you can still benefit from the bigger storage space :)
[Desire Q&A, Help & Troubleshooting] Zeljko1234:
How did you measure internal NAND speed? 3MB/s is write? What about read? Bigger space is reason for me. But I'm worried about multitasking if everything is on the sd card... I'll try over weekend or maybe after two weeks business trip.
[Desire Q&A, Help & Troubleshooting] AndroHero:
problem is like you said, when more than one process tries to access the ext, every process after the first will get slower and slower access, as your whole data partition is now on the ext, every single app that you have downloaded that wants to run a background action wants access. i dont think the nand chip has this problem, all processes can have same R/W speed
[Desire Q&A, Help & Troubleshooting] bluelavender:
then again, no one has confidence like you to finally publish it and from what i searched, looks like not many are aware of this (judging from the replies here too :D)

BL
[Desire Q&A, Help & Troubleshooting] AndroHero:
i wrote a tutorial ages ago on how to bind mount /data/ to your sd-ext using an apps2sd rom. but i had to delete it as i couldnt get the script to work, so all was reverted on boot, sibere's scrip is awsome tho and works perfectly :D
[Desire Q&A, Help & Troubleshooting] sibere:
What's the difference here with everything on NAND? if 10 processes try to get access to the /data, it makes no diff if it's on NAND or SD. I'd say it's better on SD because I have a better performance with SD than NAND :)

And I never experienced so far 10 apps or more trying to r/w to /data at same time! They're all idling in background.

To get R/W on NAND, I use dd
[Desire Q&A, Help & Troubleshooting] AndroHero:
i agree this isnt a problem with class 10 or maybe class 6 cards, but for example my class 2, is barely on par with the nand in the firstplace, so obviously the more apps i install. the slower my phone gets, but i knew that in the firstplace so im not moaning lol :D
[Desire Q&A, Help & Troubleshooting] Zeljko1234:
I wonder what would happen if sd card became broken? Could we even boot our phone?
[Desire Q&A, Help & Troubleshooting] sibere:
Probably, but you'd get a phone without all apps you've installed, like 1st boot unless you left data on the /data nand. In this case, you will get a roll back from the moment you moved to data2sd because android will mount the NAND partition instead of the ext partition.

But you're doing backups and you're saving the backup to a flash drive or an HDD don't you? ;)

I'd say that the odds of getting a dead SD are even with the NAND and most of the time, the phone reads data from storage. I'd prefer buying another SD than buying another phone anyway :D
[Desire Q&A, Help & Troubleshooting] AndroHero:
no you would have to boot into recovery and flash a new rom, you would have the same problem with a rom with apps2sd too tho, as there would be no dalvik-cache
[Desire Q&A, Help & Troubleshooting] sibere:
no dalvik-cache? so what? If VM doesn't find DC on boot, it rebuilds it. Try to wipe your DC and reboot, you'll see :)
[Desire Q&A, Help & Troubleshooting] AndroHero:
i never thought about wiping the dc, but if the sd card is damaged there is no dc anyway, i know the dalvik vm rebuilds the dc if it dosent find one, so even if i didnt wipe the dc, shouldnt the dalvik vm rebuild it anyway? in my experience it just bootloops, i asumed it was because of the script directing things to the non existant ext. YMMV anyway :D
[Desire Q&A, Help & Troubleshooting] Zeljko1234:
Could you test it? Make backup, remove sd card and post result :)
[Desire Q&A, Help & Troubleshooting] sibere:
I already did it and it worked. And I've read so many times people doing it on many threads.

search the forums with "wipe dalvik-cache" :)
[Desire Q&A, Help & Troubleshooting] Zeljko1234:
Wiping dalvik cache it's not the same as removing sd card. Did you remove your card after you move all to it? After your mod?

It's very important to have solution for broken card if that happen far away from home.
[Desire Q&A, Help & Troubleshooting] sibere:
What if everything is or your NAND and it dies when you're away from home? Odds are even and results would be worse.

Do app2sd users have a solution for a dead SD?
[Desire Q&A, Help & Troubleshooting] Zeljko1234:
I agree :) And I agree that's much better to have spare sd card than spare phone. Maybe NAND has better quality than sd card?

But you didn't answer my question ;)
[Desire Q&A, Help & Troubleshooting] mattiadj:
WooooooooW!!!!

I have done the entire procedure and now i have 1.80gb internal memory!!!It's fantastic!!!!

Only think a want to suggest is to specify at step 9 after

adb push c:\01data /system/etc/init.d

write

adb shell

and go ahead!!

Thanks to all!!it's fantastic now!!!i'll make all test for perfomance now!
[Desire Q&A, Help & Troubleshooting] AndroHero:
yeah sorry i forgot to tell you to re enter adb shell to chmod the file, because you have to exit shell to push files :rolleyes: lol
[Desire Q&A, Help & Troubleshooting] sibere:
Your answer to my question is my answer to your question ;)

but you didn't answerd my other question too:

I have no clue about NAND quality vs branded SD card quality.

But if you have a NANDROID backup, you can always restore it after buying a new SD.

Obviously you're f**ed when away from home, but as I said you would B f**ed with A2SD or a dead NAND too.

IF you wanna be safe, buy a spare SD and make a copy of your actual SD to the new one.

If your SD dies, just swap the old SD with the new one
[Desire Q&A, Help & Troubleshooting] sibere:
if SD dies, there IS dc! Simply because 01data script won't be able to mount the SD as /data. It will fail and Android will mount the NAND and your /data will be on NAND with the DC and all the stuff you left when you copied it to the ext file :)
[Desire Q&A, Help & Troubleshooting] Zeljko1234:
I agree, but at least that user could boot phone and make call. Sometimes we forget phone part of ours smartphones :)

Are you sure? Did you really try? Remove sd card from your phone and let us know :)
[Desire Q&A, Help & Troubleshooting] mattiadj:
I suggest to move this thread to dev area and rename it as data2sd.

Is not only a performance boost but is the solution for the problem of space.

After this the only bad think of my desire is the bad multitouch and poor 3d performance but is unfortunaly a hardware problem.

Thaks to all
[Desire Q&A, Help & Troubleshooting] Zeljko1234:
Yes, I agree!

Absolutely, sibere improve our Desire a lot.

You can find kernel with GPU enabled, but still is not the best 3D phone around. I know it's off topic but is it possible to compensate multi touch issue?
[Desire Q&A, Help & Troubleshooting] sibere:
I cannot move half of the thread to another one, this can only be done by admins.

But I can create a new thread, starting with my tutorial :)
[Desire Q&A, Help & Troubleshooting] sibere:
Cannot do that ATM 'cause I must be join-able anytime for my job.

but why don't you do a backup and try? ;)
[Desire Q&A, Help & Troubleshooting] sibere:
Moved here (http://xdaforums.com/showpost.php?p=9431355&postcount=1) for a new dev thread
[Desire Q&A, Help & Troubleshooting] Zeljko1234:
You should and please correct step 9 and check your great tutorijal once again. Just to be sure ;)

One reason it's the same as yours, second is that I didn't do your mod. As I said, I'm planing it for the weekend or maybe later because of business trip. I have bad experiences with experimentation just before trip. Last time I almost brick my phone :)