yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] tkirton:
Darktremor A2SD, like all the other A2SD programs used by HTC phones, mounts system and data using yaffs2. If the Moment can do that, then there's not an issue.

The install.sh is a legacy installer...it is no longer used.

Do this...

In an ADB Shell, type more /proc/mounts and send me what prints out on the screen.
[Hero CDMA Android Development] St-Bun:
I used the rom from the root tutorial at modaco.
[Hero CDMA Android Development] mike2246:
Ok. so how do I see how much space is free on internal storage?
[Hero CDMA Android Development] gunnyman:
dammit the moment busybox doesn't do proc. :(
[Hero CDMA Android Development] tkirton:
So you are using Modaco's Rom? If so, what rom level are you using? I had serious troubles getting A2SD working with R1. Also, if you are using Modaco kitchen to create the roms for you, make sure you tell it to include A2SD.
[Hero CDMA Android Development] tkirton:
/proc is a directory. All linux distributions (including Android) has a directory called /proc which is where process files are stored.

If the MORE command doesn't work, try this (assuming your Busybox is located at /system/xbin):

/system/xbin/busybox more /proc/mounts

If that doesn't work, you can push the busybox.a2sd from the Darktremor A2SD package to the phone (try pushing to /data/local if you have such a directory). Then you would run: /data/local/busybox.a2sd more /proc/mounts
[Hero CDMA Android Development] tkirton:
/system/bin/busybox.a2sd df -h /data

That will show you how much space is free on /data (your internal storage).
[Hero CDMA Android Development] gunnyman:
may my linux is a bit rusty. Thanks for the reminder :D
[Hero CDMA Android Development] gunnyman:
Don't see yaffs in there

rootfs / rootfs rw 0 0
tmpfs /dev tmpfs rw,mode=755 0 0
devpts /dev/pts devpts rw,mode=600 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0
/dev/stl5 /system rfs ro,codepage=utf8,vfat,fcache(blks)=128,xattr,check=no 0 0
/dev/stl6 /data rfs rw,nosuid,nodev,codepage=utf8,vfat,fcache(blks)=128,xattr,check=no 0 0
/dev/stl7 /cache rfs rw,nosuid,nodev,codepage=utf8,vfat,fcache(blks)=128,xattr,check=no 0 0
/dev/block//vold/179:1 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
[Hero CDMA Android Development] St-Bun:
I flashed a new rom made with modaco's kitchen, now it seems to work :)

Thanx for your help anyway.
[Hero CDMA Android Development] grumpySasquatch:
Hey tkirton, i made sure to try all the fixes before asking... but i checked a2sd through adb shell, and through quick system check and everything seems to be in order. i made my ext partition 800 mb and i only have 200 mb worth of apps installed but its saying that im out of space?? im on fresh 2.1.2 i know for a fact it was working on 2.1... is there something im missing? dalvik is on sd, im ext3, swap 32... umm i can think of what else it could be...
[Hero CDMA Android Development] nfinitefx45:
Hello tkirton, just a question , but are you going to be implementing more functions into your adds2sd like the ability to pick apps that should stay internal, and apps that should be on sdcard?

Like the latest release from cyanogenmod's.
[Hero CDMA Android Development] tkirton:
If you have the latest version, type a2sd diskcheck and see where you are at on disk space. Since you have 200mb of apps and dalvik-cache on the card, you should be okay...but maybe not.

I would also do a /system/bin/busybox.a2sd df -h /data and see what is your free space there. It's possible the /data partition may be full or dangerously close (which may mean your dalvik-cache isn't actually on your SD card or something else is taking up a lot of space).

Let me know the results.
[Hero CDMA Android Development] tkirton:
At some point. I'm building the features list for Darktremor A2SD 2.8.

Three things on the wishlist:

JIT (this may be implemented in 2.7.1)

GUI Interface

Dalvik stack adjustment

