yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] mtw4991:
In /data I have /data/app, /data/app-private, /data/dalvik-cache, dta2sd.lg1 and dta2sd.lg2 and /data/sd. In data/sd I have /data/sd/app, /data/sd/app-private and /data/sd/dalvik-cache and /data/sd/lost+found...that's all.

Here are some pics. Example: /data/app and /data/sd/app appear to have the same files in them and show 221mb free. SD card & phone storeage show the same 221 mb free. Also, under / at the bottom I have sd-ext, sdcard, sys and system folders...sd-ext is empty though.
[Nexus One Android Development] azzinder:
With evil's Desire HD 0.4 it won't boot at all after running a2sd cachesd
[Nexus One Android Development] tkirton:
It should work. Try reinstalling Darktremor again...perhaps it was a bad install.

If it happens again, can you send me the dta2sd.log located in /data to rtkirton@gmail.com? Maybe I can figure out what's going on.
[Nexus One Android Development] mtw4991:
DT (older version) starts automatically on MIUI, but on CM nightlies you have to go into terminal and enable it with a2sd cachesd, then it works fine.
[Nexus One Android Development] tkirton:
That doesn't make any sense. The cachesd command only moves dalvik-cache to the SD card. It doesn't mount anything (at least not on 2.7.5.1 or 2.7.5.2). Mounting is done on first boot.

When you reboot, have you performed an a2sd check before you try to run a command? If so, can you post the results? This isn't the first time the CM Nightly builds have caused me issues (there was that whole thing regarding 2.7.5 RC3-RC3C).
[Nexus One Android Development] tkirton:
Bump...new version released: 2.7.5.2
[Nexus One Android Development] mtw4991:
Its not on reboot, that is fine. Its when you flash a new nightly update which replaces the system. Sorry if I wasn't clear.

EDIT: what's new in the .2 update?
[Nexus One Android Development] tkirton:
You have to reflash Darktremor each time you flash a new nightly.

2.7.5.2 adds support for using swap with /dev/block/mmcblk1p3 device and reworks the installer script to selectively delete files in /system/etc/init.d rather than take everything out.
[Nexus One Android Development] Pochemuchka1977:
Sorry if I missed it in this thread, but is there any reason why /data/data/ can not sit on ext partition instead of sitting in device's flash ?

I run "du -sk /data/data/* | sort -rn | head" and got that a lot of space is occupied by different applications

:confused:
[Nexus One Android Development] tkirton:
The original Apps2SD by Cyanogen actually forced the /data/data to move back to the internal storage. Wasn't sure why, but I guessed that, if the SD card failed, you could not boot your phone (/data/data would be symlinked to the SD card which would fail...similar to the dalvik-cache).

