yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] sibere:
E2fsprogs-arm in OP has everything.
[Desire Android Development] melethron:
Its the gparted step. Every change to partition table a powerloss can cause issue (like on every other partition programm) but it used for a while in data2whatever. I do that now in recovery and not on boot. It doesn't touch the fat partition. Only aligns partition 2 (or also partition 3 if present for swap) fell free to change the script to unjournaled. You'll find the mkfs.ext4 line in the script. But i would recommend to not mess to much with the alignement part then your fat partition could be gone ;).
[Desire Android Development] sibere:
I haven't checked the script in details so I can be wrong but I thinks that the ext partitons are getting aligned and rebuild. It's always a good idea anyway to backup everything before playing with this even if the script does nothing to 1st FAT32 partiton. :)

After doing this, droidzone script can be applied or the format command in OP
[Desire Android Development] peterme58:
Goodevening, i wanted to try the sibere's "trick" "noauto_da_alloc" that makes better the performance of ext4 in sd card, so i took the droidzone's data2sd_installer.zip and data2sd_reinstall.zip and made the appropriate changes in the script (i hope droidzone not having some problem with that,if so please remove them), i think everything is ok, if anyone can check it would be great.

I also add the patched lbsqlite.so in the data2sd_reinstall.zip that was missing.

Thank you all once again because you all give us the opportunity to use our phones better than the companies wish too!

I want to apologise, becouse i did not tested fully, i uploading the fixed ones, forgive me please.

This is a screenshot with
[Desire Android Development] Droidzone:
lol...Feel free to modify it :)
[Desire Android Development] peterme58:
Thank you very much droidzone.
[Desire Android Development] melethron:
pushed to /tmp/. Log is there and the binaries. tune2fs is also there but e2fsprogs has also all included.

Check the creation of the fdsik config. It calls "(d)elete" "2". If at last "w" is called and something is wrong and the other partition starts in the fart partition or somethin the table won't be written so i cant touch fat partition. Backup is still good idea.

Why lol?!
[Desire Android Development] Droidzone:
Well, because he called me "The" Droidzone... :D
[Desire Android Development] ownhere:
I found a different SD card like a different FS and scheduling strategies. Like my sandisk ultramobile c4 like deadline + ext3, my another c10 card like ext4 + cfs. But basically the same conclusion, that is to provide maximum adaptability of scheduling strategy is CFS, because CFS minimize the impact on the SD card, so the time to read and write in the mass is more stable. The most stable file system is the least read and write, regardless of benchmark, look at the stability, I think ext4 + noauto_da_alloc + big commit interval is the best choice.

my C10 card report read/write error with ext3/ext4+VR, ext3/ext4+deadline, but no error with ext4-noauto-da-alloc+cfs.

my sandisk ultramobile c4 report read/write error with ext3/VR, others combine is ok. But my card had physical damage, in the few days after using ext3 + deadline
[Desire Android Development] melethron:
@droidzone: he said the "the droidzone's script" ;)

You meant CF

Q

i guess ;) .

Are you really sure that less write/read is better in general? What is if data is written and recalled short after that? My card is not bad considering handling many i/o request and i had delays when there was much buffering because of loop. And also on direct mounts ext3

felt

faster than ext4 with dl. I think it's because it needs to finish the write first before it can be recalled....

Also results of i/o request handling can be different. Some controller can handle more i/o request and some gets "i/o starvation" if there are to many i/o requests (deadline is better than noop on this because noop doesnt merge most i/o requests in practice). Really hard to find one setup for all IMO.
[Desire Android Development] IndicaviA:
Hi there, I only want ask an question, I have read ton of posts about it and this method seems to be good, but just for sure about it.

I have the Desire, stock 2.2 Froyo ROM rooted (with Unrevoked, Clockworkmod installed). I have inserted 16GB SD card fat32 formatted. I have installed ModInstall app and I have moved almost every app to SD card. Unfortunatelly I have now only 20MB left in internal memory, so I try to find a solution.

What I want to do:

a) stay with this stock 2.2 ROM

b) because I have installed many apps I dont want to loose them or install them all again

c) I want to use DriodZone DATA2SD installation to get more space

So please can anyone tell me that these steps could solve my needs?

