yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] mtw4991:
After wiping, flash ROM then flash DT BEFORE rebooting, reboot, set install location to automatic, go to terminal emulator and type:

su

a2sd cachesd

phone will reboot and dalvik-cache will be moved to the sd-ext partition on your phone, thus freeing up tons of space on internal memory.

Using this method I have 27mb free on /system/app (where gapps and required apps install to), 105mb free on /data (which is your internal mem showing in Settings>SD card & phone storage) and 197mb free on sd-ext (dalvik-cache is here btw,as are app, app-private). My sd-ext partition is ext2>ext3 upgraded in recovery and partition size is swap=0, ext=512mb, FAT=remainder. Hope this helps.
[Nexus One Android Development] alienmonkey:
Thanks MTW. I'll play around with this sometime late tonight when I get home. I didn't do anything in terminal, but why set install location to automatic instead of forcing to external? Is it because DT looks for that setting specifically and overrides putting stuff into EXT?
[Nexus One Android Development] djmcnz:
:banghead::banghead::banghead:

Install location setting has nothing, nothing at all do to with this.

Please search before a) you ask and b) you provide bad advice.
[Nexus One Android Development] djmcnz:
Guys, DarkTremor is either working or it is not, it's a binary situation and there's no in-between.

Instructions on how to test if it's working are on the first page of this thread, how about you try those before posting inane, repetitive questions?

Sure, if you get unexplained errors post your results back here and ask for advice but it's bad form, ill mannered and poor etiquette to ask questions that have been answered over and over and over again.
[Nexus One Android Development] dictionary:
Ya. Listen though people, as far as install location .. if you want to set it .. SET IT TO INTERNAL. External does just that .. sets it to an EXTERNAL storage device, which would be removable media. SD-EXT fools the phone into thinking that it's INTERNAL.

INTERNAL - SD-EXT

EXTERNAL - SD-FAT
[Nexus One Android Development] djmcnz:
Yes... 100% - although be wary that in the CM nightly I'm using that setting is ignored/overridden/circumvented (?) by some apps which, when I check in Manage apps, have snuck onto sd-fat dispite mine being set to Internal only... :confused:
[Nexus One Android Development] dictionary:
I've noticed that as well. Figured I'd rather set it to internal for the longshot, lol. If nothing else, I know that I did all I could.