I realize that some of these features everyone else has...my focus was on stability rather than new features (especially on 2.7 after the instability of 2.6.1).

However, if you have any suggestions for new features for 2.8, let me know and I'll see how practical it would be to implement.
[Hero CDMA Android Development] tkirton:
That seems to be the story with the Modaco Roms. Not sure what's going on. I'm hoping I can get to the bottom of it via a support issue with the Legend. I'm thinking both the Desire and Legend are acting very similar.
[Hero CDMA Android Development] tkirton:
I may still be having issues with dalvik-cache.

What class is your SD card?
[Hero CDMA Android Development] DJAscendance:
the nasty 2gb that came with the phone.. I know I knowwww lol I need a new one.
[Hero CDMA Android Development] tkirton:
I'm thinking that the class 2 is giving me headaches. I suspect the speed isn't fast enough for dalvik-cache, hence why you have an extremely long delay time. Not your fault...this particular issue is hard to track down.

What I would like is some program I can run on the phone that would measure your SD card and, if you were running class 2, it would prevent the dalvik-cache from being moved. Now that I'm past the ext4 issue, I'm looking for one. If I can find one, I'll integrate that in 2.6.1.

In the meantime, you can turn off dalvik-cache by typing a2sd nocache. I know that defeats the purpose of this version of A2SD, but it may make your phone more stable while sacrificing phone memory.

Then, once I get the program more stabilized for slow cards or you get a Class 4 or better, then you can run a2sd cache.
[Hero CDMA Android Development] DJAscendance:
that worked :) im fine with that until I get a new card! still 80mb free on phone
[Hero CDMA Android Development] chunan93:
one problem

