yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] gregochan:
sorry, but i dont want to go throw the entire 128 pages, to look for the answer.

but can anyone tell me, after i installed this DA2SD, ( not fresh CM7, i got all my apps inside). But now its all gone, and when i use terminal to type the command, it keep telling almost everything is permission denied, can anyone help me?
[Nexus One Android Development] temasek:
Whatever command u perform u need to su first. Did u?

su
[Nexus One Android Development] g1sean83:
Lappy charger fried atm...so testing that is going to be tough, but it sounds like you hit the nail on the head there.

...ill let you know as soon as my new power cable arrives!

=D

Thanks!
[Nexus One Android Development] temasek:
The main reason why u flash DT after a rom before u reboot is to enable the DT not to rebuild dalvik-cache back to your actual /data and /cache.
[Nexus One Android Development] pdagenius:
What's the difference between the Darktremor script and Data2whatever please?
[Nexus One Android Development] mtw4991:
You didn't read any of this thread, did you? Just asking...

DT moves apps to the sdcard ext partition with an option to move dalvik cache also. Data 2 whatever moves the /data/data info there also and is only advisable with fast sd cards. ALL of this is after reading and learning enough not to ask basic questions in a very advanced thread.

Just saying...
[Nexus One Android Development] Metallan:
Damn, posted on the wrong thread...

Originally posted on the Hero CDMA... if an admin sees my post and can delete it, please do it.

Here's the link: http://xdaforums.com/showpost.php?p=12341420&postcount=673

Posting here since my issue is with a Nexus, and hopefully someone can give me a light:

Today I tried using the datasd command, and after the phone was rebooted, it was stuck on the boot animation.

I then tried to restore the backup I had made just before that, and now it loads, but when I try to run any a2sd command it says that the SD card is not mounted, however, on the SD Card settings of Android it shows the card as mounted, and even says how much space it's used and such.

All my apps are gone, and they show the default icon on my homescreens, and do not show at all on the drawer.

Tried doing a full wipe then restoring again, same thing.

Is there a way to know if my information is still somewhere and restore it back?

Any help will be greatly appreciated >_<
[Nexus One Android Development] temasek:
Did u use clockwork 3.xx to flash your DT script? If yes, your ext partition could have been corrupted.
[Nexus One Android Development] Metallan:
Yes I did, and I have done it for quite a while now. Didn't have any issue till now that I tried the datasd thing.
[Nexus One Android Development] temasek:
If u did a search, there are too many cases of users whom ext partition got corrupted by that.

I would suggest

1. Downgrade to CWM2.xx or Amon_RA Recovery

2. Check your ext partition or Redo your ext partition.
[Nexus One Android Development] Metallan:
Any quick guide to do the check?

Or actually... is there any way to restore it if it was corrupted?
[Nexus One Android Development] temasek:
Do you have a nandroid backup? If yes I suggest u restore. As for the ext partition, I suggest u redo it.

Its painful but ...... one friendly user (baseballfanz) also had that experience.
[Nexus One Android Development] pdagenius:
Well ok, my simple query maybe deserved your simple answer...

Perhaps I should have been more specific. I have read the technical details of both solutions however what is not clear to me, and maybe others who are not fully versed in the inward workings and efficiencies of Android, what are the advantages and disadvantages of each one. I haven't seen that anywhere. Am sorry if this is a basic question for this thread, but surely it is helpful to keep information relevant to the usage in one place.

For information, I have successfully installed Data2Whatever on my Nexus One with one of the CM7 nightly builds and it runs very well. I have a Class 6 SD card.
[Nexus One Android Development] mtw4991:
The advantage of a2sd is the n1 only had 196mb for app storage and this lets you partition your sd card to a larger size then tricks the os into thinking that the apps are stored internally. The apps data is still stored in /data/data so data2sd moves that as well which frees up additional memory. The disadvantage of both is that you might have slower performance if your sd card isn't fast enough. Also if your card dies, you have a problem so backup your sdcard regularly.
[Nexus One Android Development] Metallan:
I downgraded the CW to 2.5.x version, got into recovery and restored my latest backup.

Everything seems to be working fine, however, my phone reboots whenever I try to install or update an app.

Guess this means the EXT2 part really got corrupted =/
[Nexus One Android Development] temasek:
Yup.

Edit: try this first

In terminal

su

a2sd repair

If still cannot then redo your ext partition
[Nexus One Android Development] Metallan:
Well, thanks for the response.

Is there any chance that doing a convert-ext3 will help at all?