1) I will backup all my apps and so. I can use snapshot via ClockworkMod or backup everything via Titanium Backup or MyBackup Pro. Or do a image of SD card via f.e. Acronis True Image

2) I will format my SD card. Then I will split it into two partitions via GParted. First one EXT3 partition 1GB and second one FAT32 partition 15GB.

3) I will copy all data from image from previous 16GB SD card to a new 15GB FAT32 partition

4) I will apply DroidZone DATA2SD instalation

5) I will reboot the phone

6) I will move all my apps from SD card via function "back to the phone" in froyo app2sd ?

7) Everything shoud be OK???

Can anybody please tell me, if some steps are wrong or any better suggestions ?

Best regards and thank you for your advice.

Indicavia
[Desire Android Development] melethron:
There is not only the apps on the fat partition but also data of apps in /data/data (this is what fills your internal data partition). That data needs also to be backed up. Titanium backup works fine for that. I'm not sure if nandroid backup works also since i didnt read the whole script (depends if it copies /data/data on boot - then nandroid would work). But titanium Backup is the way that works for sure since it does a backup of all apps + a /data/data backup and stores that on the fat partition. If you restore it, it will copy it back to the folders (and /data/data is THEN on sd-card).
[Desire Android Development] sibere:
For step 2 it's the other way round 1st partiton must be fat and 2nd is ext3/4 partiton.
[Desire Android Development] Droidzone:
A clarification for the new guys!

It's Sibere's DATA2SD all the way! Droidzone flasher maybe, nothing more..I havent deviated the steps by even a single step from Sibere's code!
[Desire Android Development] IndicaviA:
Oh, of course :) . But thank you all guys.
[Desire Android Development] hispeedworm:
This thread looks very promising .... data to sd is defiantly the way forward for all phones with less nand storage.

I wanted to ask if the author of the thread could maybe post some pics of screen with bench marks to show the performance of data to SD script ... probably on class 4 and class 6 cards ... that would be great.
[Desire Android Development] melethron:
In general benches aren't objective to give an estimate of "fealt" performance. Yaffs2 on internal raw nand is different from ext4 on a "fake" lba provided by the microsd controller. "Wear leveling" etc is handled different.
[Desire Android Development] hispeedworm:
okay than how about a FEEL of performance in hand ;)

for example....

class 2 card.... a bit slower than nand

class 4 card.... equal to or faster than nand

class 6 card .... faster than nand

something like that :D
[Desire Android Development] peterme58:
http://xdaforums.com/showpost.php?p=10686265&postcount=1293

The results...
[Desire Android Development] hispeedworm:
oh my..... really... can you specify a bit more about the rom you were using and any overclocking that you had enabled or not
[Desire Android Development] peterme58:
I am using tepics rooted stock rom with richardrip's v5e kernel at 1113 mhz as sibere uses....
[Desire Android Development] melethron:
Class isnt a good estimate because this isn't about mb/s but about writes on small files. Class 6 can "feel" slower than a class "2", but it can also be the other way around ;)
[Desire Android Development] ownhere:
a compare between ext3,ext4,xfs,btrfs:

http://www.ilsistemista.net/index.p...benchmarked-ext3-vs-ext4-vs-xfs-vs-btrfs.html
[Desire Android Development] peterme58:
Hello there, i was wondering what went wrong? since yesterday i am trying to use couts99 kernel either bfs or cfs svs but after i flash the kernel throuh the recovery my desire starts bootlooping, i am using rigth now the v5e richardrip's kernel and everything is ok... also if i pull out the battery(will the bootlooping starts) and go flash the richardtrip's kernel the phone continous bootlooping...is there something wrong that i am doing? when i am using richardrip's kernel and the mods the quick system shows that my system memory is only 0.88 mb available since couts99 kernel is bigger than richardrips about 1 mb is that the missing part?
[Desire Android Development] melethron:
Its done on a HDD not an SSD. But after all its interesting that all test show issue on ext4 and sqlite.

I also think that we may have forgotten to consider the CPU usage. Most benches are done on good (desktop) hardware but compared to a normal computer our cpu is slow. I think that could be the reason why JFS has such a good score (because in general its not nescassary fast on sqlite). Also the better "feeling" some people have from btrfs may be explained by this.
[Desire Android Development] sibere:
We both end up with the same conclusion then :)

