yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] djmcnz:
Too many steps.

Just flash apps2sd update script (make sure you have the one modified for CM6.1 or you'll boot-loop).

The rest is automatic (except for step #3, do that).

No need to uninstall/reinstall any apps.
[Nexus One Android Development] djmcnz:
You will need to flash the update.zip for CM6.1
[Nexus One Android Development] jimbobalu:
I am running KoR 1.0 SP1, do I need to update the apps2SD script?
[Nexus One Android Development] djmcnz:
:p

Wait for my update in a day or two... ;)

But if you're impatient (lol) and don't want to use my CM6.1 beta release then yes, you'll need to flash the CM6.1 DT update.zip... and I'm not sure that's the one linked in the first post here... I believe somebody posted a modified version for 6.1 (same changes I make in Kang-o-rama) here somewhere.

Edit: In all seriousness though, do try the Kang-o-rama CM6.1 beta in my sig, for you it's a no-wipe upgrade and it's very close to CM6.1 stable. In a few days you'll then have a no-wipe upgrade to CM6.1 Stable Kang-o-rama when I release it. ALWAYS nandroid backup first.
[Nexus One Android Development] chobie:
What is "that one modified for CM6.1"? I only see 2 links on the OP.
[Nexus One Android Development] Kman Gymrat:
^^^ That I'd like to know as well...

edit: I'm on CM6.1 and for the first time flashed DT a2sd and did the command in Terminal and it seems to be working. Is there something else/different I should've done?
[Nexus One Android Development] plasmadragon007:
It's on page 54 of this thread, post #537.
[Nexus One Android Development] Kman Gymrat:
So does that mean how I did it it's not working?
[Nexus One Android Development] dirtyhank:
I've installed the modified version on CM6.1 (final) and seems to be working fine except for one thing. If I run "mount" from the terminal or adb it reports sd-ext mounted as ext2. The funny thing is the FS is ext4 (parted reports ext4 accurately).

I've been reading the thread and other people report the same behavior on CM6.1 but i've seen no way to fix it.

It's not a big deal, but if it's really mounting in ext2 compatiblity mode I'd rather find a way to at least mount it in ext3 mode, i don't want to lose the journaling capabilities.

Any idea?
[Nexus One Android Development] lsxrx7:
can someone write us a script for data2sd ?
[Nexus One Android Development] jocaferlo:
I am using the nightlies of CM. Today, after I flashed build 281 every time I try to install an app (from Market or from device) I get a soft reboot.

In the thread of nightlies is another user with the same problem. He solves it with "a2sd remove" and flashing DT again, but it seems this doesn't work for me. After a2sd remove I get a lot of errors: there isn't space enough in the device. After script reboots the phone I missed some apps.

I had to restore a Nand backup I made before.

Is there a solution for this?

Thanks.
[Nexus One Android Development] jimbobalu:
So flashing the update will create the EXT partition and move all the apps automatically or am I missing something because I see this in your Apps2SD tutorial:

How Do I Install Apps2Ext?

DarkTremor apps2ext comes built in to Kang-o-rama but you do need to enable it and there are three important prerequisites:

1. Your ext partition MUST be set up correctly before you start apps2ext! You can do this in your recovery console (back up your SD card first) by following the menus. You can use an ext2 or ext3 partition type but do not use ext4. You do not need a swap partition.

2. If Froyo has moved some of your apps to /sd-fat then you should move them app back to internal storage. Use Manage Applications under Settings to confirm this or the previously mentioned SDMove application. Technically this is not a hard pre-requisite but see the notes above.

3. You should have a valid, working nandroid backup.
[Nexus One Android Development] djmcnz:
PM'd... :)
[Nexus One Android Development] djdarkknight96:
What problems? It's working great for me!

Edit: I see the post before that one now! Damn, working great though! Should I revert back?
[Nexus One Android Development] tkirton:
No..there's no GUI yet. Working on it.

If your partition is created (ext partition) and your rom supports it, then Apps2SD will automatically move the applications to the SD card.
[Nexus One Android Development] tkirton:
Paid apps is fixed in RC1...I will be releasing this within the next couple of days (provided something major doesn't happen).
[Nexus One Android Development] tkirton:
If you need help with your kernel, I'll be more than happy to help.
[Nexus One Android Development] pendo:
<embarrassed as he types>

I think I might have finally screwed something up....I'm totally new to the platform and have NO experience with anything like it. Feel like I've been trying to drink from a fire hose, but still soaking up all that I can.

Anyway, I've been on Enom's 2.9.2 for a week or so now, and I've been finally reading about the apps2ext system. I thought it sounded like a great idea to free up some space on my system. I know that it says that apps2sd and dalvik to cache and dalvik to sd are supported by the rom, but I guess I figured that I still needed to set it up per instructions in the op.

Where I was at last was that I had installed the zip, restarted, and then checked dalvik to cache. It was running great, did some house cleaning (moving some .apk's that were on the root of the sd to a group folder, and removing some zip's that I'd already flashed) then went to do a ROM backup via ClockworkMod.

I get endless FC popups that I can't get out of. I've got a few other nandroids that I can restore to, but haven't tried yet.

logcat

logcat *:W

your help is appreciated!
[Nexus One Android Development] tkirton:
Okay...type a2sd check in an adb shell.

1. Did you do a backup before applying the Apps2SD? If so, restore to that copy.

2. Did you run any other commands, like a2sd install?
[Nexus One Android Development] pendo:
I did do a backup before, but I have since erased in doing the aforementioned cleaning. I had actually rebooted a few times before this. Basically I've been doing a backup when I make a few changes (or before any major ones) and then if it runs ok, I delete the previous backup and make another one from where I'm at. (hope that makes more sense that it looks)

Anyway, there are still a couple other nandroids that are from before I partitioned the sd card I just haven't tried them yet as I *really* like the enom rom so far and would prefer to fix my mistake here. (not to mention learn some more about this system)

Here's the .txt from the a2sd check.

As you can see I ran the repair and then rebooted, but I'm still getting stuck in the endless FC popups..
[Nexus One Android Development] tkirton:
Hmm...I've heard of this when the dalvik-cache is on the cache partition.

Try this: run one of the following commands:

a2sd cachesd - this moves the dalvik-cache to the SD card

a2sd nocache - this moves the dalvik-cache to internal storage

The reboot may take a while...it resets the dalvik-cache, so it must rebuild it.
[Nexus One Android Development] pendo:
I'm back in! Thanks. I ran the nocache option. I kinda remember reading about that command somewhere.

Anyway, what should I do now? From shell I ran apps2sd and got this:

To add, in Enom's spare parts settings, nothing is checked now. There are 3 options:

1)OldStyle-extfs-Apps2SD

2)Dalvik-Cache on /cache

3)Dalvik-Cache on SDCard