If not, do I have to backup my SD card, re-partition and restore everything to redo the EXT2 partition, or is there a way to just reformat the EXT2 part without affecting the other partitions?

Thanks again.
[Nexus One Android Development] temasek:
I'm using PC only so I just talk only pc not Linux.

I use PC partition utility. Most such utility can perform remove volume / create linux partition. It does not affect the fat32 partition in your sd card.

I'm not sure about Rom Manager. Maybe u can try it. I think there is a partitioning option.

Before u do anything, I suggest u backup your sd card first.
[Nexus One Android Development] Metallan:
Thanks.

I use PC too, so I'm gonna try what you just said.

Gonna backup the SD anyways then.
[Nexus One Android Development] Metallan:
Ok, so for those who showed interest and tried to help me: I did it!

Since after restoring the last nandroid it allowed me to use the phone and apps normally, but not install or update any app, I took advantage of that and used Titanium to backup all the apps, then backed up my whole SD on the computer, formatted it, re-partitioned it, did a full wipe (factory reset) on the phone, restored SD contents, re-flashed my ROM (CM7), re-flashed Apps2SD, re-installed Titanium, restored all the backups, rebooted into recovery, flashed Apps2SD again, and presto!

It was a lot of trouble and many hours of suffering (trying other things till one finally worked), but my phone is exactly like it was before I messed it up yesterday =)
[Nexus One Android Development] temasek:
DT 2.7.5.2-EXT4 Only (Modified)

http://www.mediafire.com/download.php?627la60uq0gachk

DT 2.7.5.3b4-EXT4 Only (Modified)

http://www.mediafire.com/download.php?9ed4b3j1ckofyk3

Pls note only try the above if u have EXT4 partition.
[Nexus One Android Development] CAL7:
ext3 vs. ext4

I am using Temasek's modified 2.7.5.2 on, what I am pretty sure is, an ext3 partition. I have four questions, some of which have been lingering in my mind for quite some time:

Other than mounting the card on a PC, is there a way from the phone to confirm my partition is ext3?

I have a large sd-ext partition on a Class 10 card (cheap, but nonetheless rated at Class 10). What are the pros and cons of converting to ext4?

If I stay away from /datasd, is it safe to use 2.7.5.4b04?

Is the reference to "low volume" issues the same low volume that is commonplace on WiFi calling, or a more general low volume problem?

Thanks!
[Nexus One Android Development] temasek:
1. DT and other system apps always report partition as ext2 even though you are on ext3/ext4, probably due to the "auto" switch. That's why I changed auto to ext4 in one of the file and now DT and external system apps now report it as ext4 in my modified script. I am not sure if there is any that correctly report your partition.

2. From wiki........

https://secure.wikimedia.org/wikipedia/en/wiki/Ext4

Last para says,

In response, ext4 in Linux kernels 2.6.30 and newer detect the occurrence of these common cases and force the files to be allocated immediately. For a small cost in performance, this provides semantics similar to ext3 ordered mode and increases the chance that either version of the file will survive the crash. This new behavior is enabled by default, but can be disabled with the "noauto_da_alloc" mount option.

3. I've tested, if u don't enable datasd on 2.7.5.3b4 in ext4, there is no low volume issue. But if u enable datasd, random low volume will occur and its across all media, ie notifications, ringtone, music, alarm, etc.

Feel free to correct me as I may not be correct. :)
[Nexus One Android Development] elgubbo:
hey guys:

i want to report a bug (dont know if it already has been posted here).

on the latest beta 2.7.5.3 beta 4 it seems like disabling swap does not delete the swap flagfile, but the a2sd flagfile.

because of that if the phone reboots it moves apps to internal memory which in some cases can lead to data loss.

any advices what to do next? :D

regards
[Nexus One Android Development] Disfigured:
ok, sorry if this is super noobish, but i cant seem to figure this out.

I'm running cm7 latest nightly and temesek's modified dt. CWM is version 2.5.1.4, and my ext3 is 1GB on a 16GB sdcard. I had between 12M - 18M internal free before i flashed dt. now it says I have 768k free and, of course, predictably everything else i try gives me either "No space left on disk" and /or "I/O error".

I've tried a2sd repair, fix permissions, and then i re-partitioned/reflashed with the same results.

Any ideas? Thanks.

Edit: Nevermind. I now have 56M free. really not sure what i did.
[Nexus One Android Development] temasek:
Removed.

New post here

http://xdaforums.com/showpost.php?p=12533976&postcount=1314
[Nexus One Android Development] TheNewGuy:
do you mean that the scripts you posted here do not include your tweaks for ext4?