However, I did read some other Apps2SD implementations over the weekend (http://xdaforums.com/showthread.php?t=512743). The thread said that moving the /data/data to the SD card will break wallpapers and protected apps.

I know when I was experimenting on this for an earlier 2.7.5 version, it acted like a factory reset when it was moved. I don't think I moved everything involved.

But...since there is a demand for this functionality, I will work on adding the code in version 2.7.5.3.
[Nexus One Android Development] Chahk:
When I move dalvik-cache to the SD card with "a2sd cachesdreset" command, the cache moves to SD Card as expected, and the free space is in 120MB range. But when I use "a2sd cachepartreset" to move dalvik-cache to /cache partition, I noticed that the free space reported by the system (~40MB in my case) stays at the exact same amount as when the dalvik-cache was running from internal memory. Is this the intended behavior, or am I doing something wrong?
[Nexus One Android Development] tkirton:
Actually, that may be the case at least from Android's standpoint. When you move to the cache partition, the program doesn't use a symlink to point to the cache partition anymore. It uses a binding mount (command: busybox mount -o bind /cache/dc /data/dalvik-cache). To the system, the /cache/dc directory looks just like /data/dalvik-cache.

There's a simple way to test. If you have a file explorer app, you can move a large file (at least a couple of meg) into /cache/dc and see if your free space changes. If it does, then Android can't tell that the /data/dalvik-cache is mounted.

I will probably have to post that as part of my help documents. Didn't think about checking that.
[Nexus One Android Development] Chahk:
So then it's functioning as designed, and the free space is simply being misreported by Android? I guess I'm asking whether I should be worried about getting the dreaded "insufficient storage" errors if I install many apps.
[Nexus One Android Development] tkirton:
I think so...I'm going to test it on my phone just to make sure.

EDIT: Apparently, I was wrong on this.

Do this: once you move it to the /cache partition (a2sd cachepart), run a2sd check after it reboots. Either post the results here or send them to me at rtkirton@gmail.com.
[Nexus One Android Development] tkirton:
From the data you sent, everything looks okay.

Okay...run a2sd nocache and send me those results (especially the df results). If it drops, it is working fine and there's something up with Android. If it doesn't, something is up, I just don't know what.
[Nexus One Android Development] mtw4991:
I copied most of my apps to a friends new N1's sd card running CM and DT 2.7.5.2. I then installed them using root explorer w/ CM install location set to automatic. Most are now in /sd-ext.

My question is, now that they are installed to the /sd-ext partition, can I delete them from my sd card without deleting them?
[Nexus One Android Development] tkirton:
This is rather perplexing...

Do me a favor...run both the a2sd cachepart and a2sd nocache. After performing cachepart, run a2sd sysinfo and extract dtsysdump.txt from /data. Do the same for nocache.

I'm going to get to the bottom of this...it's got to be something I'm overlooking.
[Nexus One Android Development] tkirton:
Where on the SD card are you wanting to delete them from?
[Nexus One Android Development] mtw4991:
I copy/pasted from my pc's sd card backup to his sd card, then installed the apk's which installed correctly to the /sd-ext partition. I then ran a2sd reinstall just for good measure, then zipalign...not sure why. I then deleted the pasted files from the sd card itself and rebooted.all is good now. Thanks for responding as always!
[Nexus One Android Development] yvg107x:
Hi.

Is there a way to move only one app back from the ext3 to the internal storage ?

Its just because i'm using I-go motonav, and since I moved all my apps to the ext3 it started to be not as smooth as before...

Thanks!

p.s. I'm using a class 6 card...
[Nexus One Android Development] tkirton:
I didn't know which partition you were talking about, since /sd-ext is also on the SD card.
[Nexus One Android Development] tkirton:
There's no direct method to do it since /data/app and /data/app-private are both pointed to the SD card.

What you would have to do is move the app to the /system/app directory. /system/app is not moved onto the SD card as this is where core applications are kept.

Command: busybox mv -f /data/app/<name of app> /system/app
[Nexus One Android Development] yvg107x:
thanks !

so doing that moves the apk file to the system dir. but what happens with the data dir and all its content on data/data/com.navngo... ?

will it move as well to the internal ? or it stays there which is on the sd card ?
[Nexus One Android Development] tkirton:
/data/data never moves to the SD card, not unless you manually moved it (Darktremor does not have a command to do this for you). That data is on the internal storage and remains there.
[Nexus One Android Development] Chahk:
I just did another round of "a2sd nocache" followed by "a2sd cachepart" and it seems to be working fine. Only when I do the "reset" piece is when things start to go wrong.

I also plan to do another round of moving dalvik-cache back and forth, but this time after installing several apps. I want to see if usage of both /data and /cache decreases at the same rate, meaning the cache is being written into both places.

[Edit]

Ok, instead of moving dalvik-cache, I simply wiped it from recovery. It properly recreated it only on the /cache partition.
[Nexus One Android Development] kallt_kaffe:
Maybe this have been reported before but I find it strange that swappiness is hardcoded to 10 whatever you set it to. However the correct value gets it's way into /data/dtswap so upon reboot the correct value is set.

Shouldn't this:

"swappy"*)
if [ $a2sdcmd != "swappy" ];
then
export a2sdswapval=${a2sdcmd:6:2};
echo "#!/system/bin/bash" > /data/dtswap;
echo "# Darktremor Apps2SD Swappiness File" >> /data/dtswap;
echo "# Date: `$bbcmd date`" >> /data/dtswap;
echo "echo [ ] Setting Swappiness to $a2sdswapval" >> /data/dtswap;
echo -e "echo $a2sdswapval > /proc/sys/vm/swappiness;" >> /data/dtswap;
echo -e "[ ] Setting Swappiness to $a2sdswapval"
echo 10 > /proc/sys/vm/swappiness;
$bbcmd chmod 777 /data/dtswap;
else
echo -e "[X] You must supply a value with the statement." | $tee;
echo -e " Ex: To set swappiness to 30%, type: " | $tee;
echo -e " a2sd swappy30" | $tee;
fi;
;;

