yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] CreaB:
hehe, i did, but they seem to be busy =)
[Desire Android Development] qbus00:
I've tried DATA2SD on another ROM. It was faster but still slower comparing to /data on on internal memory... and I think that if I install more apps to /data it would be as slow as on previous ROM.

I'll try to benchmark my SDCard for random seek time and post my results here soon... Maybe someone could do the same and then it will be clear if my card is OK or not?
[Desire Android Development] coutts99:
Not sure if hdparm is of any use with sdcards -:

# hdparm -tT /dev/block/mmcblk0p2

/dev/block/mmcblk0p2:

Timing buffer-cache reads: 224 MB in 0.51 seconds = 446380 kB/s

Timing buffered disk reads: 21 MB in 3.15 seconds = 6810 kB/s
[Desire Android Development] sibere:
hdparm read only. The interesting part is write speed :)

But with 7mb/s read, this is 2 times better than the NAND, allowing faster load of apps too.
[Desire Android Development] coutts99:
I should have noted the speed dd reports when I created the ext2 on the fat partition
[Desire Android Development] sibere:
you can dd on /sdcard/ and limit the file size around 100mb. You should get a pretty accurate value.

dd if=/dev/zero of=/sdcard/testfile bs=1048576 count=100

That's for 1mb chunks.

if you try with smaller chunks, you need to increase count value and you'll get slower r/w speed.
[Desire Android Development] zetxx:
this card is a class 10
[Desire Android Development] qbus00:
Hello,

Still struggling with DATA2SD :D.

I found following errors while using "dmesg":

[ 275.546203] mmcblk0: error -110 transferring data, sector 29756631, nr 16, ca

rd status 0xc00

[ 275.722930] mmc1: Data timeout

[ 275.723327] end_request: I/O error, dev mmcblk0, sector 29756631

[ 275.723999] end_request: I/O error, dev mmcblk0, sector 29756639

Of course I've checked card in my computer - no bad sectors, everything is perfect.

It looks that Desire driver has some problems with operating on this card. Now I don't know if this is a problem of all Desires or just mine?
[Desire Android Development] sasopu:
I've got a question for the know-how's:

The 01data script creates the /mnt/asec/ext folder at boot, but doesnt do any mounting, which I have to do manually. At first I was fine with that, but after a reboot, the apps didnt show in my programs list, but the internal storage showed that there were things installed.

Now I dont know what to do, so I wouldnt have reinstall all my apps.

I did use all the -o options at mount that were mentioned in the 01data.

Thanks in advance.
[Desire Android Development] sibere:
Are you joking?

the 01data script is doing 2 mounts:

#!/system/bin/sh

#

/system/xbin/busybox mkdir /mnt/asec/ext

This is the first mount

/system/xbin/busybox mount -o dirsync,noatime,nodiratime /dev/block/mmcblk0p2 /mnt/asec/ext

/system/bin/e2fsck_recvy -y -v -f /mnt/asec/ext/ext2

This is the second mount

/system/xbin/busybox mount -o loop,sync,noatime,nodiratime,nosuid,nodev /mnt/asec/ext/ext2 /data

#/system/xbin/busybox swapon /mnt/asec/ext/swap

chown 1000.1000 /data

chmod 771 /data

exit
[Desire Android Development] sasopu:
I know, if I'd only do the first mount, I'd only have an ext file in my /mnt/asec/ext, and I couldn't have installed my apps :-)

Is is possible that I cannot see my apps after a reboot because of the chmod and chown commands? Because I didn't do them manually, because I dunno what they do :-P

Is it possible that the script does not work because I now have two scripts starting with 01 in my init.d folder? do the numbers infront matter?

This whole process has been keeping me up at night for the last week, I can't seem to figure it out. It all started with the mount no space left error, for which neither factory reset nor mounting to /sdcard/sd, instead of /sd because of larger sdcard capacity than phone root capacity, helped. And I'm just stubborn enough not go give up and go with data2ext instead :-P
[Desire Android Development] sibere:
Please do the chmods, they are VERY important. do all the steps carefully , specially rights and owner for directories and files.

the number is very important too, it the the sequence number for the script to be executed at boot time.

If you have issues with the loop device, make sure that the recovery kernel has loop support (use the latest recovery possible, I have clockworkmod recovery, and this kernel supports loop). Otherwise, go for data2ext or just format 2nd partition ext/2/3/4 and change the 01data script to deal with this change.
[Desire Android Development] lantex:
Dear Sibere

I noted that you mentioned "Your ROM must support init.d boot scripts. edit: I've added a script witch should enable init.d. Unzip it and copy to /system/etc/ with a chmod 777 and root.shell UID GID."

