yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] TheNewGuy:
Ok thanks for the reply. I will work on it some more before I Post a logcat. I don't want to dirty up this thread any more than I already have and confuse other users.

Thanks again for your hard work!
[Nexus One Android Development] dgart08:
EXT2

I know it's a normal bug for A2SD to always display partition type as EXT2.

My question is... will there ever be a fix for this? I read several pages back that someone patched the app to fix this and show the user's correct partition type. Will it be implemented in a future release?
[Nexus One Android Development] dgart08:
DATA2SD

I have a question regarding DATA2SD and I'm a bit of a noob in regards to the /data folder. I'm currently running the following:

Class 6 SD w/ EXT4 Partition.

SD Card Speed Booster running at 2048.

Also running cachesd, zipalign, no swap.

My question is... based on my configuration/specs, will it be safe to run data2sd without experiencing any issues or slowness???

Thanks!
[Nexus One Android Development] temasek:
If u are using ext4 partition then read my post for modified DT for ext4.

http://xdaforums.com/showpost.php?p=12533976&postcount=1314
[Nexus One Android Development] temasek:
I would not recommend datasd if u are not using a real class10 speed sd card. U can try but I suggest u change your read ahead buffer back to 128. Check out the post link I provided earlier.
[Nexus One Android Development] dgart08:
Thank you very much :D
[Nexus One Android Development] dgart08:
I entered the command to modify writeback and got the following...

tune2fs 1.41.6 (30-may-2009)

is this ok?
[Nexus One Android Development] temasek:
I use "Android System Info" app to view informations, including mounts. You can use this or something similar and see your sd-ext mount and its variables. U should see data=writeback
[Nexus One Android Development] J.L.C.:
I'm running data2sd with the same settings (along with data=writeback and the modified libsqlite) with a class 6 card from CoreMicro - everything is running great!
[Nexus One Android Development] temasek:
Higher read ahead buffer may reduce UI responsiveness, especially for those using datasd.
[Nexus One Android Development] dgart08:
I downloaded that app just to check. It does not show writeback anywhere in the mounts section. Any ideas what went wrong
[Nexus One Android Development] dgart08:
I just downloaded that app just to confirm but it doesn't show writeback on any of the mounts. Any ideas?
[Nexus One Android Development] temasek:
Did u reboot?
[Nexus One Android Development] dgart08:
Works now. Thanks.
[Nexus One Android Development] temasek:
If you are into datasd, use the sqlite tweak. It will reduce most of the lags. I'm pretty lag free with the sqlite tweak and optimium low memory killer settings. Also remember the read ahead buffer, I suggest u play around with the settings. Higher = slow UI response. I remained mine at 128kb buffer.
[Nexus One Android Development] J.L.C.:
I'm at 2048 and the UI is nice and responsive.

I think my card performs faster than its rating though.
[Nexus One Android Development] fl_Indigo:
just installed dta2sd and i have a question:

i used normal a2sd within gb (cm7.0.0) and want to swithc to dta2sd.

whe i enter "a2sd reinstall" after completing the installation my nexus reboots by itself and after the reboot the space left on the ext partition is all the same than before starting the script

is there any special way to get all the apps out of .android_secure into the ext partition?

thanx!
[Nexus One Android Development] temasek:
DT will not move anything thats in your external storage (ie your froyo styled a2sd). You have to manually move the apps thats now residing in your external storage to internal (which is your sd-ext partition).
[Nexus One Android Development] fl_Indigo:
*doh* thanks, i figured it out a second ago :)

had to move dalvik and data before i could start with that 'cause otherwise i couldn't move any app back to internal... (out of space)

but thanks anyways!

edith: correct me if im wrong: internal is now sdext per default?
[Nexus One Android Development] temasek:
You are correct.
[Nexus One Android Development] dgart08:
memory setting disappears

I have a question...