look like this:

"swappy"*)
if [ $a2sdcmd != "swappy" ];
then
export a2sdswapval=${a2sdcmd:6:2};
echo "#!/system/bin/bash" > /data/dtswap;
echo "# Darktremor Apps2SD Swappiness File" >> /data/dtswap;
echo "# Date: `$bbcmd date`" >> /data/dtswap;
echo "echo [ ] Setting Swappiness to $a2sdswapval" >> /data/dtswap;
echo -e "echo $a2sdswapval > /proc/sys/vm/swappiness;" >> /data/dtswap;
echo -e "[ ] Setting Swappiness to $a2sdswapval"
echo $a2sdswapval > /proc/sys/vm/swappiness;
$bbcmd chmod 777 /data/dtswap;
else
echo -e "[X] You must supply a value with the statement." | $tee;
echo -e " Ex: To set swappiness to 30%, type: " | $tee;
echo -e " a2sd swappy30" | $tee;
fi;
;;

Also the CyanogenMod wiki suggest setting swappiness like this:

sysctl -w vm.swappiness=$a2sdswapval

But I guess that may just be another way to reach the same goal?
[Nexus One Android Development] mtw4991:
I have app/app-private/dalvik-cache on both /data and /data/sd. Is this correct? Also, I've only got 11.7mb free on /system using MIUI...seems low?
[Nexus One Android Development] a_sty2007:
I installed DT 2.7.5.2 on Rodri-MIUI v1.1, but every time i go to settings->sdcard & phone storage, i got FC

