yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] endiz:
Hey, great app! Can't wait to actually get it working ;P

I flashed the zip on a fresh copy of CM 6.1. I moved the dalvik cache to sd by issuing the "a2sd cachesdreset" command.

- I ran the ext2 > ext3 > ext4 conversions within RA recovery, but in a2sd check it shows the parition is ext2 still. Is this a bug? Is there another way I could check the FS?

- When I installed google earth from market, my phone storage jumped from 190 to 177 MB within Settings > SD card & phone storage > Internal phone storage > Available space. Is this correct? Shouldn't the phone storage stay the same with both app data and dalvik moved to SD?

Thanks for the help!
[Nexus One Android Development] temasek:
Moving dalvik-cache to sd is "a2sd cachesd". U did the opposite .....
[Nexus One Android Development] endiz:
Here is the description of cachesdreset from the "How to install" post:

a2sd cachesdreset (move dalvik to sd card and clears contents of dalvik-cache)
[Nexus One Android Development] temasek:
Thank you for your lesson.

But .....

Your objective is to move dalvik-cache to sd as per your post.

Enough said. Ty. ;)
[Nexus One Android Development] denteno:
I've just noticed that you released a new version

I've read the change log but I didn't understand what's actually improved

Well the new version save more space of my phone memory ??

And if I'm already I user of a2sd how do I upgrade to the new version ?? Just flash it over the old one ?
[Nexus One Android Development] temasek:
There should not be an issue flashing the new DT script over your old one.

New script adds /data to sd-ext but the data to sd is not activated by default.
[Nexus One Android Development] denteno:
How to activate it ?
[Nexus One Android Development] ilos:
mmcqd process take 100% CPU usage with datasd enable...

i'm using CM7 Nightly
[Nexus One Android Development] temasek:
If currently u are already using original DT script, simply go back recovery and flash the new script or after every flashing of rom before u reboot. No commands to activate are necessary for u.
[Nexus One Android Development] temasek:
U are brave! Kudos
[Nexus One Android Development] :
I believe DT always shows ext2--did for me--haven't checked lately

I used Mini Partition Tool Wizard one time and it showed as ext3 even though DT showed 2. Wouldn't worry about it.