I have EXT4+CFQ+noauto_da_alloc and ATM a commit of 20 but I had up to 100 (which could be a bit excessive)
[Desire Android Development] sibere:
Very true!

Actually the best info for us would be the I/O per sec the SD card can handle. A good class2 card with a hi IOPS would be probably better in our phones than a bad class10 with a poor IOPS score. Unfortunately, this information is not provided/published by the manufacturers.
[Desire Android Development] sibere:
I may have missed that info, but they don't give the options they've used to build and mount the FS. And we've seen that options can dramatically change the behaviour and performances of a FS specially when it's running on a flash based memory storage device like SSD or memory cards with their low latency and erase blocks.
[Desire Android Development] huzi7868:
i had a problem with my phone wen i falshed a rom it was fine after i falshed the data to sd i got this problem saying mount sd card an icon came in the top bar i checked my memory said unavailble
[Desire Android Development] docnasef:
Please guyz I need your help..

esp sibere, droidzone, melethron,and all the rest of all you knowlegable people..

I have desire

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

BRAVO PVT3 SHIP S-ON

HBOOT 0.93.0001

I also enabled init.d on stock *rooted* Desire roms

from this thread

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

from post 40

by flashing this: update-froyo-init.d-busybox-a2sd+-signed.zip

I also used Gparted liveCD to format my sd card to fat32 followed by ext 4 of 1GB

I would like to have DATA2SD

Could someone please point the way??

Also do I need s-off?

Should I use AmonRa?

I noticed droidzone you recently changed??

Thanks all!!
[Desire Android Development] Droidzone:
What do you mean I recently changed!? :D You mean my signature?

You dont need S-OFF. Use any recovery.

I get that you enabled init.d. But that file you mentioned says something about a2sd..You will have to remove a2sd to get data2sd..Dont know what method you used. But conventional methods should be reversed by the zip on this post. That post gives you everything you need. Try it.
[Desire Android Development] sibere:
You need a ext4 compatible kernel and the stock one isn't. This is clearly stated in the OP.
[Desire Android Development] Droidzone:
Oops..I totally missed that!
[Desire Android Development] docnasef:
ok thanks so could I flash a "compatible" kernel in say recovery? is that possible?

Could you please point me to one?

As I explained earlier I NEED this stock version as it is arabic enabled and In my work I tend to get several sms/messages/emails in arabic

Thanks again
[Desire Android Development] sibere:
It's more for docnasef than for you ;)
[Desire Android Development] Droidzone:
Yup..But I should have told him that...Seeing that I adopted Leedroid kernel in the Rom I made because it was ext4 compatible..

Some people are reporting reboots in car charging mode with the kernel..Could you suggest one of Richardtrip kernels...Something with optimum balance between battery life and performance..I wouldnt know which one to choose.. :)
[Desire Android Development] user0014:
dear droidzone：

I need your help,why my phone stopped at the first screen use your Flashable ZIP.

Thank you!
[Desire Android Development] Droidzone:
That's just too little info to go on..

You need to specify:

Name of Rom used.

Whether a2sd version or not

Steps you did to install, right from partitioning part, how u flashed the zip, which one, when you rebooted the phone etc etc.......

Swyping away..
[Desire Android Development] Droidzone:
@Sibere / @Melethron,

I'm trying to infuse some AI into my scripts :)

Is there a command which can check if the Data2SD installation is completely setup. I want to conditionally check for this..

I want to check whether /data is in ext4. If that isnt possible, it can check for the free space in internal memory..I will be using sh, so is there any adb command which can give this info?

Edit: I think I found it
[Desire Android Development] user0014:
I'm sorry,My English is poor.My rom is cm6.1.1,no a2sd.My sd first partition is FAT32,and the second isthe EXT 1G.

My step:

1.wipe all.

2.Install the cm6.1.1 zip.

3.Reboot,waiting for allow system to stabilize.

4.Reboot into recovery once more,run the Data2sdInstaller.zip.

5.Reboot,then my phone stopped at the first screen.

When I use oxygen rom,the data2sd is Strong.

When I use miui rom,my phone keep the second screen .
[Desire Android Development] Droidzone:
Wrong method!

See this post for very detailed instructions!