For those having issues with the internal memory (The one that's displayed on SD & Storage) still going down after installing new apps, just go back to Terminal Emulator, or ADB (however you do it), and rerun a2sd reinstall. That'll move any new apps over to ext3
[Nexus One Android Development] alenardoson:
in the latest cyanogen nightly, none of the apps turn up and when I run the reinstall command i get

/system/bin/launcha2sd: line 242: syntax error: unexpected end of file. Am I doing something wrong?
[Nexus One Android Development] :
I need help,

I have been using DT 2.7.5 for awhile and OK.

Am now running MicroMOd 2.4 and Rod's MIUI 1.5

Seems some of these roms have their own a2sd now

On reboots my screen freezes and I have 3 finger salute into recovery. Can not get out of recovery, screens always freezes on the X

First time I lost sd and ext and had to format all from recovery, reinstall sd bu from pc

Happened again and reinstalled sd backup and restored MM 2.4 all ok

Thought I would flash DT 2.7.5.1

Rebooted and froze again

Are these later roms not compatible with DT anymore?
[Nexus One Android Development] mad-murdock:
I just flash nightly, flash a mini-modded dta2sd which removes 05mountsd, reboot, works great each day (or night?)

If you use an unmodded dta2sd, delete /system/etc/init.d/05mountsd either from recovery via adb or on first boot via terminal (needs reboot)

Dalvik cache needs to be setup only once. On flashing new nightly, dta2sd detects and uses it

So no manual interaction needed at all!
[Nexus One Android Development] mad-murdock:
No need to reinstall -at least for cm nightly. Do as i described one post above, works. About some apps installing to sd in every case: yes, its annoying, but just go to settings->applications->manage, choose "on sd card", select and move to internal - done
[Nexus One Android Development] sj.nexus1:
combine filesystem?

I'm not sure if this is the right place to post this question.

Humble apologies for any mistakes........:o

I'm running enom 2.13.2 and DT 2.7.5.2

Although enom has a built-in (via spare parts) a2sd, I chose to run DT instead.

outputs

df -h

Filesystem Size Used Available Use% Mounted on

tmpfs 193.1M 0 192.1M 0% /dev

tmpfs 193.1M 0 193.1M 0% /mnt/asec

/dev/block/mtdblock3 145.0 119.4M 25.6M 82% /system

/dev/block/mtdblock5 196.3M 194 1.6M 99% /data

/dev/block/mtdblock4 95.0M 3.7M 91.3M 4% /cache

/dev/block/vold/179:1 3.2G 2.8G 422.8M 87% /mnt/sdcard

/dev/block/vold/179:1 3.2G 2.8G 422.8M 87% /mnt/secure/asec

a2sd check

Dalvik Cache set to run from Int Storage

du /data/dalvik-cache

10660

Is there a way to combine the /data & /cache as 1 filesystem, i.e. (196+95)?

And then I can utilise the unused free space in /cache for the dalvik-cache.

I know I can move the dalvik-cache to the sd-ext, but my SD card is slow, and I'm just exploring ways and means to effectively and efficiently use the internal space, before I move to SD-ext.
[Nexus One Android Development] alenardoson:
Where does one procure this "mini-modded dta2sd" you speak of? A google search turns up nothing.
[Nexus One Android Development] djmcnz:
Wow, that's an astonishingly little amount of /cache used - is that on a fresh rom install?

Answer to your question is "no" but you could move dalvik-cache to /cache (from /data) with DT.
[Nexus One Android Development] mad-murdock:
I posted mine a few pages back. There is also a version linked in desire nightly post, first post
[Nexus One Android Development] alenardoson:
Thanks a plenty!
[Nexus One Android Development] matiu:
Hi guys, I've installed correctly this script on cyanogenmod nightly 226 without errors, I've also moved dalvik cache to sd via adb shell and a2sd return me this:

However, after this, when I install an application my internal memory decrease... what's the problem? :confused:
[Nexus One Android Development] Nighthound:
Unable to install/update from market

Hi all,

I've installed DT 2.7.5.2 over CM6 stable succesfully with no issues with a2sd check. I have enabled a2sd and moved all my applications onto /sd-ext as well as my dalvik cache onto /cache.

However, now I try to install new apps or update my existing apps, most of them give me an error "unsuccessful installtion". A few of the apps do manage to update properly though, so I'm not sure what the problem is.

Anyone has any ideas?
[Nexus One Android Development] djmcnz:
Answer: don't move dalvik-cache.

Sorry for the bad news guys.

Tried, tested, proven to be unreliable by many, many people.

Edit: NOT DT's implementation BTW, just moving dalvik-cache at all.

Edit #2: Why: /cache is ~100 MB, dalvik-cache is normally >40MB, up to 75MB and cache itself is typically 40MB or more... do the math.
[Nexus One Android Development] Nighthound:
Thanks! I just figured that out myself when I checked my cache partition and realised that it was totally full, 140k of space left. I moved my dalvik-cache to SD instead and now everything seems to be working. =)
[Nexus One Android Development] djmcnz:
Even worse idea IMHO...

Any trip up with the SD card, partition or mount point will bring your phone down.

Don't trade stability for space is my opinion.

If you've hit the limit on /data and you're already running apps2ext then you've hit the practical limit of your phone. Storage is finite, this need to be widely accepted.
[Nexus One Android Development] mtw4991:
I understand the finite storage issue and the reasons as stated and agree. My only problem has always been the very,very limited internal storage that Google gave us which is a ridiculous amount imo. Most of us treat the N1 as a mini-computer before the "phone" part, and app storage is important...at least for me. Also, I don't notice much, if any, performance lag with dalvik-cache on the ext3 partition...I guess it is measureable, but my N1 is still blazing fast:D
[Nexus One Android Development] ellesshoo:
Aww sh1t! Just got interested in apps2ext.... looks like I need to get comfortable and settle in for some reading.
[Nexus One Android Development] shmigao:
Not that difficult really, once got into it
[Nexus One Android Development] Nighthound:
Same here, I find that 200mb for apps (+ data) is simply not enough for a phone that's capable of doing so much. What's more I have a bunch of games as well, and they take up quite a lot of space.

I was using CM6's froyo apps2sd for a while, until I hit the limit, and decided to switch to apps2ext.
[Nexus One Android Development] denteno:
I don't get it