I'm pretty sure I don't want the last as I'm still with the stock SD card.

Thanks again!
[Nexus One Android Development] Greenarcher707:
Will this work on an Xperia X10?
[Nexus One Android Development] tkirton:
Hmmm...this is technically normal since you already ran apps2sd. You have to give it a command.

But, it does show a problem...it's suppose to tell you that a command is needed when you run it straight from the command line (it can run without a parameter if it is on first boot...but that's not working).

I'll look into it before I release RC1.
[Nexus One Android Development] tkirton:
Don't know...I don't think anyone has tried it.

You'll need a rom with has the Apps2SD support in it, though...otherwise, you're not going to launch it on boot.

If you know how to both disassemble and reassemble a boot image, you can use the rom installation guide to put the necessary commands for it to launch.
[Nexus One Android Development] pendo:
Dude, can't tell you how much I appreciate it. I was getting frustrated.

Anyway, it sounds like there are at least a few roms that don't support the .ext4 partition. Is it a real big pain to roll that back? Do I just back up the card and reformat?
[Nexus One Android Development] tkirton:
No, it's not a pain per se. You back up the entire SD card and repartition it. The pain is moving files to an from the SD card.

As for EXT4, generally if a boot image is based on stock HTC kernel (from an RUU), it won't have ext4 support. If it is a boot image that has a kernel compiled from source (i.e. overclock kernel), then it's more than likely support ext4, but that would depend on who compiled it and did they compile ext4 support.
[Nexus One Android Development] pendo:
that's pretty much what I thought. I really need to get a faster card as this stock card is slooow.