I set my DT memory setting to "optimum", but every time i reboot my setting disappears. I can confirm in the DTGUI as well as using A2SD check. What gives? Is there a permanent fix for these settings???
[Nexus One Android Development] borisblack:
Anyone can explain me how now it works in my N1. So, got cm7 on my phone+all in signature, after first reboot wrote in terminal su (enter) a2sd cachesd (enter) reboot. According to legend, after applying DT a2sd all newly installed apps will be installed to my sd (got 512 ext3 partitioned with RA recovery) & by applying a2sd cachesd all dalvik also moved to sd. But after installing couple of apps I noticed that phone internal memory goes down really fast & I do not understand next – in CM settings – Applications – Install location checked Automatic. [pic 1] At SD I got all my installed (after applying DT a2sd) apps [pic 2] but when I enter any of it – it only have button Move to SD [pic 3] – & it is crazy..

so where i install my apps & why internal memory goes down
[Nexus One Android Development] djmcnz:
Your links/pics are broken.

Install the DT GUI from the market or these forums to see what's going on.
[Nexus One Android Development] borisblack:
strange, i see em well, anyways pics are just proves to what i wrote
[Nexus One Android Development] djmcnz:
Internal = SDExt

Install GUI to see if it's working.
[Nexus One Android Development] borisblack:
it looks like this (nothing changed)
[Nexus One Android Development] firerock:
You should set install location to internal (not automatic) in CM setting.

Also, on GUI, the 1st tab "Apps are on internal storage" means your apps are installed in your internal memory (not ext3/ext4). Click on it and it will change to "Apps are on SD" and it will move your apps to ext3/ext4 partition and reboot.
[Nexus One Android Development] jens1288:
Like Firerock noted, click the apps to internal and zipalign buttons.

when you were working in terminal did you didnt run

a2sd reinstall
[Nexus One Android Development] borisblack:
no, just cachesd
[Nexus One Android Development] temasek:
libsqlite.so tweak in a flashable zip

I've made a flashable zip file for the libsqlite.so tweak by iinga

Qn: What does this tweak do?

An: It increases IO performance & reduces disk consumption

libsqlite-tweak-V1-signed.zip

For users that do not have the custom_backup_list.txt, pls use this version.

- Add libsqlite.so to /system/lib/

- Add custom_backup_list.txt to /system/etc/

libsqlite-tweak-V2-signed.zip

For users who already have custom_backup_list.txt, pls use this version. You will have to manually add in the "/lib/libsqlite.so" to your custom_backup_list.txt

- Add libsqlite.so to /system/lib/

I've also prepared a flashable zip for those who wish to revert back to untouched CM libsqlite. You have to manually delete the custom_backup_list.txt in your /system/etc/

libsqlite-revertCM-signed.zip
[Nexus One Android Development] CAL7:
Temasek,

Since I started CM flashing, I have come to depend upon your advice. I've been away for a couple of weeks and now trying to catch up on this thread.

I have followed your recommendations to stay with Amon's recovery and DT 2.7.5.2 (as modified by you). With that combination, I haven not had any problems flashing nightlies. My ext is ext3.

Are you now recommending

DT 2.7.5.3b04 with your EXT4 mods

Using RA recovery to convert to ext4

your new libsqlite

moving datasd to sd-ext

?

Will that address the low-volume issues I, and others, have seen with 2.7.5.3? Can you summarize what has changed to allow you to now prefer the modified 2.7.5.3b04 over 2.7.5.2?

Is there anything else that I need to do to convert? Thanks again!
[Nexus One Android Development] temasek:
I've accumulated too many apps and games and its beyond DT 2.7.5.2 able to provide. I need apps' data to be transferred to sd-ext partition. Hence I've switched to DT 2.7.5.3b4.

Yes there is still low volume issue with DT 2.7.5.3b4 but its not that bad actually. Just reboot till u get your volume back to normal :eek:

I'm not recommending anything, just sharing with users what I am enjoying with tkirton's wonderful script. I've made very minor changes to reflect the mount as EXT4 with my modified script. Also with data=writeback for EXT4 and the libsqlite tweak, DT 2.7.5.3b4 is very smooth now. Yes there is still lag but very minor and very acceptable cuz I find the UI with datasd and all the tweaks very responsive.

The latest addition to my post was the flashable zip for libsqlite.so tweak. I should have created it in the first instance, but was lazy :D If you currently do not have any custom_backup_list.txt then you can just flash the libsqlite-tweak-V1-signed.zip from recovery to enable the libsqlite tweak. When updating ROMs, your tweaked sqlite will not be replaced by the new CM7 ROM.

Cheers :)
[Nexus One Android Development] Nick3d:
Thanks dude for this incredible script, now I think that my N1 will be with me for a very long time, since space for apps was one of the biggest problem!

Perfectly working on Enomther's ROM, with ext3 done from amor-ra recovery :D
[Nexus One Android Development] mtw4991:
Temasek,

I have a ScanDisk 8gb/cl6 card that tests out at 9.8-10.4, so it's a pretty good card. I'm still on 2.7.5.2 ext3 and thinking of moving to the new beta now that it is fairly stable with the tweaks. The only thing stopping me is that I really don't want to have to move everything to the pc, wipe, re-setup, etc. Any "easier" way to make the jump to beta4? Also, is a full wipe really neccesary as it is only the sdcard affected?
[Nexus One Android Development] temasek:
Upgrading from ext3 to ext4 via recovery will not wipe its data. But to be safe u may nandroid backup just your sd-ext partition.

No wipe necessary. Once u upgraded to ext4, just flash dt beta over your current rom. Then from terminal perform datasd.
[Nexus One Android Development] mtw4991:
ok, thanks...wasn't sure. Was going to increase the size of ext from 512mb to 768mb and thought I would need to wipe/reformat the sdcard in order to increase its' size. Not needed to reformat to increase size?
[Nexus One Android Development] temasek:
I recently resize my ext3 partition from 1gb to 2gb via windows pc using acronis home disk director. Then I proceeded to recovery and upgraded to ext4. No loss of data. Though I backup my sd-ext partition just to be safe.
[Nexus One Android Development] nitinvaid:
i have one problem after using this apps2sd

my homescreen widgets are not updating like battery monitor stuck at 80% whole day. and weather is same stuck at 32. to change current values i have to restart restart launcher pro
[Nexus One Android Development] Robdyx:
Does CM7 support swap? I have a Swap 2 partition, according to Partition manager, but I can't get it to work, should I repartition my sd in recovery (backing up, of course) and try again?
[Nexus One Android Development] temasek:
N1 does not need swap. In fact if u use swap, it will degrade your performance.
[Nexus One Android Development] mynameisjon:
I second that. swap killed my first 2 SD card.. never gonna make the same mistake thrice... (had to kill two sd cards to figure out it was swap lol)
[Nexus One Android Development] dekkon:
Im having some issues with data2sd and force closes and I dont quite know how to fix.

Im running temasek's beta4-ext4 tweak + the sqlite tweak. I ran data2sd and though everything seemed to boot up fine, running certain programs will cause others to FC (Google Services Framework, etc...). It also seems to cause a very long hang when the screen times out and I try to turn it back on. Im on a class10 sd card (10+Mb/s write / 25+Mb/s read)