but I cannot find your script, also don't konw how to "Unzip it and copy to /system/etc/ with a chmod 777 and root.shell UID GID.", could you help me? Thank you VERY MUCH!

PS: I’m a Desire with official 2.2 system, just rooted with "reflash_package.rar", never flashed rom
[Desire Android Development] Mike_52:
Installed it on Defrost with iinga's script, it work perfectly for me, thanx to Sibere and iinga :)
[Desire Android Development] bpivk:
I have an odd problem...

The script works ok but I have a few folders on my screen and inside some apps. And some of the apps don't have their pictures. Just a default android icon.

The icons work and the pictures are there when I set them but they go missing as soon as I either reboot or shutdown and then start the phone.

And just to add the apps that are giving me those problems are always the same (eg. Angry birds seasons and standard edition).

Edit: Here is a picture. Look at the last icon. http://flic.kr/p/8ZtUXQ

And it's not the only one. There are about 20 apps that are missing their icons when I reboot.

Edit 2: It seems that my phone decided to install those apps on SD. Now I'll move them back to my internal memory and hope for the best.

I have read that it's because the Sense launcher starts before the card is mounted. Is there a way to fix this problem. Because the odd thing is that only some apps are affected. It's about 20% of games and android vnc app.
[Desire Android Development] sibere:
the script is install-recovery.

unzip it under windows and copy it to you adb.exe directory.

in recovery do:

adb mount /system

adb push install-recovery.sh /system/etc/install-recovery.sh

adb shell

cd /system/etc

chmod 777 install-recovery.sh

chown 0.2000 install-recovery.sh

it should work this way
[Desire Android Development] coutts99:
Same herr
[Desire Android Development] bpivk:
I have found out that the phone moves some apps by itself to SD card and that's the problem because Sense launcher starts before the card is mounted. Use Titanium backup or stock android app manager and move the apps to internal memory. Then use adb and set install location to internal memory to fix the problem once and for all (google for the proper commands).
[Desire Android Development] lantex:
Dear Sibere, I tried again, still not work.

JUST Noted that also need a "Kernel with loop and EXT2/3/4 support", may the problem caused by this ? Sorry I don't know whether the offical 2.2 fits this demand.
[Desire Android Development] sibere:
You can have official rom but you will need a new kernel. There is a lot of choice in this forum for that :)
[Desire Android Development] tommyli12000:
thx~~~~so much~~~fully solve the problem which cause by not enough rom space.
[Desire Android Development] yeikos:
I was trying it with cyanogenmod 6.1 but didn't work...

Does CyanogenMod kernel support loop device & ext4?

I also tryed with Vork Kernel but nothing...
[Desire Android Development] Ignore.z:
same problem
[Desire Android Development] Rastaman-FB:
adb shell pm setInstallLocation 1

i had this with some adsd+ builds aswell

if this is set to 0 or 2 it creats a frankinstein install as the dalvic gets moved to a2sd or data2sd partition but the file itself is stuck in the froyo implementation
[Desire Android Development] danarama:
What happens? Any errors?
[Desire Android Development] iinga:
Yes it does. try renaming 01data to 50data and see if it works for you?
[Desire Android Development] coutts99:
I've moved to Pays HD rom and given up on data2sd and data2ext. I don't need all the space, I've reinstalled all my apps and still have free space so why go through all the hassle?

Also my phone is a LOT smoother without data2sd (class 6 sdcard).
[Desire Android Development] Rastaman-FB:
but that problem is caused by data2sd, it happens with a2sd+ aswell

its to do with certain roms not turning off the install location being automatic
[Desire Android Development] sibere:
This is really a pity.

I didn't' struggle to make it work and it actually worked right from the start for me. That's why I published the howto.

At least you gave it more that a try :)
[Desire Android Development] sibere:
setInstallLocation values are

0 - Auto

1 - Default to internal

2 - Default to SD

Anyway, after I install an app, I always check if it has been installed on SD or not...
[Desire Android Development] Rastaman-FB:
exactly

when using a rom with a2sd+ or an implementation of data2sd you should make sure this is set to 1

this means its forced to install to internal memory everytime therefore the scripts work correctly and the apps are not corrupted