Any suggest?
[Nexus One Android Development] phungshum:
Does this method work with the new radio and PRI? I'm running Steel's apps2sd, which I had to reflash the new Dark tremor program with by the way, flashed the netarchy 4.191 kernel and I always get a boot loop. :(
[Nexus One Android Development] 9re9os:
Choosing which apps are moved?

Hi to all.

First post in this forum.

First of all, please excuse my english.

I have to apologize to ask a newbish question at 34th page of this thread, but it is a kind of pain for me to find an answer, after 3 days spent on that.

So i decide to simply ask...

I would like to know if it is possible to choose which apps are moved in the sd-ext with the a2sd method.

Actually, I would like to be able to keep on internal memory all basics apps (almost all that comes with ROM... I notice that gmail.apk is moved too), and some more widget's apps; then move to sd-ext/3/4 partition all "second usage" apps.

Why?

First of all, because I like to being able to control myself that kind of things, and with my knowledge of a2sd, it seems that i can't.

Secondary: just in case.

Just in case my sdcard turns bad or died. Or even if for some reason, i need to temporaly eject my sdcard. In that case, I would like to maintain my device as minimal as I

decide

, but still usable.

I know the a2sd method is about to free maximum internal space, but

does my question make sense, even in that way?

Thanks in advance for some help.
[Nexus One Android Development] Chahk:
That would be the holy grail of a2ext solutions. Unfortunately DT script doesn't work like that. It's an "all or nothing" kind of a deal when it comes to apps.

Have you tried the A2SD method that is built into Froyo? It allows you to do almost exactly what you are looking for. It's only drawbacks are that it uses the Fat32 partition, and applications must be coded to support moving to SD Card.
[Nexus One Android Development] 9re9os:
Thank you for your answer. Yes, i've tried the froyo method, but it doesnt satisfay me, because even moving apps to fat32, they still fill internal cache. So I have offen the "low memory" problem.

Maybe if a2sd DT's method could allow to move only cache and delvik cache to ext3/4, keeping apps in internal or fat32 part, i would find some temporaly solution.

Anyway, thx, no i'm feeling more lost trying to achieve something is not presently possible.

Kind regards
[Nexus One Android Development] yvg107x:
after typing the command i get :

mv: can't create '/system/app/com.navngo.igo.javaclient-1.apk': Read-only file s

ystem

sh-3.2#

how do I make it writable ?

I tried to move the apk file manually to the system/app dir with root explorer but the program doesn't load after that... so.. how to I move it to the system/app dir and make the shortcut on the home screen point to the new place in the system/app ?
[Nexus One Android Development] Wysie:
Is there a need to run the jit command if I'm already using a ROM like CM (which has JIT enabled by default)? :) Just wondering. Thanks!
[Nexus One Android Development] bemymonkey:
Hi everyone, I have a quick question: How can I find out how much space an app is actually using on /data/?

I've tried using "du -hs foldername" in /data/data/, but the values in no way correspond with what the app management control panel is showing me under "Storage=>Data". Where else do apps deposit data? I've already moved my dalvik-cache....

The reason I'm asking is because I'd like to know which apps would free up the most room if I removed them... getting a bit stuffy ;)
[Nexus One Android Development] Chahk:
Try "df -h" in Terminal or adb shell.
[Nexus One Android Development] trismegistos:
Hi, I am using cm nightly. I created an ext3 partition with Armons 1.7.1 recovery. On Enomther rom the partition is mounted as ext3 but on cm it's mounted only ext2. Any idea why?
[Nexus One Android Development] :
Quick Question:

Have 2.7.5 Working Great!

Can I flash 2.7.5.2 right over it and do I run any commands after installed. I have Rod's MIUI 1.1.

If I do what I suggested above, any issues I may expect?

Thanks,

Ken
[Nexus One Android Development] MABg36:
help

Im having a hard time getting this to work on evil's nxense rom. I enter...

Su

A2sd check

A2sd reinstall

Reboots

Su

A2sd check

A2SD zipalign

A2sd cachesd

Reboots

After that I run titanium backup and it installs most of my apps after it reaches a certain number it says batch restore finished, but it isn't finished because there are still apps that weren't installed. I ignored those and tried downloading them from the market but everytime I try it says" insufficient storage" I then tried switching the install location to the sd card but that made things worse. The app downloads fine but when it tries to install, the phone crashes and freezes up completely and I have to reset it. I've tried everything, can anyone help me get this running.

Also, my sd card is partitioned, I partitioned it twice yesterday and still got the same thing.
[Nexus One Android Development] :
You want to install just missing apps and data with TB, no system stuff.

Did you run a2sd check and see your memory info? I think it shows under menu/settings/sd card storage also.
[Nexus One Android Development] MABg36:
Yes here's the results I got.

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

$ $su

# check

check: not found

# a2sd check

[ ] Apps2SD is launching...

__ _____

| \ |

| | |

|__/ | Darktremor Apps2SD 2.7.5.2 (2010-09-30)

[ ] GetProp Command = /system/bin/toolbox getprop

[ ] SetProp Command = /system/bin/toolbox setprop

[ ] Mount Point = /system/sd

[ ] Creating /cache/dc

[ ] Symlinking /cache/dalvik-cache to /data/dalvik-cache

[ ] Starting Apps2SD Check Program.

[ ] Checking for ext partition

Darktremor 2.7.5.2 Apps2SD Status Report

===================================================================================

Legend: [*]=Setting is correct

[!]=Setting is correct, but not optimal.

[X]=Setting is incorrect and needs to be fixed or option is not available.

===================================================================================

Block Device - [*] Found

- [*] /dev/block/mmcblk0p2