i use "a2sd nocache" and cache flag file is created on /sdcard indeed. after reboot Davlik Cache is back to sd card since /sdcard is not mounted yet while 04apps2sd is executing :(
[Hero CDMA Android Development] tkirton:
No problem.
[Hero CDMA Android Development] tkirton:
Seriously? So I need to put the files back on /system/sd. Great.

I'll have a file for you to test in a moment.
[Hero CDMA Android Development] CarbonKang:
what should my swap size be at when partitioning it?

i have a class 4 8 gb card
[Hero CDMA Android Development] MILH0U5E:
I'm running the RegawMod and get constant FC reboots while trying to connect phone to PC to check adb...

It didn't take me phone too long to go from boot to home screen... def not 10minutes.

After phone gets to home screen, with everything appearing to be in working order, I plug in USB to test through adb. Once I do that the USB screen shows up, but freezes, then reboots...

Definitely doesn't work with RegawMod... tried a nandroid backup, redoing the entire partition sd thing, and re-flashing this zip... usb screen still freezes, then reboots. I have a class 6 8gig card, set swap at 64mb, and left the ext at 512 with fat set at remainder.

Any ideas?
[Hero CDMA Android Development] Gregalous:
I'm having problems setting up swap. I have a swap partition set for 32mb. I'm getting this error:

/system/bin/a2sd swap
[*] Starting Darktremor A2SD version 2.6
[ ] Turning swap on
swapon: /dev/block/mmcblk0p3: Device or resource busy
[ ] Removing flag to prevent swap from activating during boot.
rm failed for /sdcard/a2sd-noswap, No such file or directory
[*] Swap activated.

It says swap activated, but:

a2sd check
[*] Starting Darktremor A2SD version 2.6
[ ] Checking A2SD links.

A2SD Status Report
==================
[*] /data/app link active.
[*] /data/app-private link active.
[*] /data/dalvik-cache link active.
[X] Swap partition NOT present.

Any advice?
[Hero CDMA Android Development] tkirton:
Okay...I'm still looking into this. I was trying to have a2sd make more exceptions for Fresh 2.0d, but I'm not having much luck. I'm going to try to force the SD Fat32 partition to mount...but I'm not sure how that affects the operation. I'm testing right now. Be patient.
[Hero CDMA Android Development] tkirton:
Which ROM are you using? I think I'm having lots of issues with Fresh 2.0d (again).
[Hero CDMA Android Development] Gregalous:
DamageControl 2.07
[Hero CDMA Android Development] tkirton:
Try the 2.5 version (http://www.darktremor.com/files/misc/a2sd-2.6-signed.zip) and see if you have the same problem. The operation of the code is basically the same (only difference core-wise between codes was the flag files and consolidating the mounts).
[Hero CDMA Android Development] tkirton:
You don't have to have a swap file...but if you set one, don't set it greater than 64MB (performance degrades with anything larger). Typically it's 32MB.
[Hero CDMA Android Development] fixxxer2008:
this worked great for me on my 1.5 rom and it actually sped up the rom even more than it was, great work to the dev! :D
[Hero CDMA Android Development] MILH0U5E:
I got it working by doing a total wipe, then redoing all the other steps... instead of using the backups from MyBackUp, I just reloaded everything from market.

Who knows... maybe it had something to do with that.
[Hero CDMA Android Development] tkirton:
Probably has something to do with Dalvik Cache. I have been fighting that since I put out 2.5.
[Hero CDMA Android Development] smw6180:
I finally had to give up and go back to 2.5. I was unable, even after a wipe and clean flash of dc 2.0.7.2. I nuked/repartitioned my SD card. I wiped everything on the phone multiple times. All I achieved was constantly getting a rebuilt dalvik every boot. I don't know what's wrong, or if it was something I did. logcat didn't show anything wrong...just the rebuild.

Sorry Tkirton. Tried everything I could think of to get around it.
[Hero CDMA Android Development] tkirton:
New Version 2.6.1

New version 2.6.1 available. This is mainly a fix to 2.6.

- Fixed a couple of bugs, especially the issue with the swap partition not activating.

- Relocated the flag files back to /system/sd

- Move the mount to the beginning of the file (so the ext partition will be available for all functions)

- Inserted code preventing the dalvik-cache from moving during boot for Fresh 2.0-based Roms (got into a boot stall during testing).

Move Dalvik-Cache on boot version:

http://www.darktremor.com/files/misc/a2sd-2.6.1-signed.zip

Prevent Dalvik-Cache move on boot version (for slower SD cards)

http://www.darktremor.com/files/misc/a2sd-2.6.1-nocache-signed.zip
[Hero CDMA Android Development] tkirton:
Do you have your SD card setup as ext3? I'm curious on how a Samsung Moment sees this partition.

Can you give me directory list of /dev? You can send it to me at rtkirton at gmail dot com
[Hero CDMA Android Development] nfinitefx45:
I think the ability to pick and choose location is what I would like to see most. I was thecking out the way cyanogenmod's apps2sd and reading about it. It seems he did most of the functions thru the frameworks. This way he actually added the new locations (sd-ext/app/)while preserving the old locations(system/app/) without symlinking the two. This sounds almost like you would have to start from scratch to build.
[Hero CDMA Android Development] tkirton:
I have a package for you...not sure it will work, but it is formatted to the Moment as best as I can: http://www.darktremor.info/temp/a2sd-2.7-moment-signed.zip
[Hero CDMA Android Development] tkirton:
It's already done:

/data/app

/data/app-private

/system/app

/data/app and /data/app-private are moved to the sd card. /system/app is not.

And this is Cyanogen's original design, which is retained in all versions of A2SD.

Now, if he's adding more directories, he's probably is modifying that via framework..in which I'll have to figure out Java to make that work. This will definitely require a friend's help on this. :)
[Hero CDMA Android Development] nfinitefx45:
well my guess is that he is using the frameworks to implement the front end (ui).
[Hero CDMA Android Development] grumpySasquatch:
hmm i was just wondering, if i put my dalvik on my sd when i wipe the dalvik is it resetting from sd? or do i have to put it back onto system wipe then back to sd?
[Hero CDMA Android Development] tkirton:
If he's using a GUI front end, I do have that proposed as a feature. I would really like to migrate to that over the way I'm currently doing it (adb shell).

I'm trying to get a developer buddy of mine who's really good with java to help me with this. So far, both of our schedules are rather busy, so it may be a little while.
[Hero CDMA Android Development] tkirton:
If you have dalvik-cache on the SD and you perform a dalvik wipe, it should just wipe the files from /system/sd/dalvik-cache, providing you are not flashing a Rom (the rom may reset it back to /data/dalvik-cache when it is flashed).

If you just want to clear your dalvik-cache without going into recovery, you can type a2sd resetcache in an adb shell and that will clear your dalvik-cache (also reboot your phone).
[Hero CDMA Android Development] Telgar:
Tx for the app. Working great on htc hero and aloysius 2.1 from koni.
[Hero CDMA Android Development] tkirton:
You're entirely welcome.
[Hero CDMA Android Development] wingzfan:
Ok Im getting stuck in a bootloop for almost 40 minutes

Im running the official 2.1 rom with the newly found root.

Ive partitioned the drive

setup the ext2 to ext3

Install a2sd

Rebooted.

Then I run: /system/bin/a2sd check

It shows everything still runs from the internal storage so I run: a2sd repair

Still shows internal storage so I run: /system/bin/a2sd install

Finally shows apps run from sd card but Dalvik runs from internal which is fine by me

I reboot and get stuck in the loop.

Any ideas?
[Hero CDMA Android Development] wingzfan:
I got this running but I have a question. Do only market apps install to the sd card? If I install using Astro it goes to internal memory. How can I move it from internal to the sd card?
[Hero CDMA Android Development] nfinitefx45:
it should install to the sd card even through internal installers.
[Hero CDMA Android Development] wingzfan:
Hmm, for whatever reason astros installing to the internal memory. Is there a way after the fact to move apps to the sdcard or would I need to reinstall a2sd to get it to move? I'll try another app installer as well.

Apk manager did the same thing as astro.
[Hero CDMA Android Development] nfinitefx45:
/system/app/ is internal storage

/data/app/ is external storage

you can do a ls in the directory to see where it actually is

the move command would be

mv /system/app/<name of apk> /system/sd/app/<name of apk>

or

mv /system/app/<name of apk> /data/app/<name of apk>

as the symlinks should put it to /system/sd/app
[Hero CDMA Android Development] wingzfan:
Well looking at the file location they are correct. The app Im installing is installing into data/app. Its dropping the a2sd free mb's properly but also dropping my internal storage. Im wondering if the app must use internal memory for saved data. Docs to go does the same thing.

What I did notice is the sprint apps still remain in the internal storage. Is that right?
[Hero CDMA Android Development] nfinitefx45:
that is a good bet, but sounds like your setup is working properly
[Hero CDMA Android Development] wingzfan:
That is exactly whats happening. I installed a market app and went back and installed the exact app through astro and both went to the a2sd partition.

Thanks for your help
[Hero CDMA Android Development] gunnyman:
WOW Thanks giving it a go now.
[Hero CDMA Android Development] gunnyman:
Ok here's what I get.

First run installs then moves apps over, but no symlinks are made, then on reboots I get boot loops.
[Hero CDMA Android Development] acolwill:
I'm assuming you're talking about either the Desire 2.1 newly found root... or the new Hero 2.1 with root...

Either way, I've flashed the 2.1 rom for the Hero from

http://xdaforums.com/showthread.php?t=694786

Found A2SD was fsck'd and tried this version.

Same boot loop once flashed the zip, booted and run a2sd check from adb shell.

Only way to fix was to do a wipe from recovery :(
[Hero CDMA Android Development] gbishop18:
Is the 8gig card that comes with the eris a class 4? It seems that I can't use a2sd without moving delvik cache to the sd card either. Is that because I don't have a class 4 memory card? Running evil eris 3.0 on rooted eris. if i move delvik cache to the sd card I get a boot loop at the skateboarding androids screen. if i don't move it and just move apps i get a boot loop at a black screen after that. I had a2sd working on evil eris 2.0.1 with a2sd 2.5. can someone tell me what I'm doing wrong.
[Hero CDMA Android Development] jbaruch76:
i am missing navigation app after installing.
[Hero CDMA Android Development] tkirton:
A2SD is probably not running at boot. So your ext partition is not mounted.

Doing the A2SD check mounts it if it isn't mounted (due to running a2sd itself).

You would need to go back to the rom developer and tell them to add a2sd support in the init.rc of the boot.img. A true rom developer will know what you are talking about.

If they need to know how, they can PM me or e-mail me at rtkirton at gmail dot com.
[Hero CDMA Android Development] tkirton:
Could be ZipAlign. I'm releasing a version (as soon as I'm done testing) that has that feature turned off by default.
[Hero CDMA Android Development] tkirton:
Does the ROM support A2SD? If not, this isn't going to work. You'll need to contact the rom developer and ask them to add A2SD support. If they need assistance, they can PM me or e-mail me: rtkirton at gmail dot com
[Hero CDMA Android Development] tkirton:
Did the install and move over all happen from boot or was it part of a2sd install?

If it is part of boot, I would love to see a logcat of the boot. It may give me an idea what to modify.

If it didn't, then the A2SD isn't loading on reboot (could be a different way the a2sd needs to load or the rom doesn't support it). A logcat of the boot process will show that.
[Hero CDMA Android Development] SeanieC:
Modaco 3.31.751.1

Im running the Modaco 3.31.751.1 rom from the kitchen, which should be based on the "Official HTC 2.1 (3.31.751.1 Chungwa Taiwan)"

After trying various things I've fully wiped the Hero and a 8GB Card

Ive partitioned the drive

setup the ext2 to ext3

Install Modaco

Install a2sd

Rebooted. Comes up fine.

Then I run a2sd check from the shell

It shows everything still runs from the internal storage so I run: a2sd repair

Finally shows apps and cache run from the SD card

(as I'm tried it multiple times it also sometimes shows apps run from sd card but Dalvik runs from internal which is fine by me but i get the same result with the same fix)

I reboot and get stuck in the loop, constantly rebooting.

During this I fire up adb shell and run a2sd check which shows:

c:\sdk\tools>adb shell

# a2sd check

a2sd check

Starting Darktremor A2SD version 2.7 update 1

[ ] Mounting /system as read-write

[ ] Mounting /data as read-write

[ ] Starting A2SD in check mode

[ ] Running A2SD Check Program.

[ ] Searching for Mount Point...

[!] Mount point found..no further action required.

[ ] Checking for ext partition

[!] Ext partition found, but not mounted.

[ ] Checking Ext partition...

e2fsck 1.40.8 (13-Mar-2008)

/dev/block/mmcblk0p2: recovering journal

/dev/block/mmcblk0p2: clean, 358/500856 files, 256669/1000000 blocks

[ ] Mounting ext partitions

[*] Ext partition mounted.

[ ] Checking A2SD links.

A2SD Status Report

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

Apps - [*] Linked to SD Card.

[*] File .noa2sd not found.

[*] Programs run from SD card

To run from internal storage, type a2sd remove

Private Apps - [*] Linked to SD Card.

[*] File .noa2sd not found.

[*] Private Programs run from SD card

To run from internal storage, type a2sd remove

Dalvik Cache - [*] Linked to SD Card.

[*] File .dalvikcache found.

[*] Dalvik runs from SD card

To run from internal storage, type a2sd nocache

Swap - [*] Partition present.

[*] File .noswap found.

[!] Swap does not start.

To activate swap, type a2sd swap

ZipAlign - [*] Running at boot.

Property Patch - Property found.

cm.filesystem.ready or dc.filesystem.ready

[*] Boot image init.rc patched.

And then the Hero will boot just fine.

I have a logcat of this all happening if that helps?

Thanks in advance

Sean
[Hero CDMA Android Development] awishstar:
I am a noob at A2SD so hopefully someone can help me. I think I installed A2SD correctly but my internal memory show only 25mb free (60 apps) using systray app.

I wiped everything, partition SD, ext2-ext3 upgrade, install damagecontrol 2.09.1, install A2SD...

I tried a2sd check/repair/install but the internal memory keep on going down.

I look into /data/app/ & /system/sd/app/ and see all my apps are in there. (someone said to look there for external storage)

Here is a2sd check:

Starting Darktremor A2SD version 2.7 update 1
[ ] Mounting /system as read-write
[ ] Mounting /data as read-write
[ ] Starting A2SD in check mode
[ ] Running A2SD Check Program.
[ ] Searching for Mount Point...
[!] Mount point found..no further action required.
[ ] Checking for ext partition
/dev/block/mmcblk0p2 /system/sd ext3 rw,noatime,nodiratime,errors=continue,data=
ordered 0 0
[*] Ext partition found and already mounted.
[ ] Checking A2SD links.

A2SD Status Report
===============================================================
Apps - [*] Linked to SD Card.
[*] File .noa2sd not found.
[*] Programs run from SD card
To run from internal storage, type a2sd remove

Private Apps - [*] Linked to SD Card.
[*] File .noa2sd not found.
[*] Private Programs run from SD card
To run from internal storage, type a2sd remove

Dalvik Cache - [*] Regular directory.
[*] File .dalvikcache not found.
[!] Dalvik runs from Int. Storage.
To run from SD card, type a2sd cache.

Swap - [*] Partition present.
[*] File .noswap not found.
[*] Swap starts.
To deactivate swap, type a2sd noswap

ZipAlign - [*] Running at boot.

Property Patch - Property found.
cm.filesystem.ready or dc.filesystem.ready
[*] Boot image init.rc patched.

#

Thanks for your help.
[Hero CDMA Android Development] tkirton:
A2SD isn't starting at boot. 99% of the time, it's a rom issue.

Modaco roms are highly notorious for not working with Darktremor A2SD.

Run a2sd remove to reset everything back...that will fix the bootloop by setting everything back to internal storage.

EDIT: Actually, do send me the logcat. Email is rtkirton at gmail dot com. (at = @ and dot = .)
[Hero CDMA Android Development] tkirton:
Dalvik cache is set for internal memory. Darktremor A2SD doesn't move dalvik-cache automatically. You have to execute a2sd cache to move the dalvik-cache to the sd card.

Keep in mind that the internal storage will still decrease as settings, data and other caches will remain on your internal storage. It just won't go down as fast.
[Hero CDMA Android Development] caliboy99:
I am running Fresh2.1.2 but my internal memeroy says it is still going down when i install new apps. I partitioned and ran the check to see if aps2sd is running.

Why is the internal memory still going down?
[Hero CDMA Android Development] tkirton:
Dalvik-cache is not on the SD card. This is by design.

To move it to the SD card, type a2sd cache in an adb shell session.
[Hero CDMA Android Development] PTown599:
I see

Dalvik Cache -[*] Linked to SD Card.[*] File .dalvikcache found.[*] Dalvik runs from SD card

To run from internal storage, type a2sd nocache

when executing the a2sd check command.

However I executed a2sd nocache and verified the cache files are on the internal memory, move to sd is unchecked in dconfig.

Why am I still receiving the message above?

DC 2.08.

Thanks.
[Hero CDMA Android Development] gunnyman:
I'll play with it some more and send you pastebins.
[Hero CDMA Android Development] gunnyman:
http://pastebin.com/vCqRWd3r

http://pastebin.com/0cAfmJjg

I really appreciate your help with this.