if this is set to auto or SD then it can corrupt apps
[Desire Android Development] teorouge:
Hello Sibere, did you ever test your DATA2SD with more than 200 installed apps (plus the stock ones in ROM)? I'm struggling to make DATA2EXT work but I can't install all of the nearly 300 apps I backup'd in Titanium Backup: after the 200th or so, phone reboots installing via TB and I can't install anything even through Market, though I have 500MB free. I know DATA2SD and DATA2EXT are similar but not the same, but I'm curious anyway.
[Desire Android Development] sibere:
Ermmm... no. And I'm not gonna turn into an Android market freak and install tons of useless APPs for me to try to find out if I have this bug :D
[Desire Android Development] teorouge:
It's a matter of time, my friend... I keep stocking up apps waiting for the right chance to try them, and they build up. :(

Anyway, thanks for the reply! ;)
[Desire Android Development] coutts99:
Its a good idea and easy enough to get working. But I just don't need it.

By the way, I only seemed to experience lag with hd roms and data2sd. Non hd were fine.
[Desire Android Development] EViollet:
I have more than 250 apps and everything is working fine. No issue whatsoever here.
[Desire Android Development] Hilarium:
will i have to do a full wipe to upgrade ROMs after doing this data2sd?
[Desire Android Development] Zeljko1234:
It's always useful ;)
[Desire Android Development] mattiadj:
A question....work with this mod nandroid backup?apps are backuped as with app2sd??

sent from the future
[Desire Android Development] hess55:
wooow!! 2021 in quadrant on stock cpu
[Desire Android Development] danarama:
Bah Im too noob.

mount: mounting /dev/block.mmcblk0p2 on /sd-ext failed: No such file or directory
[Desire Android Development] sibere:
a "/" is missing after "block" :)
[Desire Android Development] wollyka:
i also like to know. Also, if i have already an ext part for a2sd+ on the sdcard do i have to delete it? sorry for the noob questions!
[Desire Android Development] danarama:
Ahhh blind as a bat. Thank you.

Now Failed: device or resource busy

#

I'm sorry about the hand holding :(
[Desire Android Development] sibere:
Reboot in recovery and try again
[Desire Android Development] quad2012:
Just another noobish question, is this likely to get included in some roms or wont there be a way around doing it manually?
[Desire Android Development] danarama:
Thank you.

I get invalid argument:

~ # mount /dev/block/mmcblk0p2 /sd-ext
mount /dev/block/mmcblk0p2 /sd-ext
mount: mounting /dev/block/mmcblk0p2 on /sd-ext failed: Invalid argument
~ # dd if=/dev/zero of=/sd-ext/ext2 bs=1048576
dd if=/dev/zero of=/sd-ext/ext2 bs=1048576

C:\android-sdk-windows\tools>

I got invalid argument, but did the next line anyway and got thrown out of adb shell.
[Desire Android Development] sibere:
It worked for everybody. You may have missed something.

re-read the tutorials completely, and restart from step 1
[Desire Android Development] danarama:
OK thanks for your patience.

Its just I don't understand the commands I am typing as I'm only a Windows boy. I'm filling in the gaps as I go.

Will try again.
[Desire Android Development] mattiadj:
Please....look at image....I don't have words....

sent from the future
[Desire Android Development] sibere:
Just say thanks then :)

How much storage did you set?

What cpu speed?
[Desire Android Development] mattiadj:
Thank to you sibere and to Androhero for newbie tutorial.

2gb on 8gb class 4 SD with latest leeDroid at 1152mhz, performance setting and boost that you have made :-)

Can you tell me something about nandroid backup?

sent from the future
[Desire Android Development] danarama:
Ok tried twice more.

Definitely missing something. even tried deleting existing ext3 and still same.

I get stuck at:

Replace you old busybox exec with the new one. It's located in /system/xbin/

and:

copy this script to /system/etc/init.d

I exit adb shell as i only know the command adb push which I have to exit adb shell to do (although guide does not say to so this)

Then I re-enter adb shell to chmod

I suspect this is wrong but I'm giving up now.

Thanks for the support though.
[Desire Android Development] sibere:
Sure! I did a nandroid backup, and the ext partition is saved :)

try it yourself.

If you want to save space on your SD after backup, you can always ZIP the complete backup directory (went from 1.2 GB to 330Mb)
[Desire Android Development] mattiadj:
I have made two fat32 partition....as explained by androhero so I don't have any ext partition.I think this is a problem for nandroid backup, right?

Can I follow Androhero's tutorial also with ext3 partition?

Thanks!!!

sent from the future
[Desire Android Development] sibere:
What I'm calling the ext partition is the 2nd FAT32 partition with the ext2 file.

When you do a NANDROID backup, this file is saved.

Why don't you try yourself to do a backup and see what happens?

I don't recommend ext3. It's the slowest of the 3! If you want/need journaling, use EXT4. If not, EXT2.