Ken
[Nexus One Android Development] pc2828:
Does your battery drain super fast and charging takes longer than before? My battery is terrible after enabling datasd.
[Nexus One Android Development] tkirton:
No...remember, your program data and cache files are still on internal storage (that's in /data/data).

You can try a2sd datasd to move the /data/data directory to the SD card (it's experimental, so I can't guarantee the results). That will free up more internal storage space.

As for the ext2 issue, the mount command uses an -t auto switch, so it is suppose to determine the partition type and mount it. Since Darktremor is reading the partition information from /proc/mounts, the OS is reporting it incorrectly. Unfortunately, it isn't something I can fix as that's the OS part.

If the setup works, then I wouldn't worry about it.
[Nexus One Android Development] tkirton:
You're both correct.

There is two commands that can be used to move dalvik-cache to the SD card (and oddly, they both run the same code with a very minor difference).

cachesd - Moves the dalvik-cache to the SD card (this moves the contents of dalvik-cache to the SD card)

cachesdreset - Moves the dalvik-cache to the SD card and erases the contents of the dalvik-cache.

The difference between the two codes is the following lines (these are from the upcoming Darktremor Apps2SD 2.7.5.3 Beta 03):

if [ $a2sdcmd == "cachesdreset" ];

then

dcmove=0

fi;

...and...

if [ $dcmove == 1 ];

then

echo -e "[ ] Moving $dcsrc to $dcdest" | $tee

$bbmv -f $dcsrc/* $dcdest/ | $tee

fi;
[Nexus One Android Development] reubenjack:
Hi, the datasd works fine and i am using it in evil nxsense..Sometime i get force close on all applications including gmail,market and talk, i know this is experimental but previously i was using leo froyo rom and even on that i had similar problem however in leo parts there is a fix for it and once it is applied everything works fine...i just wanted to know if we could add that on to any rom.
[Nexus One Android Development] blahbl4hblah:
I think you can, because I was looking through some posts and it seems to work for other phones as well. I'm using it on Rod's MIUI and it's just WOW haha

3% of data being used and everything else is mostly in sd-ext

for CM7, 2% of data used
[Nexus One Android Development] th1rt33nth_w4rr10r:
using CM7, I tried looking at the commands available with 'a2sd help'.. however, the command tried moving my apps from SD card to internal storage instead of giving me the list of commands, and now I lost some of my apps (because of insufficient storage).. :(

now I'm in the process of re-installing all my apps.. strangely, the settings are intact so I don't need to login to the apps I use (e.g.: foursquare)
[Nexus One Android Development] th1rt33nth_w4rr10r:
just fyi, I experienced the same thing just now, the volume is really lowered down even in maximum.. flashed the script again, and it's fixed.. hope you can found out something.. :)
[Nexus One Android Development] houzuoguo:
Hi DT :)

I ran the Beta 03 and so far it's smooth and nice,

However I ran "a2sd cachesdreset" command and it didn't work, returned me an error message saying.. "unknown command" something like that~

So I typed "a2sd help" and... well, it returned "Moving applications..." message instead of help info. My phone then got lots of FCs and I nandroid restored.
[Nexus One Android Development] th1rt33nth_w4rr10r:
that's the exact problem I encountered just now using beta 02.. however, I didn't have a nandroid backup, so I just reinstall everything.. :P
[Nexus One Android Development] ilos:
That was a kernel issue ...

Sent from my Nexus One
[Nexus One Android Development] temasek:
So how is the datasd?
[Nexus One Android Development] reubenjack:
Thats gud coz its working on evil nxsense as well, but only it force close most of the time with all the applications, so is it possible to add leo parts to evil nxsense by any chance. coz leo parts has a fix for this force close.
[Nexus One Android Development] pierissimo:
I flashed this script because of I wanted to move dalvik on cache partition...

I have no ext3 partition in sdcard.

Result? /data/app and /data/data linked into /sd-ext/ that does not exist.

I lose everithing.

damn
[Nexus One Android Development] temasek:
U nid an ext partition .. :(
[Nexus One Android Development] pierissimo:
ok, but, i wanted only to move dalvik to cache partition... absolutely no sdcard....

I will look for another way to do this...

thanks
[Nexus One Android Development] temasek:
Cache partition already includes system app's dalvik-cache for many roms. There is slight advantage to move rest of dalvik-cache to cache.but frankly I've tried but I don't see.much of a use. Dalvik-cache to sd is a better choice, at least to me.
[Nexus One Android Development] pierissimo:
Not in cyanogenmod 6.1 .

The advantages to move dalvik on internal cache partition, is the i/o speed compared to sdcard.
[Nexus One Android Development] temasek:
U are right but I don't feel the difference since I use DT with dalvik-cache to sd. No lag at all. Anyway good luck to your find.

Cheers. :)
[Nexus One Android Development] pierissimo:
I will try.

thanks :)
[Nexus One Android Development] tkirton:
Sure...if you can give me a link to where it discusses the fix, I'll look at it and add it to Beta 04 (giving the developer of Leo Froyo credit, of course).
[Nexus One Android Development] tkirton:
That's easy:

a2sd cachepart

The dalvik-cache and the applications code are separate from each other...you can move the dalvik-cache to the /cache partition using that command above without requiring you have an EXT partition.
[Nexus One Android Development] tkirton:
First off, boot protection would've kicked in and prevented anything from going to /sd-ext (no mount).

Second off, /data/data has to be executed with a2sd datasd to activate, similar to how you have to run a command to get dalvik-cache to move to the SD card.

So, now the question is, what commands did you use right before you ended up with no programs?
[Nexus One Android Development] tkirton:
bump---new version available
[Nexus One Android Development] mtw4991:
Format? :p, j/k. I don't see how you can wipe all of your programs without intentionally trying. Try putting the sd card into your pc or mount thru recovery and see if you can see apps on the sd card with your pc in android.secure.
[Nexus One Android Development] abramme824:
i flashed the beta 2, after setting up my partition by following the directions. using miui 1.21.2 the newest miui rom that supports apps2sd. my phone is stuck at the white screen.

somebody help please...
[Nexus One Android Development] temasek:
Downloaded b4 your bump. ;)

Thanks!
[Nexus One Android Development] tkirton:
I've said that at the office more than once:

"You really want to know how to fix your program? Go to a command prompt and type Format C: /S. That will fix that and every other problem you have with your computer."

The only way I know you can "lose" your programs is if the programs were on the SD card and, on next boot, the EXT partition didn't mount. Boot protection would reset everything back to internal storage and set the NoApps2SD flag file. In order to "get your programs back", you would have to execute a2sd reinstall, provided that the EXT partition was mounted.
[Nexus One Android Development] mtw4991:
IIRC, Miui required an older version of DT....2.7.5.1 I think. Flash rom, flash a2sd, reboot.
[Nexus One Android Development] abramme824:
how do I get the older version?
[Nexus One Android Development] abramme824:
found the 2.7.5.1 version with a google search, thanks brother man for the help. much appreciated
[Nexus One Android Development] endiz:
FYI, seems like "a2sd help" runs a different command. It moves apps to SD then reboots instead of showing man.
[Nexus One Android Development] SuperOlas:
Confirmed that a2sd help actually runs a2sd remove instead :).
[Nexus One Android Development] Chahk:
Ouch. That's not very helpful ;)
[Nexus One Android Development] djmcnz:
First rule of apps2sd:

Don't ask for help.
[Nexus One Android Development] zenzip:
wrong post sry.
[Nexus One Android Development] retaliator:
Unfortunately my boot stays at the end of this procedure freezing in the first bootscreen.

I can pull my battery and go in recovery but that is not the solution when I reboot the same result. (initial cross bootscreen) :eek:

I restored my backup now.

I tried again with wiping cache and dalvikcache and flashing the latest stable version of this a2sd. After that the reboot went well now.
[Nexus One Android Development] rickh925:
Kernel does not support EXT3 partition

I would have thought that a search for "does not support" would have turned this error up but no luck. I am on CM7 (see sig below) and am running into the question asked by a previous post. a2sd check shows that I am running ext2. Someone responded that a2sd does not show this correctly. I thought that I'd just convert to ext3 regardless and ran

a2sd convert-ext3

This produced the output including "Kernel does not support EXT3 partition. Cannot continue."

Does the latest CM7 WM kernel not support ext3? What tool would be best for checking the format of the sd partition used by a2sd? I tried df in terminal but can't seem to make it show the format type.

Running a2sd 2.7.5.3 beta 03
[Nexus One Android Development] rickh925:
X does not show in CM7 a2sd check

When I run a2sd check I see the brackets where the indicator should be to show if setting is correct, correct but optional, or incorrect but in the [] there are no characters. All I see is either [] or [ ], no space or with a space respectively.

Someone over in the CM7 beta post said something about an incorrect code page but I don't know if they meant in DT or CM. Is anyone else having this problem?
[Nexus One Android Development] djmcnz:
Yep, for some time.

I just got used to it, like the ext-type thing. A good guess is just as sound as a good report right? ;)
[Nexus One Android Development] tkirton:
I know...I broke it by accident. Didn't see it until this morning.

Redownload Beta 03 again and it will fix the issue. The version number should say "2.7.5.3 Beta 03a"

My apologies on that. I wrote an entire apology on the Darktremor's Development Group on Facebook for this.
[Nexus One Android Development] tkirton:
That's because it was suppose to be running Busybox More and I, for reasons that even I can't even explain other than sheer stupidity, repointed the code to run the Bash shell.

Download 03 again and it will fix the issue. The version number will change to "Beta 03a"
[Nexus One Android Development] tkirton:
Wait a second...if that's the message with the "[X]" on it, the message actually states that either it doesn't support it or you are already running an EXT3 partition. The code returned from the tune2fs command doesn't distinguish whether the error was because the kernel didn't support it or you already had it installed. It's just exit code 1, which is failure.

Run a2sd check to confirm this...that program will go through the /proc/filesystems file and check to see what the kernel states it supports. If it says "EXT3", then the problem is the mount is reporting back incorrect information (you can validate that by typing "busybox cat /proc/mounts", which will list your mounts and what the kernel mounted them as).
[Nexus One Android Development] pc2828:
download link is still Beta 2

correction - link on main page correct
[Nexus One Android Development] rickh925:
a2sd check

Shows that the Partition Type is EXT2. I don't see a list of supported file systems from that command.

cat /proc/mounts
...
/dev/block/mmcblk0p2 /sd-ext ext2 rw,noatime,nodiratime,barrier=1,data=ordered 0 0
...

Some place I remember seeing that my current kernel supported ext2, ext3, and ext4 but I can't find it now. :(

I am running DT 2.7.5.3 Beta 3a BTW.
[Nexus One Android Development] djmcnz:
Dude, don't kick yourself so hard, its a beta!

Bro, you have too many + points already. How many handset upgrades and $ have you saved us!
[Nexus One Android Development] britoso:
Nice job with the new commands :)

datasd is very useful (i'm at 83% usage now), I'm guessing it symlinks /data to /sd-ext/data(or similiar) so existing recoveries will be able to clear /data as normal, right ?

91% of 700MB EXT2 for apps used (close to 300apps)... all thanks to you :cool:
[Nexus One Android Development] djmcnz:
I agree, there's demand for it. I've started supporting it in my rom. Thanks T!
[Nexus One Android Development] EnhancerFIN:
Temasek, you were saying that using cachesd -command is a one-time thing, and when flashing a new nightly the dalvik-cache stays on sd as long as I flash Apps2sd after the nightly without booting in the middle of it.

For some reason, mine doesn't do that. If I wipe dalvik-cache before installing a nightly+kernel+apps2sd, my dalvik-cache is not on the sd after boot. I'm using clockworkmod-recovery, could that be it? The latest version of Apps2sd in use.
[Nexus One Android Development] temasek:
Doh! cachesd is a one-time thingy IF one remembers to flash the DT script after every ROM before a reboot. And yes its the smarter way to do it rather than keep having to use commands after a nightly flash.

I usually never wipe dalvik-cache but last nightly build I did, no issues. The following are my steps, shouldn't be any difference. I am using DT 2.7.5.3 beta2 with CM7 Nightly Build 15

- Boot to Amon_RA Recovery

- Wipe cache/Dalvik-cache (usually I don't perform this step)

- Flash CM7 Nightly Build 15

- Flash DT 2.7.5.3 beta2

- Reboot

Took a good couple of minutes to boot but all is good when its up and running.

Maybe u wanna download the latest DT script and try again.
[Nexus One Android Development] EnhancerFIN:
I have the latest. What I do differently is that I have cw-recovery, I wipe both caches always and that I flash kernel after rom (before DT 2.7.5.3 beta3a)

Could it be the recovery?
[Nexus One Android Development] temasek:
idk for sure cuz I don't use clockwork. Worth a try.
[Nexus One Android Development] blahbl4hblah:
Does it matter which one you use?

I didn't think it'd be different
[Nexus One Android Development] temasek:
You should be right but I don't use clockwork so I didn't wanna confirm.
[Nexus One Android Development] blahbl4hblah:
Coming from a mytouch 3g, all i know is that Amon_ra flashes better while clockwork wipes better, I don't know if that's the same for nexus one
[Nexus One Android Development] temasek:
I've read that clockwork wipes poorer than Amon_Ra, at least in dalvik-caches. I may be wrong though.
[Nexus One Android Development] tkirton:
To see a list of supported filesystems, type:

busybox cat /proc/filesystems
[Nexus One Android Development] tkirton:
I don't know anything about that...I do know there are more problems with implementing Darktremor with Clockworks than with Amon_RA. I use Amon_RA myself, has more features.
[Nexus One Android Development] temasek:
Thanks for the insight. :)
[Nexus One Android Development] blahbl4hblah:
I just had a question for the low memory killer. Which setting would be best to use?
[Nexus One Android Development] tkirton:
When I'm using it, I use the aggressive setting.
[Nexus One Android Development] blahbl4hblah:
Oh okay I was thinking that the ultimate would've been better? Hows your phone running on aggressive?
[Nexus One Android Development] houzuoguo:
Thanks for the beta3a update :)
[Nexus One Android Development] tkirton:
Right now, I'm not using the setting due to the constant flashing and testing I'm doing with 2.7.5.3...but when I was using it, it ran pretty good.

Ultimate setting is okay...but I've heard that there may be programs that do sync may actually close prematurely...although I never had that happen to me.
[Nexus One Android Development] xavier7:
can I just ask.. what do you guys see in your terminal app after you done any command in a2sd?

Before my phone reboots, i always catch a glimpse of the 2nd last line saying something like that:

unmounting EXT file system

Unmount: can't unmount /ext device or resource busy

cant get the whole sentence... its too fast. lol..

is this normal or abnormal?
[Nexus One Android Development] ratson:
maybe you shall try AutoKiller, it is a dedicated app to handle minfree values
[Nexus One Android Development] ratson:
I have a strange issue:

and later

I use pershoot's latest N1 kernel, but my sd-ext is always mounted as EXT2 (it was originally formatted as ext3 or ext4 i don't remember well...)
[Nexus One Android Development] endiz:
I started testing the datasd command, and everything seems operational. I will report back if I have any issues.

Why does it still have the experimental tag? Are there known issues with moving /data/data ?
[Nexus One Android Development] pc2828:
I'm running datasd for the second time and both times I notice substantial lag and Market very slow downloading apps. Running CM7 latest nightly.
[Nexus One Android Development] endiz:
What class is your microsd card? I'm using Patriot Signature Flash 16GB microSDHC Class 10 (PSF16GMCSDHC10)
[Nexus One Android Development] pc2828:
I'm using RiDATA Class6 16GB Micro SDHC Model RDMICSDHC16G-LIG-2

Also battery appears to drain quicker and charging takes longer. It might be related to:

http://xdaforums.com/showpost.php?p=10864518&postcount=816

According to this post:

mmcqd process take 100% CPU usage with datasd enable...

i'm using CM7 Nightly
[Nexus One Android Development] denteno:
i've just installed the new version on my CM 6.1.1 nexus one

and enabled datasd and everythings works fine

BUT , THE VOLUME OF THE DEVICE BECAME VERY VERY LOW !!!!!!!!

although its on the max level !!!

what to do plese ?

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

removing the battery will fix it
[Nexus One Android Development] endiz:
I was having some issues with Superuser... it was FCing each time I launched the app (but it was giving other apps su permissions fine). I ran the fix permissions options within Rom Manager, and this solved the FCing.

tkirton: Maybe running the fix_permissions command after moving /data/data will fix some issues other people were having?
[Nexus One Android Development] tkirton:
It's normal in a way. Those messages occur right before the phone is told to reboot. It's trying to unmount the EXT partition, but the partition may be busy doing something else.

The idea behind trying the unmount is to try to cleanly unmount the partition, which minimizes any threat of lost data due to corruption. It's not that important since e2fsck runs on boot anyways and checks the card.
[Nexus One Android Development] tkirton:
I can certainly add that into Beta 04. It's designed to do a move, which is suppose to copy the permissions over...but it doesn't look like that's working as well as it should.
[Nexus One Android Development] tkirton:
The speed of the SD card is going to matter with the datasd option. The reason for this is that data is constantly written to /data/data and, since it is moved to the SD card, the card will slow down the phone if it isn't at least a class 6.

Dalvik-cache slowdowns are noticeable when you have to rebuild the cache.

App slowdowns are not that noticeable at any card speed.
[Nexus One Android Development] tkirton:
The experimental tag is there until this option is proven out. The experimental tag will more than likely be removed at 2.7.5.3 Final.
[Nexus One Android Development] tkirton:
That looks like a bug. I'll take a look at it.
[Nexus One Android Development] tkirton:
It symlinks /data/data to /sd-ext/data.

As for recoveries, clearing /data should break the link...but it will also clear the .datasd flag file (along with every other flag file Darktremor creates), so when you reboot, it will act as if you never moved it. The only one that will be relinked on boot is the /data/app and /data/app-private.

I will check to see if the folder on the SD card gets erased before the move. If it doesn't, I'll add that in so there isn't issues when moving.
[Nexus One Android Development] ratson:
if you need more info just le me know. my ext partition is always mounted as ext2...
[Nexus One Android Development] xavier7:
Thank you very much for the reply!
[Nexus One Android Development] k3vink3vin:
Same here, my EXT partition is formatted as ext4 via Amon's recovery v2.2.1

Running CM7 nightly #10, IntersectRaven's CFS kernel, although I am still on 2.7.5.2.
[Nexus One Android Development] ultima888:
Oh...I thought this was a problem with CM and not DT a2sd....

Yea, basically I have the same setup except I have ext3 instead of ext4. But on DT still show I have ext2.
[Nexus One Android Development] tkirton:
It's not a problem with Darktremor. I can only report what the kernel is telling me.

Type cat /proc/mounts in either ADB or a terminal emulator. This is where I'm getting my info for the filesystem type.
[Nexus One Android Development] ratson:
this is it for me: cm6

what should i check to make it mount as ext3-4?
[Nexus One Android Development] temasek:
My system reads the same, as ext2 even if I am actually using ext3
[Nexus One Android Development] djmcnz:
Try:

/dev/block/mmcblk0p2 /sd-ext [B][COLOR="Red"]auto[/COLOR][/B] rw,noatime,nodiratime,barrier=1,data=ordered 0 0
[Nexus One Android Development] ratson:
where should i find fstab?
[Nexus One Android Development] djmcnz:
/system/etc

If it's not there you can add one... this should override kernel settings.

Don't have one at hand but there's a valid one for the Nexus in my Kang-o-rama rom .zip (can't remember if my mmc is auto or not, but you can change it).

Row format is different for fstab so check a working example for your specific handset.
[Nexus One Android Development] ratson:
my theory: as cm6 doesn't support app2sdext I guess ext mounting code was just left out. DT what about adding an option or an additional check to remount with -t auto?

btw after

type is still ext2