After installing your cm6.1.1 zip, you arent supposed to reboot! You are supposed to flash the a2sd remover script!

Then, reboot once, allow system to stabilize

Now reboot again to recovery and install the data2sdInstaller zip

That's it.

The instructions you followed were from my Rom thread, where the installation is different.
[Desire Android Development] docnasef:
[ok thanks so could I flash a "compatible" kernel in say recovery? is that possible?

Could you please point me to one?

As I explained earlier I NEED this stock version as it is arabic enabled and In my work I tend to get several sms/messages/emails in arabic

Thanks again[/QUOTE]

Could someone please help me out here?!

Cmon guyz, I'm asking nicely!! :rolleyes:

Sibere ? droidzone? melthron?

Anyone of all you desire Geniuses??!!!! :cool:
[Desire Android Development] Droidzone:
Of course..Patching a kernel ought to work..Hope your init.d works though..Otherwise this would fail..

Try the Richard trip kernel suggested in my Rom thread..See towards the last posts..Flash it in recovery

Edit: I meant kernel
[Desire Android Development] sibere:
Hey slow down dude :)

We're not 24/7 in front of our keyboard you know. I'm doing this on my spare time and I have a job too ;)

But like I said in OP as well, RichardTrip kernel should do the job. There is plenty of sense kernels with EXT2/3/4 enabled. Just browse the desire dev forum, it doesn't require to be a genius to do so :D
[Desire Android Development] Droidzone:
Sibere, this is a fake, right? :D

What is shown as battery notification is what I was talking about..That happens to me on flashing kernels. Goes away if I switch off phone and charge for some time..Weird issue...
[Desire Android Development] docnasef:
THANK YOU all

OK so to recap and get it straight

Factory wipe

Flash PB99IMG of my original stock ROM

Unrevoked to get CMW and recovery

use update-froyo-init.d-busybox-signed to get init.d

reboot

recovery and flash richardtrip kernel

and then flash DATA2SD zip?

but I thought you should NOT have a2sd BEFORE installing DATA2SD??

as is stated in your post here:

1. Data2SD Installer (Installation script) Download Link

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 Remover 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

but here you replied "Patching a kernel ought to work..Hope your init.d works though"

This bit and consequently the right sequence has me confused.

REALLY sorry guyz but just trying to be sure before totally messing up my phone!

Also hope this might clear up things for others with the same thoughts!!

Thanks all!

N.B.

@ sibere you do all this in your SPARE time!!!

Wow you make me feel very lazy and unproductive!! lol

Seriously, keep up the good work

We all appreciate it tremendously!!
[Desire Android Development] user0014:
Thank you for your answer

I used your method and tried again.After installing my cm6.1.1 zip, I do not have to reboot. I install the Mod_Remove_A2SD zip.

Then, reboot once, allow system to stabilize

Now reboot again to recovery and install the data2sdInstaller zip

But my phone stopped at the first screen again.I'm sure this is true.

This is what I use rom

http://mirror.teamdouche.net/get/bravo/update-cm-6.1.1-Desire-signed.zip

Thanks again
[Desire Android Development] Droidzone:
Ah yes, Cyanogen..

I remember that we need to manually edit one other file to refer to the 01data, to get it to work on Cyanogen..See back some pages...Probably a lot of pages...Someone has written about it and offered a solution. Maybe we should open a Wiki on Data2SD, and allow people to add info on it as they can.. :) This is huge..:D
[Desire Android Development] jchoong:
user0014,

I am on CM7 build 8 and had exactly the same problem as you; I used the same procedure. Then I found out that if I use DroidZone's installer (from his Starburst thread) - Data2SDInstallerv0.3tiny), then Data2SD worked very nicely. Other Data2SDInstaller scripts do not seem to work with CM7. Thought I should share. Again, I would like to thank Sibere and DroidZone for their fine work.
[Desire Android Development] Droidzone:
jchoong, I thought you were having problems with your device bootlooping because you used that installer!

If Data2SDInstallerv0.3tiny worked for you, that's very weird because that installer does not include any of the libararies/files that have been put up by Sibere and only inlcudes his init.d script and the initial setup (minus all the other files). Now the reason the latest script did not work for you might be because the current installer version includes Ownhere's patched libsqlite, which would be different for AOSP. If you were to remove the libsqlite from the file and install the current script, it ought to work for you. I dont recommend using Data2SDInstallerv0.3tiny because that's designed for StarBurst because StarBurst already has all the files recommended by Sibere, in the core rom.I'll upload an AOSP version when I get time, which out to support Cyanogen out of the box.