There's a ton of kernels around here with ext2/3/4 support.
[Desire Android Development] mattiadj:
Uhm, so my 2gb partition is ext?

I'll try but how can I see if data partition is saved?

Thanks again :-)

sent from the future
[Desire Android Development] teorouge:
Thanks! :)
[Desire Android Development] sibere:
If you wipe in recovery mode, you will wipe the nand, not the ext2, unless you mount it over /data before doing the wipe.
[Desire Android Development] danarama:
Is that definitive? If I wipe data its in a factory condition. However, internal memory is back to 148. How does that work?

It doesnt go up until I nandroid restore sd ext

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

DeFroST FAQ... http://xdaforums.com/showpost.php?p=6622965&postcount=2
[Desire Android Development] iinga:
Not quite sure what you're saying here
[Desire Android Development] teorouge:
I'd like to know that myself.

If I select Full Wipe/Factory Reset in recovery mode, would I wipe the ext4 partition on SDcard? As I can read "Format SDEXT... done" in the process.
[Desire Android Development] danarama:
If I wipe data, all my apps are gone and its as if i did a fresh install of the rom. It reverts to NAND for internal memory. 148MB of 148MB free.

If I then do a restore of SD-EXT via recovery, its all back as normal.

Question.

If you do wipe data and it just shows NAND /data capacity, how can you then get it to recognise SD-EXT again, without restoring it via NANDROID?

Edit> how easy is it to swap an existing ext2 to ext4?
[Desire Android Development] bernabap:
Sebere I saw your post on melethron thread, and the fact they are emphasizing the alignment of the partition as you did first on this thread. I did try to follow the steps on the link you provide but the instruction they gave it is for only one fat32 partition. I got some question about how to align the second partition. If you could read my post #679 on page 68 and gave me any tips I will be very grateful. If you dont have time... it is ok I will understand. Thanks any way!
[Desire Android Development] sibere:
I repeat. If you wipe in recovery mode, you wipe by default the NAND /data but when you reboot, the unwiped ext is mounted and your data is back.
[Desire Android Development] sibere:
I just did EXACTLY the same for the 2nd partition than for the 1st. I don't get the reason why there should be a difference. Obviously you can't format with windows the 2nd partition. I did that with Linux.
[Desire Android Development] danarama:
Not for me.

I use clockwork mod. When using wipe data it states wiping data, wiping sd ext (

Maybe cache too) and all is wiped. Total internal memory reports 148 even after numerous reboots until sd ext is restored via nandroid for me.

Unless you're talking about the format data option?

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

DeFroST FAQ... http://xdaforums.com/showpost.php?p=6622965&postcount=2
[Desire Android Development] sibere:
My apologies, I didn't get you right. To me, a wipe was just /data, not sd-ext. If you format sd-ext, your 2nd partition is formated to ext2 or 3 or 4 (don't really know) and the ext2 file is deleted. So when you reboot, the 01data script has noting to mount and the NAND file stays has the default mounted FS.
[Desire Android Development] sibere:
I misread your post. Actually it's a very good point and I thought you were talking about formatting, not making the partition.

Well you must get you best calculator and check if the 1st sector of the 2nd partition is starting on a 128KB block or if you prefer, that the 1st partition is ending at the end of a 128KB block :) This is why i recommend using Fdisk.

I haven't check tho if aligning the 2nd partition to 128Kb is useful when using an ext2 file system with a 4096b bloc size, whether mounted directly or via a loop device.

This is mainly why I talk about optimizing the 1st partition on the OP and not the 2nd one ;)
[Desire Android Development] danarama:
Ohhhh. So a simple dd command followed by titanium restore would do the trick?

I assumed format sd ext would format the ext file to a fresh state. Guess it sees any 2nd partition as "sd ext", regardless of file system

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

DeFroST FAQ... http://xdaforums.com/showpost.php?p=6622965&postcount=2
[Desire Android Development] sibere:
SD-ext format will format the SD, not the file, and destroy any data on the 2nd partition. You will have to recreate the ext2 file manually. Remember that ext2 file is not really ext but /data :) If you just want to get you phone back to factory, wipe everything but sd-ext. then mount sd-ext and ext2 file over /data and wipe again /data.

You should keep your ext2 file (but not the data inside the file) this way and the data2sd hack.
[Desire Android Development] danarama:
Wicked. Cheers

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

DeFroST FAQ... http://xdaforums.com/showpost.php?p=6622965&postcount=2
[Desire Android Development] cordell12:
Has anybody tried this mod on any other HTC phones, like say the HeroC?
[Desire Android Development] danarama:
In the first post, I think that you will see that this is a variation of work that started on the hero