also does the line of code you provided make a permanent change? or do I need to do it again after reboot?
[Nexus One Android Development] temasek:
Earlier I added variables but I reverted back to original state. No additional tweaks other than the performance boost command line is needed (I think).

As for the performance boost command line for ext4, its a one time command. Till u repartition again, you don't need to input it again.
[Nexus One Android Development] techspawn:
I installed today CyanogenMOD 7rc2 (HTC Buzz). So far so good it takes getting used to, but its not all that bad. The only thing missing for me is DT a2sd which i much prefer to the Google apps2sd implementation. I then installed 2.7.5.3 Beta 04 and everything went pfttt. The phone kept rebooting until i pulled the battery and restored my working wildpuzzle rom.

Does anyone know why it does that?
[Nexus One Android Development] TheNewGuy:
ok. what were the tweaks that you made? any others that might increase performance I could try?
[Nexus One Android Development] temasek:
From what I gather is not that good. So I rather not release.
[Nexus One Android Development] TheNewGuy:
so if I wanted to try this would I do it the same way as the other possible to performance increase.

like this....

tune2fs -o noauto_da_alloc /dev/block/mmcblk0p2

i am interested in learning more about the file system tweaks. thanks
[Nexus One Android Development] temasek:
That is already in by default. So no need for user intervention. As for the ext4 performance tweak is to enable data writeback.
[Nexus One Android Development] miguelm75:
Temasek, could you upload your scripts somewhere else or attach? Mediafire links are broken.

EDIT:

links are OK, there was problem with mediafire service. but after apllying ext4 scripts from post #1303 i still don't know, if something has changed...

of course "mount" command in terminal shows ext2 partition, while i've converted it to ext4, but i read in this thread, that this is normal. :-)

Quadrant Benchmark test doesn't show much difference neither. hmm...
[Nexus One Android Development] miguelm75:
what does exactly do this line of code?
[Nexus One Android Development] temasek:
1. Auto changed to ext4

2. Remove 05mountsd from /etc/init.d/

Basically existing script will report your mount as ext2 even though you are on ext3 or ext4. So by changing auto switch to ext4, your sd-ext will mount as ext4 and report also as ext4. Otherwise nothing else different from original script. All credit to tkirton, not me. I just modify to suit my needs. Install script credit remains tkirton.

That line of code change data to writeback instead of ordered (default). Writeback is considered performance booster for ext4 filesystem.

I'll try to mirror to another (if possible).
[Nexus One Android Development] temasek:
DT 2.7.5.2-EXT4 Only (Modified)

==> Mirror

DT 2.7.5.2-1-EXT4 Only (Modified)

==> Mirror

DT 2.7.5.3b4-EXT4 Only (Modified)

==> Mirror

DT 2.7.5.3b4-EXT4-B0 Only (Modified)

==> Mirror

Changes Made to Script

1. Change auto switch to ext4

2. Delete 05mountsd from /etc/init.d/

3. Change barrier=1 to barrier=0 only for DT-CM7-2.7.5.3b4-EXT4-B0-signed.zip <=== I'm using this :D

Known issue in DT 2.7.5.3b4

- Low volume bug across all medias.

- Temp but working solution ==> WIPE CACHE after u flash DT before u reboot. Thanks to mtw4991 for the solution!

Please try the above ONLY if u have EXT4 partition.

If you are using ext2/ext3, you may wanna see my post here. ==> http://xdaforums.com/showpost.php?p=11950587&postcount=674

To boost ext4 performance, you may wanna enable data writeback (default setting = ordered). I did not put into script as its optional. Note that this is a

ONE TIME

command input only. Only when you repartition the ext4 then you need to input again. Reboot to see the results.

Instructions for Inputing EXT4 data writeback.

1. From terminal or adb

2. Input the command as per the code below.

3. Reboot device.

su
tune2fs -o journal_data_writeback /dev/block/mmcblk0p2

Credit ALL to tkirton. I just amend the scripts to suit my needs :)
[Nexus One Android Development] miguelm75:
thank you, Temasek :-) xda users can always count on you. bravo!
[Nexus One Android Development] temasek:
I'm sorry. I had uploaded the wrong 2.7.5.3b4 modified file. So if u had downloaded it earlier, you may wanna redownload again.

Reason - The earlier file auto switch still auto :) -----> its the wrong file (pre-modified file) :eek:

Apologies.
[Nexus One Android Development] miguelm75:
no problem for me, i'm using 2.7.5.2-ext4. thanks anyway for the info :-)