Going back to nodata2sd seems to fix the problems. I just dont know what's wrong or how I could fix it.
[Nexus One Android Development] temasek:
Use Rom Manager to fix permissions
[Nexus One Android Development] dekkon:
Couldn't get Rom Manager running (FC), so I ran fix uid through Amon_RA recovery. Still no luck. ran fix_permissions from terminal and it looks like the /sdext is stuck read-only mode. I tried to change it to r/w in Root Exploror, but seems like no such luck.
[Nexus One Android Development] allofusjw:
Let me preface this by saying that i'm not, nor do i claim to be a developer. I do not have the knowledge or skills of temasek and i mean no disrespect. But, I have to say that I disagree with the above statement. While in the majority of cases swap may not be necessary on our N1's, to make a blanket statement that its not needed isnt completely accurate. I have searched and searched trying to learn how to enable swap for cm7 and what needs to be in the rom and kernel to allow its functionality and have seen temasek make that statement many times. if i play minisquadron and i have the browser with a couple tabs open and running in the background the result will be minisquadron, and the browser flushing themselves of all memory and closing. They dont force close, they just go poof. i have spent many hours reading the swap/anti-swap arguments and feel that in a situation like i described, swap would be helpful. It's not perfect and you may have to sacrifice performance in different ways, but you have the freedom to have more memory intensive apps open/cached without worrying about them closing and losing your info. it's a functionality i really miss having since enom's roms.
[Nexus One Android Development] temasek:
Its a possible ext partition corruption. See if u can repair sd-ext from recovery.
[Nexus One Android Development] temasek:
This is DT thread and was talking about linux-swap partition for DT. I am saying what I believe is true of mobile devices which have 512mb ram and above do not require a swap partition using DT.

Still the option for linux-swap is there for users to enable swap in DT, even for n1.

I wouldn't recommend linux-swap for n1 in DT and that is my believe.

Edit: Btw yours was a strong and good arguement. Thanks.
[Nexus One Android Development] allofusjw:
Temasek,

Thanks, I appreciate your thoughts and your work. I am using DT and have never been able to get swap working on it with cm7. I have tried it with 2 different SD cards, and tried partitioning with recovery and with gparted. A2sd swapspace says I don't have a swap partition. a2sd reswap does nothing. In terminal if I type df -h that also doesnt show swap. Tried a few other things too. Maybe I'm just missing a step somewhere but I'm pretty sure I've done my homework. I wont ramble on about it and don't wish to sidetrack the current conversation. Its just something that's been frustrating me. Keep up the good work. You help a lot of people with a lot of things and the effort is appreciated.
[Nexus One Android Development] ch33kybutt:
You'll need a kernel which has swap enabled (i.e. CONFIG_SWAP=y in kernel config file). Stock CM kernel does not have it. AFAIK, only IR's kernels and the one I compile for myself (check my sig) have swap enabled.
[Nexus One Android Development] allofusjw:
Thank you. I knew IR's kernels supported swap, but I somehow skipped trying his kernel with DT but without any other swap scripts or apps mixed in with them. I need to be a bit more methodical when trying stuff. I tried that combo after reading your post and sure enough it worked. Gonna give your kernel a try too. Thank you, thank you! Now I gonna go bang my head on the wall for awhile
[Nexus One Android Development] temasek:
U should also try his SS4N1 script with IR's CAVS Kernel.

Simply superb!
[Nexus One Android Development] g1sean83:
With DT v2.7.5.2 (and cm modded version) I get the following on a2sd command when flashed over latest fits' latest gigglebread....

"segmentation error" (x12)

"/system/bin/bash: /system/bin/launcha2sd: no such file or directory"

...this has happened on full nuked, full wipe, fresh installs, I have reDL all files and tried again and again, have now reverted to nandroid from previous build... (this has never happened before)

...any suggestions?
[Nexus One Android Development] djmcnz:
Check available space on system partition maybe?
[Nexus One Android Development] g1sean83:
Can I haz terminal command?

(excuse my n00bishness)

Thx
[Nexus One Android Development] djmcnz:
df -h

10char
[Nexus One Android Development] McFroger3:
I wish there was a fix for the low sound. I am missing calls and texts like crazy. Otherwise it's working perfect for me.
[Nexus One Android Development] temasek:
For now just reboot till u get your normal volume back.
[Nexus One Android Development] g1sean83:
I have the following output:

$ export PATH=/data/local/bin:$PATH