@Sibere, I will be uploading a seperate AOSP compatible version of the flash zips soon. By the way, I'm waiting to hear more from you on StarBurst..Whenever you have time, that is.. :) Is there a patched libsqlite.so or a corresponding file for AOSP..If so, I could include it in the AOSP version?
[Desire Android Development] jchoong:
DroidZone,

I did read (many times) what you wrote about the difference between v0.3tiny and v0.4 installer scripts. But for all the versions of CM7 - 6, 7 and latest 8 - that I have been installing, only v0.3tiny worked. I even tried deleting and repartitioning the ext4, but to no avail. Honestly I don't understand how these scripts work.

Edit: I forgot to mention that I also tried v0.2 (from this thread).
[Desire Android Development] Droidzone:
I have a very good idea why that happened to you. Sorry if I sounded blunt when I responded in the StarBurst thread. There's actually a file in these scripts which is specific for Sense Roms. That would create issues for Data2SD on AOSP. I'm working on it now, and I will soon upload the updated scripts for both Roms-Sense and AOSP. It will also be updated to support the latest Clockworkmod 3 (Edified).

Thanks for the info..It helped understand the scenario
[Desire Android Development] sibere:
Hum well sort of ;)

It's just because quadrant isn't forcing cache flush, so actually everything is written into cache (ram) before being flushed to the SD. It's close to what was happening when I was using a loop mount.
[Desire Android Development] sibere:
Yep... I have a job which can be very demanding time wise. I'm often away from home and from internet for a few days in a row. ATM I have to work even harder 'coz I've been promoted ;)
[Desire Android Development] sibere:
I ve patched the lib using ownhere method here

I dunno if there is an AOSP patched version in his thread but if not, send me an original version on the AOSP lib and I'll see what I can do with it :)
[Desire Android Development] jchoong:
That's great; thanks in advance for the special effort.
[Desire Android Development] sibere:
Risk on power loss.

I've heard here and there that not using a journal is pretty dangerous, especially in the event of a power loss.

The only occasion you can get a power loss IMHO is if you drop your phone and the battery splits from the device.

I've tried today to use the phone until the batt dies (mainly to recalibrate the battery) and when it happend, the phone just turned off with a gentle and harmless swith off. The partition got unmounted nicely and I had no data loss nor any error during the e2fsck during the next boot.

So unless you're not taking a good care of you phone and use a stable ROM without random reboots, there should be no reason to worry about :)
[Desire Android Development] Droidzone:
Sibere, urgently need your recommendation on a kernel..Just recompiled the kernel with Richard Trip v5e and apparently there have been problems..Shall I use your kernel? Are there any issues?

Thinking of using this: Kernel_Froyo_V5e_havs@925mV_BattFix.zip

If there's something else which you think is stable and good, please do recommend
[Desire Android Development] sibere:
I recommend 925mV + GCS

I can give you the one I'm running with ATM (compiled 1st JAN ;) )
[Desire Android Development] Droidzone:
thanks a lot! By the way, is there any way that I can add a line to a file (append) from the command line. In dos, it is possible to pipe it like:

echo Newline >> j.txt

Is the same thing supported in linux? I want to add a command to init.rc to make data2sd work on cyanogen, via the flashable zip
[Desire Android Development] sibere:
Yes should work that way too.
[Desire Android Development] Droidzone:
Interesting how a tiny error in the code can lead to its malfunction..

The Cyanogen should work perfectly now..I've corrected the code. Will upload in 10 mins..
[Desire Android Development] mornixuur:
Would it be possible to use data2sd on one of the current Gingerbread roms like Oxygen 2? Would there be any particular steps invloved in getting this running?
[Desire Android Development] Nitin985:
Could you tell me if its possible to install the flammable zip on z v0.6
[Desire Android Development] Droidzone:
Apparently it doesnt work on the latest Gingervillain. I believe Danfrance successfully installed it on the prev version. Will confirm when I try it. Or you can try with the latest scripts.. :)

Uploading..