EXT Partition - [*] Mounted

Mount Point - [ ] /system/sd

Partition Type - [*] EXT2

Support EXT2? - [*] Yes

Support EXT3? - [*] Yes

Support EXT4? - [*] Yes

Apps - [ ] Linked to SD Card.

[ ] No Apps2SD Flag File not found.

[*] Programs run from SD card

To run from internal storage, type a2sd remove

Private Apps - [ ] Linked to SD Card.

[ ] No Apps2SD Flag File not found.

[*] Private Programs run from SD card

To run from internal storage, type a2sd remove

Dalvik Cache - [ ] Symbolically Linked.

[ ] Dalvik to SD flag file found.

[*] Dalvik runs from SD card

To run from internal storage, type a2sd nocache

To run from /cache partition, type a2sd cachepart

Swap - [ ] Partition not present or no swap support.

[*] Swap does not start.

ZipAlign - [*] Running at boot.

To deactivate it, type a2sd nozipalign

Dalvik Heap(MB) - [*] 24m

Low Memory

Killer Settings - [*] 3584,4096,6144,7168,7680,8192

Note: Values are in pages.

1 page = 4KB memory.

Values represent the following:

1st number = Foreground App

2nd number = Visible App

3rd number = Secondary Server

4th number = Hidden App

5th number = Content Provider

6th number = Empty App

[] For a list of commands that you can use with Apps2SD

Type: a2sd help

#
[Nexus One Android Development] MABg36:
Here's what it said when I ran a2sd diskspace

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

$ $su

# a2sd diskspace

[ ] Apps2SD is launching...

__ _____

| \ |

| | |

|__/ | Darktremor Apps2SD 2.7.5.2 (2010-09-30)

[ ] GetProp Command = /system/bin/toolbox getprop

[ ] SetProp Command = /system/bin/toolbox setprop

[ ] Mount Point = /system/sd

[ ] Starting Darktremor Apps2SD Version 2.7.5.2

[ ] Launching Apps2SD Start Program with diskspace

[ ] Starting Darktremor Apps2SD in diskspace mode

[ ] Displaying Disk Space statistics on SD card

Filesystem Size Used Available Use% Mounted on

/dev/block/mmcblk0p2 457.4M 433.0M 2.0K 100% /system/sd

[ ] Setting File System Ready property to 1.

#

Its weird because I have 9.02gb on my sd card and 153mb on my internal storage.
[Nexus One Android Development] :
Not sure, I am not real good at this stuff.

Maybe back up sd card and reformat and repartition?

Someone should have a better answer, sorry.
[Nexus One Android Development] d.brown:
"permission denied" on N1 NIGHTLY???

ive follow the instructions but when i at the part where in put "a2sd cachesd" or any command line i get app2sd is lauching...then everything is denied it seem like it cannot create or write anything on my 16gb sd class 4 witch was format using clockworkmod 2.5.1.0 in rom manager premium...can someone help me thx

also i chosed 1024mb ext partition and 128mb swap...thx
[Nexus One Android Development] :
you want no swap

a2sd noswap command
[Nexus One Android Development] mtw4991:
On my Tmo N1 I'm running DT 2.7.5.1 with a 512mb ext2>>ext3 partition. Under SD Card and Phone Storage it shows SD card, Unmount SD Card, A2SD+ and Internal Phone Storage on the MIUI rom. Also, apps/private-apps/dalvik show under the /data/sd folder.

On my buddy's ATT N1, he is running CM #186 with DT 2.7.5.2 with a 384mb ext2>>ext3 partition. Under SD Card and Phone Storage he does not have the A2SD+ heading and his apps/private-apps/dalvik show up under the /sd-ext folder, not the /data/sd folder.

Also, I have apps/private/dalvik showing up under BOTH /data/sd AND /data. Is this supposed to be this way?