$

$ su

#

#df -h

Filesystem*************** Size***** Used Available Use% Mounted on

tmpfs****************** 202.8M**** 32.0K*** 202.7M** 0% /dev

tmpfs****************** 202.8M******** 0*** 202.8M** 0% /mnt/asec

tmpfs****************** 202.8M******** 0*** 202.8M** 0% /mnt/obb

/dev/block/mtdblock3*** 145.0M*** 145.0M**** 40.0K 100% /system

/dev/block/mtdblock5*** 196.3M***** 4.8M*** 191.5M** 2% /data

/dev/block/mtdblock4**** 95.0M**** 55.1M**** 39.9M* 58% /cache

/dev/block/vold/179:1

************************ 14.3G**** 13.2G***** 1.1G* 93% /mnt/sdcard

/dev/block/vold/179:1

************************ 14.3G**** 13.2G***** 1.1G* 93% /mnt/secure/asec

#

After restoring stable nandroid it gives:

$ export PATH=/data/local/bin:$PATH

$su

#df -h

Filesystem*************** Size***** Used Available Use% Mounted on

tmpfs****************** 202.9M**** 32.0K*** 202.9M** 0% /dev

tmpfs****************** 202.9M******** 0*** 202.9M** 0% /mnt/asec

tmpfs****************** 202.9M******** 0*** 202.9M** 0% /mnt/obb

/dev/block/mtdblock3*** 145.0M*** 144.8M*** 172.0K 100% /system

/dev/block/mtdblock5*** 196.3M*** 138.0M**** 58.2M* 70% /data

/dev/block/mtdblock4**** 95.0M***** 6.9M**** 88.1M** 7% /cache

/dev/block/mmcblk0p2*** 572.2M*** 485.7M**** 56.0M* 90% /sd-ext

/dev/block/vold/179:1

************************ 14.3G**** 14.0G*** 315.1M* 98% /mnt/sdcard

/dev/block/vold/179:1

************************ 14.3G**** 14.0G*** 315.1M* 98% /mnt/secure/asec

#

Any help or resolve is greatly appreciated...this is the first time I have run into any kind of problem with a2sd since early CM G1 days
[Nexus One Android Development] mtw4991:
made the jump to beta04 and no issues currently. I did the following:

1 made sure enough room on sd-ext to hold /data/data

2 nandroid backup + separate backup of sd-ext partition

3 copied all contents of sd card to pc just in case

4 flashed dt beta04 over rom and rebooted

5 flashed libsqlite tweak with system/etc/custom script and reboot

6 ran a2sd datasd command in terminal, rebooted

7 ran fix_permissions, rebooted

81mb left on sd-ext4, 189mb on /data and smooth n stable so far. no data lost on sdcard (thanks for the help Temasek!)

Did I miss any tweaks or anything?
[Nexus One Android Development] mynameisjon:
Temasek, for some reason, the file you posted

"DT 2.7.5.2-EXT4 Only (Modified)"

seems to be afflicted with the low-volume bug. Dunno if i'm slow, but first time I'm noticing it.
[Nexus One Android Development] borisblack:
Have couple of questions:

1. If i use temasek moded DT A2SD with CM7, what must be checked at CM settings – Applications – Install location?

2. If i use the regular DT A2SD, what shell i write in terminal to have all my apps & dalvik on SD, & also - what must be checked at CM settings – Applications – Install location?
[Nexus One Android Development] mtw4991:
1. uncheck "allow application moving" and set install location to internal, not automatic.

2. in terminal run the following and note the phone will reboot twice:

su (to get superuser permissions)

a2sd check

a2sd reinstall

a2sd zipalign

a2sd cachesd

also note the CM settings from #1
[Nexus One Android Development] temasek:
Enable ext4 data=writeback missing from your list........
[Nexus One Android Development] temasek:
Yes. The low volume bug is originated from the actual DT 2.7.5.3b4. Temp solution is reboot till u get your normal volume back. That is the only bug I found in this beta, other than that it works great.
[Nexus One Android Development] mtw4991:
quick and easy way? at work and don't have time to search, sry.