I'm thinking I should go back to a ext3 or 2 partition to make things a little easier to swap roms..

Have a good one down there.. ;)
[Nexus One Android Development] tkirton:
Use EXT3...the journal will minimize corruption. EXT2 has no protection mechanism.
[Nexus One Android Development] chobie:
I use LeoFroyo but I cant seem to install this.

I type a2sd repair and it shows

[x] Programs run from int. storage

then i type a2sd check after and it shows

[ ] Programs run from SD card

To run from internal storage, type a2sd remove

Did it installed properly?
[Nexus One Android Development] chobie:
And anyone knows if this is compatible with Enomthers?
[Nexus One Android Development] leonnib4:
My rom already include a2sd scripts.

But do not assume they are darktermor's.

You should read the first post of my thread!

I rewrote a2sd in 2 files.

No need for darktermor's in my rom except for conflict.
[Nexus One Android Development] :
Hi everybody!

First time I flash DT a2sd 2.7.5.2.

My free space on phone is now 124 mb out of 196 mb (I am running CM 6.1 final). Before DT my free space was about 50mb!

My principal question is:

does DT a2sd allow me to have unlimited (yeah, it depends on the ext partition dimension) apps on my phone (or better, on my sd) saving THE WHOLE app on the sd?? I thought yes, but I installed google earth and my free space on phone decreased to 109mb.

Sorry if this question have been already answered to.

Thanks!

EDIT: my default install location in cyano-settings is set to automatic. Do I have to re-move all the apps to the internal memory under "manage applications"?
[Nexus One Android Development] djmcnz:
I'm a little confused because you quoted me twice.

Neither this script nor Kang-o-rama will set up your ext partition for you. You must do this yourself, recovery is a convenient method.
[Nexus One Android Development] jimbobalu:
It's just in the tutorial you say you have to move your apps back to internal then run the script but in your post to my questions you say to just run the script and everything is automatic, I am just trying to make sure I understand the process correctly.

I was also wondering what happens with apps that install extra additional data to the SD, will it continue to be on FAT or will it be moved to EXT? This is why I have not done this yet because I don't know what size to make the EXT partition.

Thanks for your patience with my noob questions
[Nexus One Android Development] djmcnz:
1. That's not essential but you can do it before or after installing apps2ext

2. Apps that store data on SD will still store it on sd-fat

3. I don't think you'll utilise much more than 512MB, 1GB would be way plenty

4. np
[Nexus One Android Development] djmcnz:
@tkirton

I've been thinking... and I'm not suggesting you implement this capability I'm rather drawing on your experience in this field.

As always I'm looking at options to free up space on /data and I see many cases of problematic moves of dalvik-cache to sd-ext (although I also acknowledge that it works for some/many users).

I've been looking at /cache and for all intents and purposes it does seem as if cache is more disposable than dalvik-cache, especially when you consider overall performance. Applications seem less prone to fatal errors if there is a cache error than if there is a dalvik-cache error. Indeed I can effectively dismount /cache and the phone still functions.

Yes, dalvik-cache can be rebuilt and /cache not, but in this scenario I'm prioritising space and performance over configuration.

And typically cache+dalvik-cache wont fit on /cache.

Do you have any thoughts on remapping /cache to /sd-ext/cache and dalvik-cache to /cache (giving it all the space)?

In principle this should be both more stable and faster than moving dalvik-cache to sd-ext but perhaps there are implications I've not considered?

Opinions? Anyone?
[Nexus One Android Development] jimbobalu:
Well I finally did it but I am not noticing any difference in available space, still around 30mb. If I install a large app like google earth then I once again get the running out of space message. The only way I found to free up space was to use the froyo apps2sd and move the larger apps. I've tried reinstall, repair, align, zipalign, with no luck. What have I done wrong?

See attached for the results from running check.
[Nexus One Android Development] mtw4991:
In terminal emulator, did you run the command...a2sd cachesd...?
[Nexus One Android Development] jimbobalu:
I thought this was done automatically by the script but I'll give it a try.

Well that freed up 120mb and it seems to be working as I moved some large apps, both versions of angry birds and dungeon hunter back to internal and continue to have 120mb free.