it's strange, but only after rebooting phone twice it started to show info about ext4 partition. i was converting in Amon-Ra from ext2 to ext3 and without rebooting from ext3 to ext4. maybe that was the point.
[Nexus One Android Development] miguelm75:
very strange is, that after flashing in ClockworkMod Amon-Ra recovery it still reboots to ClockworkMod Recovery... also question is: it's safe to flash newest ClockworkMod Recovery with your scripts (these ones with ext4) or no?
[Nexus One Android Development] temasek:
I would avoid ClockworkMod Recovery 3.xx. As for the older CWM 2.xx I suppose its good. CWM3.xx has accumulated the reputation to corrupt your ext partition. Do a search and u will see many cases.

As for your Amon_RA Recovery flashing, I might think its a fake flash or something. If u wanna use Amon_RA Recovery, try fastboot flashing Amon_RA Recovery instead. It will definitely stick onto your recovery partition :)
[Nexus One Android Development] miguelm75:
that's what i expected you will say ;-)

earlier (on other ROMs) there was no problem with Amon-RA flashing. i was just curious, because it seems a little strange, but i mainly use ClockworkMod Recovery and that's enough for me.
[Nexus One Android Development] temasek:
LOL :)

If u love CWM then I suggest just stick to CWM2.xx till koush updates CWM to remedy the "issue", if he even recognize that there is one.
[Nexus One Android Development] robt772000:
Hey Temasek how do I write the code? tune2fs -o journal_data_writeback /dev/block/mmcblk0p2

I need a noobie lesson
[Nexus One Android Development] temasek:
In terminal, su first and copy & paste the code to terminal.
[Nexus One Android Development] robt772000:
thanks button clicked :)
[Nexus One Android Development] temasek:
Thanks for reminding me to edit the instruction on the code. :D
[Nexus One Android Development] robt772000:
I used terminal emulator and hit enter. I think it worked.
[Nexus One Android Development] temasek:
Definitely. :)

Your ext4 partition will now reflect as ext4 with data=writeback

I use "Android System Info" to view many informations, including mounts.
[Nexus One Android Development] robt772000:
One more thing. When you say "Note that this is a ONE TIME command input only. Only when you repartition the ext4 then you need to input again."

I did it the 1st time, checked and saw =ordered so I did it again then had a brainwave. Reboot! It worked =writeback. So does typing in the command twice do anything?
[Nexus One Android Development] temasek:
Reboot then it will refresh your status correctly. ;)
[Nexus One Android Development] Popples:
Hi.

I've DALVIK CACHE to sd, but I want it back on phone because, due probably to my sd card class 2, I've slow downs: which is the command to do that?

And is it better to do the ZIPALIGN or not????

Thanks.
[Nexus One Android Development] Wylker:
I've been running beta 4 alongside CM7 RC2 fine for 2 weeks or so. I am set on a 16gb microSD using a 4gb EXT4 and the rest for storage. I had run the command to move the dalvik-cache to the SD. Today I opened up an app and got a notification that "SD card has been unexpectedly removed". The phone had been running fine all day until then. The phone froze and now will not boot past the android X screen. I can access fboot and recovery. I tried putting enabling the usb mode in amon ra and my PC did not detect the SD card.