btw, 1925 Quadrant with these installed, my highest EVER!
[Nexus One Android Development] temasek:
From terminal

su

tune2fs -o journal_data_writeback /dev/block/mmcblk0p2

Reboot to reflect the changes.
[Nexus One Android Development] mtw4991:
T, thanks, I search and found it. Installed via terminal and rebooted then had to reboot again to get sound back. Where to look to verify it has been changed from ordered>>writeback?
[Nexus One Android Development] temasek:
I use "Android System Info" app to view my infos and mounts.
[Nexus One Android Development] mtw4991:
I installed Android Sys Info and it shows data=writeback but it also shows this:

-/sd-ext

/dev/block/mmcblk0p2 ext2 rw,noatime,

nodiratime,barrier=1,data=writeback

Is this showing that I'm mounted as ext2, not ext4? how to see if mounted as ext4?
[Nexus One Android Development] temasek:
What DT script u using?

Use my modified

http://xdaforums.com/showpost.php?p=12533976&postcount=1314
[Nexus One Android Development] mtw4991:
DTapps2sd-2.7.5.3-beta04-signed.zip from the OP I think
[Nexus One Android Development] temasek:
Lol....no wonder. :p
[Nexus One Android Development] mtw4991:
yeah, was in a rush, lol. So I will just flash yours over the other one. I don't need to re-flash the libsqlite-tweak-V1-signed.zip or re-do the writeback code again, correct?
[Nexus One Android Development] temasek:
Yup, that's correct. Just flash modified dt over current rom.

libsqlite-tweak-V1-signed.zip will add custom_backup_list.txt to your /system/etc/ so when u flash a new nightly, your tweaked libsqlite will be backup and not overwritten by the new nightly libsqlite.Similar to what CM ROM does for its gapps backuptool but its a custom backuptool for users to input what u want to be preserved inside your /system partition.

As for the data writeback, its written into your EXT filesystem. So only when u perform a repartition then u require to do a data writeback again.
[Nexus One Android Development] mtw4991:
Now shows ext4 as correct partition. Thanks, bro. One last question as I'm lazy and don't have a lot of time:

I know I don't need to redo the writeback code when flashing nightlys, but do I have to re-flash the libsqlite zip along with the nightly rom+kerneo+DT script?
[Nexus One Android Development] temasek:
I just edited my post above yours.

Read it bro. :eek:
[Nexus One Android Development] mtw4991:
You just racking up the Thanks! counts, lol :) Thats what I thought but wasn't sure
[Nexus One Android Development] mynameisjon:
was wondering, did you modify the script with any additions from 2.7.5.3? since you say the bug originates from that version, I don't see why the 2.7.5.2 file would be afflicted with the bug.. perhaps we can find the actual cause of the bug...
[Nexus One Android Development] temasek:
The low volume bug only pop up in the DT 2.7.5.3betas. The .2 release does not have the bug.

From catzilla of cyanogenmod forum, he has this theory.

" have a theory that the bug may be cause by a2sd e2fsck'ing the ext partition at boot, which results in the boot taking more time and some values possibly get set too low. From what I gather, the fix is easy once we find out how to set the system volume. Simply issue the command to set the volume after ext has been fsck'd and we're set. "

That possible fix is out of my league. So I'm patiently awaiting for tkirton to release his new DT version. Tkirton is revamping DT and possibly one of the reason is the low volume bug.

From tkirton, 7 hrs ago.

" Darktremor Apps2SD Long overdue update: Sorry everyone...been busy with home and work. I'm working on a complete rebuild of the code (2.7.5.3 is too complex) to try to simplify it...hopefully this will reduce or eliminate issues. I'll let you know when I have it ready for testing."