Thanks
[Nexus One Android Development] denteno:
i'm on Cyanogenmod 6.1 RC and i'm alredy using a2sd script

i wanna update to cyanogen 6.1 stable

will i lose all my apps ??
[Nexus One Android Development] mtw4991:
No, just make sure you flash DT after Rom BEFORE you reboot or you'll bootloop.:eek:
[Nexus One Android Development] :
Speaking of 6.1

I am back on it and have same problem I had with RC2

That is DT doesn't recognize ext as mounted and ext3

It is and confirmed tool Partition Wizard and working on Desire and MIUI roms

Confirmed the error by doing a a2sd check

Is this a known issue and any fix, don't want to redo sdcard, it only doesn't work right on Cyan

Ken
[Nexus One Android Development] ratson:
I think this is not related to DT, in CM6.1 nightly my ext3 partition is mounted as ext2, in fstab it's type is set to auto, but after boot I get

/dev/block/mmcblk0p2 on /sd-ext type ext2 (rw,noatime,nodiratime,barrier=1,data=ordered)

parted prints

Model: SD SD (sd/mmc)
Disk /dev/block/mmcblk0: 8017MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 512B 7505MB 7505MB primary fat32 lba
2 7505MB 8017MB 512MB primary ext3

do you have any ideas?
[Nexus One Android Development] ratson:
data2sd

any plans about including data2ext option?

http://xdaforums.com/showthread.php?t=864174
[Nexus One Android Development] :
I wish I knew ratson,

I would have liked to run kangorama. All, I know is that DT always sees my ext as 2 even if 3. And had similar issues back on Cyan. Not originally, but maybe starting a month or so ago.

Repartitioned and back on Micro's HD until someone figures it out. Don't want to partition just for one rom.

Even on DT's op page they say use ext3. So, it may be Cyan related. But, I am not tech savvy on that part of the phone.

Ken
[Nexus One Android Development] djn541:
Question...I have everything set up correctly. I repartitioned my SD today. Now when I try to move apps, it tells me I don't have enough storage on SD. I have plenty...Any ideas? BTW...I've got ext3 at 2gb.
[Nexus One Android Development] meechto:
After flashing the DT Apps2SD, you don't have to explicitly move the apps. DT Apps2SD does it automatically for you. :) So what exactly is it that you are trying to do? ;)
[Nexus One Android Development] NguyenHuu:
that is still buggy, i hope it will NOT be included in this script. keep them separate please
[Nexus One Android Development] djn541:
Not all of my apps are on sd card. When I try to move one, it says that there is no more room left. Not sure? The app doesn't say that it's protected or anything...I'm stumped.
[Nexus One Android Development] Youngunn2008:
you actually want your apps to be installed to phone after running the script, as it sees the new ext partition as part of internal memory. so you would set your install location to internal in applications settings, and make sure all of your apps are installed to the phone (although dt script does move them automatically upon first run...)
[Nexus One Android Development] yhaddad:
I had CM 6.1 and iNexus.

I flashed the zip file dtapps2sd-CM6N-2.7.5.2-signed.zip in recovery mode under flash from zip file.

I Started Terminal, and type "su" and enter, then typed "a2sd check" and enter.

I got:

segmentation fault a2sd check

What is the problem ?

Thank's!
[Nexus One Android Development] yhaddad:
anyone? :o
[Nexus One Android Development] Youngunn2008:
I assume u already wiped caches and partitioned ext? :-)
[Nexus One Android Development] yhaddad:
Yes, I did wipe to cache before installing the CM 6.1, but not wipe to partioned ext.

I need to do wiped caches and partitioned ext before install a2sd?

If yes how can I backup all apps ?
[Nexus One Android Development] meechto:
You will need to flash the DarkTremor Apps2SD zip soon after flashing the ROM without rebooting the phone. That should take care of this error :)
[Nexus One Android Development] yhaddad:
So the steps are:

1. Wipe cache + sd ext ?

2. Installing rom 6.1 + iNexus + a2sd?

After that: Setting => CyanogenMod settings => Application settings => check application moving ? and Install location => Internal ??