help :(

e; I tried the ext repair from recovery and it tossed an error. I also tried to just re-partition. It said the partitioning worked but I was still unable to mount /sdcard or work with the ext2 partition. Seems like I may have a dead sd or something. I'll try with my old SD when I get home.

e2; Seems like for whatever reason my 16gb died. It was pretty new is this common when putting ext4 partitions on these big cards?
[Nexus One Android Development] temasek:
I've successfully use DT 2.7.5.3b4 with datasd enabled using class10 SD Card. There is a sqlite tweak that improves the performance (especially for those using datasd enabled dt script). The improvements can be felt immediately.

Here is the sqlite3 lib tweak by iinga from xda

http://www.mediafire.com/download.php?bp4rbq4jcz27zsv

MD5: a818ea70c3a87e367656dfc1cc5d4df6

Instructions:-

1. Boot to recovery and push the libsqlite.so to /system/lib/ ......, or

2. Using Root Explorer, copy & paste to /system/lib/ ....(remember to change its permissions.....reboot is required)

When you flash a new nightly, your libsqlite.so will be overwritten. Hence in order to backup automatically between ROM updates, you can use this method.

1. Create a file named custom_backup_list.txt to /etc/

2. In the custom_backup_list.txt, add this line "/lib/libsqlite.so"

I've created custom_backup_list.txt here for download, if u wish to use it. You can either push to /etc/ or use Root Explorer and copy & paste to /etc/

http://www.mediafire.com/download.php?sd28cmxa5klf5z3

CREDITS ==>>> iinga from xda
[Nexus One Android Development] :
T,

Quick off-topic question

Which class 10 do you have

I just sent a Patriot 16gb Class 10 back bc it was DOA

Patriot acknowledges issues with class 10 and Android

May wait a few months before I try again, unless there is one with better success rate

Ken
[Nexus One Android Development] temasek:
I got this off ebay

http://cgi.ebay.com.sg/16GB-16G-mic...emory_Cards&hash=item483d930867#ht_4072wt_905

Speed tested passed with flying colours.

Presently using DT 2.7.5.3b4-EXT4 with datasd enabled and sqlite tweak. Its 90-95% responsive as compared to non-datasd performance. Its a trade-off for using datasd.

I've 2 GB EXT4 partition and almost 1 GB filled now. I'm filling more and more stuffs into it :D
[Nexus One Android Development] :
Wow T,

You are braver than me on an ebay sdcard purchase--glad it is working

Seller does have excellent rating

I need to venture past 2.7.5.2 soon--but need to research on correct way to do it

Not that good at pushing/copying system stuff

Ken
[Nexus One Android Development] temasek:
I study ebay sellers before buying stuffs :D

If u intend to use datasd, any assistance, just feel free to ask. I'll be glad to chip in. I'm into datasd for awhile now. No issues besides a slight lag and the low volume issue. I have to reboot till I get the volume back --- not that bad actually :eek:

I'm actually looking forward for tkirton to finish his work on DT 2.7.6.
[Nexus One Android Development] :
Thank You T
[Nexus One Android Development] ilos:
i'm using the same method since 2 days and it's amazing how my N1 is faster !

using DT-CM7-2.7.5.3b4-EXT4 By you :D and also SDCardSpeedFix3072KB
[Nexus One Android Development] temasek:
Balance your SD Speed fix read ahead buffer. The higher the buffer the slower the UI will be. U have to fix a balance between the two. (faster read speed vs UI responsiveness)

I tried all sorts of buffer but in the end, remained @ 128kb (default). Probably due to higher read ahead buffer affects UI responsiveness of datasd enabled devices more.

Not conclusive in my tests but atm I'm fixed @ 128 :)

Will test more when I've time.
[Nexus One Android Development] ilos:
i will test again @ 128 :D

btw all is very responsive @ 3072

Latest Fits build + your modified DT for EXT4 + datasd + cachesd + stock kernel @ 1113 + libsqlite modified = a new N1 :D
[Nexus One Android Development] Robdyx:
Could all this be integrated in a new OMG-this-is-really-awesome flashable zip?
[Nexus One Android Development] temasek:
You are right ilos! I'm on 3072 for 1 day already and quite satisfied with it so far. :)
[Nexus One Android Development] richua:
I have this same card and it busted on me tonight. If indeed they do acknowledge issues with class 10 and Android, I will request a refund rather than a replacement.

Based on your search, have you found any other good manufacturers? I am now using my old class 10 Kingston card. I got the Patriot because the Kingston doesn't write/read at class 10 specs, but now at least it's usable.
[Nexus One Android Development] ilos:
I can't... maybe someone with more experience than me can do it ...

Btw some of them are aleary in individual zip format ( can't provide links i'm on my n1....) DT modified by Temasek, sdcard fixe cache too...

Sent from my Nexus One
[Nexus One Android Development] temasek:
ilos,

Set DT's low memory killer to "Optimum low memory settings". Now very smooth UI with datasd!
[Nexus One Android Development] ilos:
I Will try @ home :p

Btw i also set all animations off with spare part and no lag no freezer, all applications launch very fast !

Sent from my Nexus One
[Nexus One Android Development] temasek:
Yup! I'm very satisfied with DT's datasd now.

VERY SATISFIED!!!
[Nexus One Android Development] Robdyx:
Would it work putting libsqlite.so in a system/lib folder and custom_backup_list.txt in etc/

inside the DT-CM7-2.7.5.3b4-EXT4-signed.zip

?
[Nexus One Android Development] :
This is a sticky from Patriot Memory Forum--use sdformatter or equivalent

http://www.patriotmemory.com/forums...SDHC-Class-10-on-Android-and-Windows-7-Phones

Class 10's in general are having high failure rates

I know this is off topic--so, I will leave it at that

EDIT: Sorry, forgot to post link