Can i use this on cyanogen 6.1 ??
[Nexus One Android Development] mtw4991:
Yes, many of us do. Just flash recovery and read the op.
[Nexus One Android Development] :
Confirm please that "many of you do" use DT on CM

6.1

.

It just came out and it doesn't support a2sd, if I understood correctly.

I have ben off DT for awhile, using Micro and MIUI which handle it for you and had trouble with DT on them.

I am not the brightest bulb in the Chandelier on some of the techy stuff. So, just checkin.

Would like to give CM6.1 a shot since I am bored, but want a2sd.

Ken
[Nexus One Android Development] Chahk:
Confirmed. But don't take my word for it - nandroid, flash the script and see for yourself. You can always restore if you don't like what you see.
[Nexus One Android Development] :
Understood!

Thanks,

Ken
[Nexus One Android Development] Travladin:
Anyone able to get widgets to load properly after rebooting

I've had this issue b4 with older versions of a2sd but i always managed to fix it.. Nothing I've tried works:mad:
[Nexus One Android Development] Talderon:
My way of getting it working on 6.1 without ANY issues at all:

WIPE > WIPE > Flash CM6.1-RC1 > Flash DT's latest a2sd > Reboot > adb shell > a2sd cachesdreset (moves Dalvik-Cache to SD, wipes and rebuilds it (on reboot) and reboots phone) > Wait for reboot to finish > Use phone and be happy. :D
[Nexus One Android Development] :
Thanks Talderon,

I usually just run all 4 commands from op page, no problem.

However, if I try CM6.1 and go back to MicroMod 2.5, which i really like, I would think I would need to use amon_ra 1.9a and wipe sdext to get DT back off phone. As I mentioned, it didn't play well with the auto a2sd the dev has included in rom. Or, do I need to wipe sd and sd ext to get DT off phone?

Ken
[Nexus One Android Development] mtw4991:
Widgets need to be installed to the phone's internal memory to load upon boot, at least that is what I do and they all load fine.
[Nexus One Android Development] mynameisjon:
Installed CM 6.1 RC and for some reason I can't use the apkmanager.sh anymore.

Looking for a way to move my widgets to the phone internal memory...
[Nexus One Android Development] mtw4991:
The widgets are not stand-alone apps, they are children of the parent app. Go to settings>applications>manage apps>all, find your app that spawned the widget and click on it. There should be an option to Move to Phone, which is internal. If you are already running DT then the app is stored on the sd-ext partition and you may have to manually move it to /system/app then you should be fine upon reboot. Using root explorer, go to /sd-ext, find your app and long-press it. A popup box opens with several options, one of which is Move. Click Move, then go to /system/app and paste. Done!
[Nexus One Android Development] mynameisjon:
Won't that mess up the "symlink" or something like that?

EDIT: I tried moving my Whatsapp.apk but I get a "could not move" error
[Nexus One Android Development] mtw4991:
umm...idk, I'm not an expert on this. A couple of things to try:

1) Did you mount the /sd-ext and /system/app as r/o before trying to cut/paste the app?

2)Go to CM settings>application settings and make sure Allow Application Moving is checked. If it is checked and you still can't move the app, go to install location and set it to internal, then delete the app and re-install it.

3)If none of these work, you can copy the app to your pc and can try to adb push the app like this:

adb root

adb remount

adb push c:\whereappis\yourapp.apk /system/app

adb reboot

If none of these work, I'm out of ideas. Ask DT or one of the more experienced guys around here or in the nightly thread.
[Nexus One Android Development] mtw4991:
I don't know if any of those worked for you, but if they didn't I have another idea. Go to command prompt/adb:

adb shell

adb pm setinstallLocation 1 ...which is internal. then redownload the apps.

don't forget to change it back to 2 afterward
[Nexus One Android Development] mad-murdock:
After reading the new posts about cyanogen 6.1, I wonder if you just flash an unmodified dta2sd after cyanogen.

Background is simple: with the nightly builds, you had to either adb-delete /system/etc/init.d/05sdmount which came with cyanogen and collided with dta2sd init script

Our you used a modified version if dta2sd which did the deletion while flashing.

Can someone confirm, you can now use cyanogen and dta2sd without modifications?

Sent from my S-OFF'd brain using teh internetz
[Nexus One Android Development] mynameisjon:
Works now. Had to use root explorer (had to buy).