Theres a link too

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

DeFroST FAQ... http://xdaforums.com/showpost.php?p=6622965&postcount=2
[Desire Android Development] cordell12:
Would that be here? ^^^^^^

Thanks
[Desire Android Development] sibere:
I think the post I linked was for a G1 :)
[Desire Android Development] Lanbase:
I flashed the teppics v3 rom today, and installled. Data to SD with the installer zip made by iroironz and posted in teppics Rom threat.

http://xdaforums.com/showthread.php?t=773997&page=52

I reinstalled ALL backuped apps(user,sytem,data) with newly downloaded from market titaniaum backup, And all seemed to go okay. All my apps where there

and I have 882 MB free space on internal memory

Had 3 force closes and decided to reboot, after reboot my apps seem not to

be there anymore.

I still have 882 MB free space, so there must be 118 mb of apps cause I have 1 Gig data partition.

Anything I can do or check before doing a new Titanium restore?

grtz Lanbase

EDIT: did a titanium restore of only one app, rebootet and all apps are back know. Lots of FC tho on different apps,

I guess I will have to do some more testing before posting.... and report back later
[Desire Android Development] sibere:
Is the ext mounted with sync on?

Is there an e2fsck on boot?

Did u restore the full /data tree before any other restore?

I can't really help u coz I don't know anything about this script. :/
[Desire Android Development] Lanbase:
I have attached the script,

from what i can see the ext is mounted with sync on,

and acording to iroironz tepic74 init.d roms do an e2fsck on boot.

"*e2fsck_recvy in /system/bin (teppic74 init.d roms have this)"

after flashing the rom I downloaded Titanium from market and did

a batch Restore: missing apps + all system data

I gues restoring all system data wasn't to smart since the backup was made

from stock vodafone branded rom with latesr OTA update;

OTA_Bravo_Froyo_Vodafone_UK_2.33.161.2-2.10.161.2_releasektw1hp3xih34hkdn.

I think I am best of flashing the rom and data2sd all over again wich isn't that hard using the script, but will rule out any messing up caused by the full titanium restore.

If I still have problems then , I'll be back ;)

Edit: Could it be a kernel Issue?

I now have Kernel Version : 2.6.32.15-gf5a401c

htc-kenel@and18-2 #1

wich came with flashing teppics rom..
[Desire Android Development] cordell12:
I have 2 questions about this mod. First off I am going to try this on a HTC Heroc, firerat looked it over and said it should work, but make a nandroid :) So question 1 is when making my partitions what are the exact sizes I need to make? I have a 8 gig class 6 card. Second question, in my rom I have e2fsck, do I need to still push the e2fsck_recvy to system\bin, and if so do I leave the e2fsck thats already in my rom there or remove it?

Thanks for the help!
[Desire Android Development] sibere:
I'd say you must be right about kernel. I'm not sure that the genuine kernel supports loop and/or ext2/3/4.

If you kernel is adequate, you can try with rom manager to solve rights problems
[Desire Android Development] sibere:
I have a 8gb class 6 and I made a 7mb/1mb split for the 2 partitions. 1Mb for /data is enough considering that the /data NAND is only 150Mb :)

If you have e2fsck, then there is no need to install a new one. e2fsck_recvy is easier to install if you don't have already e2fsck because it has been statically compiled and you don't have to install the libs needed for e2fsck.
[Desire Android Development] Droidzone:
@Sibere,

Why have the ROM makers gone after DATA2EXT, rather than DATA2SD? Does it have any advantages over this one?
[Desire Android Development] sibere:
I dunno.

Maybe because data2ext devs are working on giving more I/Os.

They also moved to data2ext because they had the false information that DATA2SD is not safe. DATA2SD is safe because the system cleanly unmounts /data partition at shutdown.

However data2ext devs are working on making it more robust even in the event of a sudden power loss (batt removed).

ATM I'm happy with my data2sd because I have enough data space, it's faster than the NAND, it's safe (I never had data loss since I started to use it), it's simple and tunable: You can use or not the loop device, you can chose ext2/3/4 or any FS you like, but this means that you have to adapt the little script (01data) to your changes.

The main purpose for data2sd was space and a good level of safety. I/Os are a consequence.

data2ext devs are working more specifically on performances and safety if I'm not wrong :)

I have the feeling that for just a little bit more I/Os, data2ext is turning into a bloatware ;)

Anyway, anybody can make their own choice. Now you can choose between:

- Froyo A2SD

- App2SD

- DATA2SD

- DATA2EXT