Explanation or advice???
[Nexus One Android Development] Wysie:
mtw4991: If I'm not wrong the stuff in /data is being symbolically linked to the stuff in your sd card. Your lack of space might be due to your dalvik cache, try checking the list of commands and moving your dalvik cache to the sd card as well :).
[Nexus One Android Development] eViL D::
tkirton, can you confirm this works with SD-EXT?
[Nexus One Android Development] mtw4991:
Yeah Wysie, that was it(thx)...forgot to issue a2sd cachesd, lol. Apps/apps-private and Dalvik-cache now reside at /sd-ext and are symbolically linked to /data, freeing up almost 90mb of internal storage space.

eVil D, it works for Sd-Ext for me just fine and I'm running DT 2.7.5.1. Latest is 2.7.5.2.
[Nexus One Android Development] tkirton:
Yep...you're right. Thought I got all the those corrected. Nice cache.

As for the Cyanogen method...it is another way to get to the same goal. But, it may have issues with other roms. I just didn't want to take that chance (got enough issues as is...don't need to put another one on the stack).
[Nexus One Android Development] tkirton:
You mean the /sd-ext partition? Yea, it does. I run it all the time on my Hero using CyanogenMod Nightly Builds.

My testing devices:

Sprint Evo: Fresh Evo 2.4.0 (/system/sd mount)

Sprint Hero: CyanogenMod Nightly Builds (/sd-ext mount)

It's programmed to look for /sd-ext first. If it can't find it, it will use /system/sd (since that is created during installation from recovery).
[Nexus One Android Development] eViL D::
Running dalvik to ext automatically on. I get this.

[X]=Setting is incorrect and needs to be fixed or option is not available.

[X] Dalvik runs from either SD card or /cache.

Any reason why the X?

I'll update with logs.
[Nexus One Android Development] eViL D::
btw, is there an easier way to pull the logs? adb only allows directories, and I don't wanna have to pull /data all the time.
[Nexus One Android Development] tkirton:
How big is your EXT partition?

That's what the numbers represent...not your entire SD card or the FAT32 partition on your SD card.
[Nexus One Android Development] tkirton:
ADB will allow files. I push and pull files all the time:

adb pull /data/dta2sd.log .
[Nexus One Android Development] tkirton:
There are other lines immediately above the "Dalvik runs from either SD card or /cache". Those will tell me what is going on. Could be a logic fault in the program, a problem with the setup, or there's an [X] where there shouldn't be (a display issue).
[Nexus One Android Development] eViL D::
Ok, I just ran a2sd repair. Here's the log.
[Nexus One Android Development] tkirton:
You're not running Darktremor Apps2SD 2.7.5.1. If this is Rodriguez MIUI, it has Darktremor 2.7.5 RC3. This is the only version that uses /data/sd as a mount point. All other versions use /system/sd (and 2.7.5 RC3C uses /sd-ext as an additional mount).

Your friend has CyanogenMod, which doesn't come with Darktremor Apps2SD at all. He had to flash his from the start.

If you flash Darktremor 2.7.5.2, it will reset your mount points from /data/sd to either /sd-ext or /system/sd (depends if /sd-ext exists).

Also, you are suppose to have /data/app and /data/app-private...they should be symlinked to the matching directories on your EXT partition. Same with /data/dalvik-cache, though that's only symlinked if you ran a2sd cachesd.
[Nexus One Android Development] mtw4991:
Thanks for the explanation. W are both winning 2.7.5.2 now and have sd-ext partitions set as the default mount point.
[Nexus One Android Development] belair56:
Question about Dalvik Cache

I am running CM nightly.

When flashing a new nightly, I clear cache, dalvik cache, flash nightly then flash your Darktremor Apps2SD 2.7.5.2. reboot.

Then I need to go to terminal and run command "cachesd"

Is there a script I or you can add so when I flash, the Dalvik cache will auto move to sd?

Thanks
[Nexus One Android Development] eViL D::
I guess there's no way around /data/data being moved?
[Nexus One Android Development] LordPhong:
I just want to chime in and thank you for making this sooo easy. I was literally up and running in less than 5 minutes (cm nitely).
[Nexus One Android Development] jocaferlo:
+1

This will be interesting.