Still wondering about apkmanager.sh though...

Used to be able to run it and move apps from it pretty easily.

Isn't DT's a2sd supposed to be usable with CM?
[Nexus One Android Development] :
Yes, it was confirmed a few pages back.

Ken
[Nexus One Android Development] mad-murdock:
Well, thanks then. Either I was asleep again while reading, or my forum reader skipped that essential part.

Will use latest dta2sd with upcoming nights then

Sent from my S-OFF'd brain using teh internetz
[Nexus One Android Development] denteno:
my memory is 16 gb class 2

is it ok to use app2ext ??
[Nexus One Android Development] Robdyx:
Class 2....... You can give it a try, but I bet it won't be really fast....
[Nexus One Android Development] mad-murdock:
Works for me. It was even acceptable fast with dalvik cache on it, but moving dalvik to cache was a good choice.

Anyways, my class two card does the job very well.

Does anyone know the read and write speed of nand? Just curios, but I suppose it must be much faster

Sent from my S-OFF'd brain using teh internetz
[Nexus One Android Development] mynameisjon:
I realised that whenever I move certain apps to internal phone memory, my phone tends to re-create a copy in the sd-ext partition and then ignore the one in phone memory.

I moved the app to system/apps, did a nandroid. Screwed something up later in the day and went back to nandroid, then for some reason i find a copy of the app i moved back in sd-ext/apps as well as system/apps
[Nexus One Android Development] shmigao:
i think it's a symlink
[Nexus One Android Development] mad-murdock:
Exactly! Google for symbolic link to understand this outstanding concept. It's a little hard to understand at first for a windows guy.

By the way: windows 7 uses symbolic links now, too.about 40 years after unix introduced them... High tech at it's best!

Sent from my S-OFF'd brain using teh internetz
[Nexus One Android Development] djmcnz:
No... I don't think so.

apps2ext has absolutely nothing to do with apps in /system/app/ nor do symlinks.

Apps2ext apps are installed on /sd-ext which the phone REPORTS as internal because of the symlinks.

Moving something to "internal" or "phone storage" when you're using apps2ext will put it on the /sd-ext partition, not the /data partition.

When you move something to "external" or "sd card storage", with any system, it moves to /sd-fat

Apps do not install to /system/app/ so the observation in the first quote above must be incorrect. The subsequent quoted advice isn't targeted at the confusion.

app2ext creates virtual internal storage by linking to an ext partition on your sd-card, get your head around that concept and you'll be fine.
[Nexus One Android Development] mad-murdock:
You are right, I completely misunderstood the initial post. Probably because I missed the initial slash at the system app part. Sorry for this

Sent from my S-OFF'd brain using teh internetz
[Nexus One Android Development] denteno:
i was 0n the partition part

and i havent found ext2 to ext3 option !!!!!!!!!!!

how to do it " without adb please"

another thing , if i havent move the dalvic-cache to the sd card

will every app save some data on the phone ?? " just like the original app2sd " ??
[Nexus One Android Development] mynameisjon:
What i mean is with apps2ext, I move the app from sd-ext/app to system/app (e.g widgets), but after I update the app, the app is again installed in sd-ext/app. Same thing happens with a nandroid restore, even though the restore was created with the app already moved to system/app.
[Nexus One Android Development] Chahk:
This is supposed to happen with updates to apps that are on /system partition. The reason is that on un-rooted devices, the entire /system partition is read-only to apps, including Vending.apk (Market). The "updates" are simply newer versions of these apps that get installed into the /data/app/ directory. The new versions simply supersede the original apps, which are still residing in /system/app. This is why when you go to Manage applications, instead of "Uninstall" button you will see "Remove Upgrades" instead.

Bottom line - you need to move apps from /data/app to /system/app, overwriting the existing older versions, every time they are updated via Market.
[Nexus One Android Development] shmigao:
With amon_ra recovery you can partition sd card and upgrade to ext3 and beyond with user interface (w/o adb)
[Nexus One Android Development] denteno:
NM

it worked
[Nexus One Android Development] mad-murdock:
He said amonra, not clockworkmod.

Another tip: the overuse of exclamation marks makes you look stupid!

Sent from my S-OFF'd brain using teh internetz
[Nexus One Android Development] putney:
Fixed your post so you seem helpful....
[Nexus One Android Development] mad-murdock:
I edited my post since I had a swype typo in it, not to seam anything.