Thank you!
[Nexus One Android Development] meechto:
Yes. Pretty much. Not quite sure about wiping sd-ext though. I usually only wipe cache and Dalvik cache unless I am coming from another ROM all together in which case I do a complete wipe.
[Nexus One Android Development] D200P13:
i have less than 50 apps and my internal goes down faster than my ext. is something wrong? i notice i have basically the same apps (data/apps) and (sd-ext/apps) has about the same files in both directories. i dont know much but shouldnt this install almost all data to the ext not internal?

also, i notice (on titanium backup) that the amount of free space stays exactly the same for internal when moving apps to sd (froyo method) but the ext does seem to free up. is this normal?
[Nexus One Android Development] meechto:
Yes. This is perfectly normal. :) You see the same apps in /data/apps and /sd-ext/apps because apps2sd creates a symbolic link (something similar to desktop short cut in Windows) in /data/apps for apps in /sd-ext/apps. Hence you see the same apps in both places. But what you see in /data/apps are just short cuts :)

The same is true for apps moved to SD card using the Froyo method. But with this method the apps are not moved to /sd-ext/apps but to a secure folder on the SD card. So when you move the apps using the Froyo method, the apps are removed from the /sd-ext/apps and put into this secure folder. That is why you see space decreasing on the /sd-ext/apps ;)

/¯/¯/EEEEEEEEECH.....TO

Device: Nexus One -Rooted, Unlocked BootLoader

OS: Android 2.2.1

Radio: 32.50.00.32U_5.12.00.08

ROM: CyanogenMod-6.1.0 Stable

Kernel: CyanogenMod Stock Kernel

Recovery: Amon_RA's Recovery RA-nexus-v2.0.0

Storage: SanDisk 16GB Class 2 MicroSDHC Card with 1GB EXT3 Partition

Apps2SD: DarkTremor Apps2SD 2.7.5.2 -All apps & Dalvik Cache
[Nexus One Android Development] D200P13:
very helpful. so there is no way to free up the memory of internal besides deleting apps? i was really hoping this would help me run a ton more apps with losing less internal space
[Nexus One Android Development] meechto:
Well, there is actually! You can move the Dalvik cache to your SD card by running the following command:

a2sd cashesd

This will free up considerable space on the internal memory. :)

Also run the below command to make sure that apps2sd is set up correctly:

a2sd check

/¯/¯/EEEEEEEEECH.....TO

Device: Nexus One -Rooted, Unlocked BootLoader

OS: Android 2.2.1

Radio: 32.50.00.32U_5.12.00.08

ROM: CyanogenMod-6.1.0 Stable

Kernel: CyanogenMod Stock Kernel

Recovery: Amon_RA's Recovery RA-nexus-v2.0.0

Storage: SanDisk 16GB Class 2 MicroSDHC Card with 1GB EXT3 Partition

Apps2SD: DarkTremor Apps2SD 2.7.5.2 -All apps & Dalvik Cache
[Nexus One Android Development] D200P13:
export PATH=/data/local/bin:$PATH

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

$su

# 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

Low Memory

Killer Settings - [*] 1536,2048,4096,5120,5632,6144

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] meechto:
Looks perfect! Just run the command for moving the Dalvik cache to SD card :)

/¯/¯/EEEEEEEEECH.....TO

Device: Nexus One -Rooted, Unlocked BootLoader

OS: Android 2.2.1

Radio: 32.50.00.32U_5.12.00.08

ROM: CyanogenMod-6.1.0 Stable

Kernel: CyanogenMod Stock Kernel

Recovery: Amon_RA's Recovery RA-nexus-v2.0.0

Storage: SanDisk 16GB Class 2 MicroSDHC Card with 1GB EXT3 Partition

Apps2SD: DarkTremor Apps2SD 2.7.5.2 -All apps & Dalvik Cache
[Nexus One Android Development] D200P13:
so not a cachesdreset just a cachesd?
[Nexus One Android Development] meechto:
Yep. That should do. There is no harm in using cachesdreset but it will take longer to boot the phone when the script restarts it.
[Nexus One Android Development] djmcnz:
It will, a lot more.

Don't worry about internal space decreasing, just worry about it running out.

It all depends on the app mix but I have ~250 apps with 40MB free internal (cache still on /data) and it's no problem at all. There no chance at all I could run that many without apps2ext (my app mix).

Internal space will reduce slower with apps2ext, not stop reducing.