If you check my profile you will find out, about 90 percent of my posts are answering people asking for help through this whole forum. So yes, I guess I am pretty helpful. But in some situations I can't stop doing sarcasm...

Sent from my S-OFF'd brain using teh internetz
[Nexus One Android Development] denteno:
Thanks for being so polite =)
[Nexus One Android Development] allgolfedout:
sd partition size?

HI! Thanks for your hard work!

I have a moto backflip and j_r0dd has included you a2sd in his latest ROM. I'll be flashing it as soon as I get my juicy new 8GB class 6 from newegg mon or tues...

Question is two part: is there an optimum partition size for this and does the program allow you to create/resize the partition?

THANKS AGAIN!!!
[Nexus One Android Development] mtw4991:
I also have that card and I set swap to zero, set ext partition size to 512mb, then ext2> ext3. I have over ninety apps installed and dalvik cache on sd card and still have 108mb free. Yes you can resize later but you'd need to move everything to pc first then do it and move it all back. 512mb is plenty for me.
[Nexus One Android Development] allgolfedout:
sd partition size...

THANKS!!! Enjoy the rest of the weekend!
[Nexus One Android Development] AzraelRita:
Hi, i just flashed the CyanogenMod-6.1 for Desire (GSM/CDMA): V6.1.0-RC1, and i wanna to use ur a2sd, i have follow the steps provide by you, and i found it just doesnt work, i use ur commend like system/bin/a2sd check and other commend, they all work, but, my internal mem just 20mb left. can u help me to sovle it?
[Nexus One Android Development] britoso:
Have you tried:

a2sd cachesd

?
[Nexus One Android Development] denteno:
first of all a big thank for this great script

really saved me a lot of uninstalling every time i wanna install a new app

gotta a question though

my phone memory keep dropping specially with big apps like google earth and fifa10

although i've moved the catch to sd card ?

how to compensate that ?
[Nexus One Android Development] djmcnz:
Can't (safely) because all apps write to /data/data/ as well... (which consumes space), (which you shouldn't really be concerned about).
[Nexus One Android Development] denteno:
Is it also happens in all the other roms ? "Leofroyo"? or its just about cyanogen
[Nexus One Android Development] djmcnz:
All Android phones.
[Nexus One Android Development] ganjamu:
I am using the AlphaRev N1 Partition table and DTa2sd with a 1GB EXT3 partition and I think something went wrong after I tried out Firerat because in Titanium Backup my storage looks like this(with only titanium backup,gapps and rom manager installed):

After I did the following in terminal emulator

su

a2sd cachesdreset

Internal 207mb(197mb free)

Sd Card: 6.98gb(3.68 free)

Sd Card a2sd: 152mb(31.8mb free)

This doesn't look right to me. Please help.
[Nexus One Android Development] shmigao:
I have the same, with 512mb ext3. Not sure whether Titanium Backup is reporting the figures correctly
[Nexus One Android Development] ganjamu:
What a relief, it not just me. I wonder if someone with some insight can shed some light on the issue. We'd really appreciate it.
[Nexus One Android Development] baudy2:
Hi all !

I've recently installed Darktremor 2.7.5.2 script first time in my life and the problem is that i now have the apps both on SD card external partition and in /data/apps as well.

Looks like there is something wrong. Can anybody help ? I did follow all the instructions precisely. Below are the results of a2sd check. It says that both apps and private apps are running from SD card, but i see that /data/apps is full of apps.

#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 = /sd-ext

[ ] 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 - [ ] /sd-ext

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 - [ ] Regular directory.

[ ] Dalvik to /cache flag file not found.

[ ] Dalvik to SD flag file not found.[*] Dalvik runs from Int. Storage.

To run from SD card, type a2sd cachesd.

To run from /cache partition, type a2sd cachepart.

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

ZipAlign -[*] Not running at boot.

To activate it, type a2sd zipalign

Dalvik Heap(MB) -[*] 32m

PS: a2sd cachesd HELPED !
[Nexus One Android Development] Chahk:
This is normal. The DT scripts "fool" the phone into thinking that the Ext partition on your SD card is part of /data partition.
[Nexus One Android Development] G1-evolve:
finally got it working, but i think when i install a nightly from cm tht it always causes a bootloop
[Nexus One Android Development] belair56:
You have to reflash the a2sd script.