yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] meechto:
houzuoguo, your setup is pretty correct :) You don't have to manually move the apps to the SD card. Upon doing so you will only be moving the apps to .android_secure folder on the SD card (Froyo method) and not to the /sd-ext ;) Please refer to my posts on page nos. 61 and onwards of this thread where I have tried to explain the working of Apps2SD in layman terms and my experience related to it.

I don't see any issues in the output of your a2sd check command except for the Dalvik cache still resides in the internal memory :confused: The Dalvik cache can take up considerable space and moving it to the SD card frees up all that memory. For instance, in my case, with the usual system apps and around 60 user apps installed, the Dalvik cache is 70 Mb. I have it moved to the SD card and hence have 131 Mb of internal memory free :D The remaining 65 Mb is consumed by browser caches and applications data that is stored on the internal memory :( There are ways of moving these to the SD card as well but I would rather spare my poor class 2 SD of frequent reads and writes ;)

I understand your apprehension about moving it to a class 2 SD card (as I get from your signature), but, in my opinion, you should give it a try. I have the same card as of yours and I don't experience any performance issues :) No regrets whatsoever :D

You may want to try the df -h command for getting the details of memory consumed by each partition (internal as well as external) on your phone :)

Cheers :D
[Nexus One Android Development] knox420:
Sounds pretty good. Be aware that the Mac OS Finder will not display files/folders with a "." prefix. This might also affect backing up your sdcard.

I verified the backup via terminal ("ls -al" to display hidden files/folders) and also used terminal to put .android_secure/ back to the partitioned sdcard. I recommend using terminal. here are the necessary commands in case you are unfamiliar with terminal usage (assuming your sdcard is in your computer and it's named "sdcard"):

back up entire sd card to a folder "sdcard_backup" on your desktop:

cp -R /Volumes/sdcard/ ~/Desktop/sdcard_backup/

restore your backup to sdcard:

cp -R ~/Desktop/sdcard_backup/ /Volumes/sdcard/

This will verify that you create an exact copy of ALL files on your sdcard. This way you make sure you do not miss any of the "." files/folder that Finder will eventually miss.

You enter the terminal commands prior and post partitioning, of course. Did it all on Mac OS as well
[Nexus One Android Development] Forge94:
You sir, are a winner.

Thank you so much!
[Nexus One Android Development] knox420:
You're very welcome, hope it helps. Let me know if you run into any problems. We share a time zone ;)

Good luck and merry christmas
[Nexus One Android Development] houzuoguo:
Thanks for your help Meechto.

I found an interesting fact... I guess Dalvik cache will only be generated after I have run an app.

But here on my phone, I installed a big app such as Google Earth and immediately check available internal storage space, found the space decreases a lot but does not equal to the size of Google Earth... And I'm even getting "low space" notification!

I was using Froyo App2SD with more than 150 apps on SD card, about 6 apps in internal storage, and I still had more than 60MB free space on internal storage. This time I done a clean installation of CM together with DTapp2SD. I'm not sure but I guess Froyo App2SD does NOT put Dalvik cache on SD card so.... I guess probably it wasn't the Dalvik cache took all my internal storage space?

I highly suspect that Android doesn't calculate available internal space correctly with DTapp2SD... well :) could anyone please share any experience on this?

Edit:

Interesting! My phone started installing applications automatically on SD card because there's no more space on Internal Storage! But my ext4 partition has only used 12%..

Edit again:

I moved dalvik cache to SD card but while moving I got a lot of "out of space" error, I had to reboot my phone and it entered boot loop, now I have to clean-install everything again :( sorry I had no nandroid.
[Nexus One Android Development] meechto:
Quite interesting facts indeed :) Never experienced or read any thing like that before. One thing I overlooked while reading your previous post is that you have an ext4 partition unlike me having an ext3 one. Not quite sure whether DT Apps2SD handles them differently :confused:
[Nexus One Android Development] knox420:
@Forge94: Did it all work out for you?
[Nexus One Android Development] Forge94:
Yep all working fine.

Thanks for all your help. I would have probably uninstalled all my apps if it weren't for your instructions. Saved me lotttttts of time and effort :)

Now to sort out my hardware issues and I'm all set!
[Nexus One Android Development] knox420:
great, glad to hear that since reinstalling is a huge PITA.
[Nexus One Android Development] kindiboy:
Everything is working fine except one this am getting this message everytime I try to install an app from the SD card

Parse Error: There is a problem parsing the package

anyone have an idea why?
[Nexus One Android Development] ratson:
in the desire forum someone has the same ext2/3/4 issue
[Nexus One Android Development] catzilla:
Yep, ext issue still unsolved.
[Nexus One Android Development] wenchien:
@ratson: Does replacing '-t auto' to '-t ext3' in /system/etc/init.d/05mountsd make the partition mounted as an ext3?
[Nexus One Android Development] mynameisjon:
just a quick question, what's this ext4 read as ext2 problem? Does it affect performance?
[Nexus One Android Development] Tanknspank:
So, I was working on getting this working on Sapphire on the Droid 1. I haven't been able to talk to cvpcs to since I've started, so Idk if it's a rom issue or what, but I thought I would throw this out here for anyone who might know so I can go ahead on this.

I started working on this last night using the stock kernel that came in the rom. I did everything up to step 10, and chose the Direct Apps2SD Method. After adding that into the init.rc, I got through everything else and made the ramdisk using

I found that info in the sholes BoardConfig in the source for the GEM rom series, so I'm not 100% sure it is correct, but it DID boot, so that is a plus :D

I flashed the boot.img and moved onto partitioning my SD card, a 16GB Class 2, using GParted. I partitioned my SD card to

After that, I decided to start fresh and reflashed the rom (included the boot.img in it this time) and downloaded a few apps after setting everything up. I went into the terminal and typed

but got this as the last few lines of output:

So, I looked around and saw the check command, and after trying it got an output that my ext3 partition was found but not mounted.

I have the source for sapphire already downloaded (have had it downloaded for a while and keep it up to date) so I was just wondering if there was something I needed to add to the source to get this to work? or is there something simpler? I down for whatever you all have to suggest.
[Nexus One Android Development] ratson:
interestingly 05mountsd was missing from that directory, maybe dtinstall removes it?

after restoring it from latest cm6 nightly, if I leave partition type on auto it is still ext2 if i force -t ext3 than it also remains ext2. I guess ext fs is mounted elsewhere....
[Nexus One Android Development] scalp42:
After using DT Apps2SD, I sucessfully "moved" my apps to the ext partition.

But I actually still run out of space internally : /data/data contains all those huge libraries (and often in double libffmpeg for ex) that end up taking all the internal space (along with other files of course).

1) Is it possible to move the data to the ext partition ? Let's say with CM6 nightlies for ex ? (Im using the customised version of DT so that dalvik stays on the ext everytime I flash, but should not make any difference).

2) Also in my case, the cache partition is almost empty everytime, but doesn't fit my dalvik cache (too big), maybe I could try to ln some of those libraries ?

Any input guys ? Thanks in advance!
[Nexus One Android Development] bsteph10:
Move one app to Internal storage

Hello,

I've searched high and low for an answer to this question and I'm very sorry if I missed it. I finally got my apps2sd set up with CM6 on my Droid 1 using darktremor's script (beer money on the way :D). I have 168 MB of free internal memory and loving it. However, I'm having trouble with one program/widget combo. I use the Touchdown Exchange app with Android Agenda Widget and I keep getting "problem loading widget" when I reboot. In fact, I can't get the Android Agenda Widget to connect to the TD data at all. I feel like moving these two apps back to internal would help this issue. Is there a way to move individual apps back to internal storage or is it all SD or all internal?

Thank you in advance for your help :)

Bryan

PS. I don't know if this is pertinent, but TD stored it's data in the internal storage, but the app is in the sd-ext partition. TD seems to be functioning fine like that.
[Nexus One Android Development] scalp42:
Same here, wondering if it affects that much performance ? Pretty sure we lose journaling though ?
[Nexus One Android Development] djmcnz:
You can but they'll need to go in /system/app/. Every time you upgrade them from the market they will be (re)installed to /sd-ext/app/ so you'd need to move them to /system/app/

This is the only option because the "internal" /data/app/ directory effectively no longer exists.
[Nexus One Android Development] djmcnz:
Re #1: Yes, a few people have tried with with success on my rom. In fact my installer script even looks for moved /data/data/ and tries to preserve it when you upgrade. It's not widely tested or supported however.

Re #2: You can try but every time you upgrade an app with a library it will fail IIRC.
[Nexus One Android Development] ratson:
ext2 is faster but less safe.
[Nexus One Android Development] d1mitrov:
question, so once i install this, every new app i download will automatically go on the partition? even tho when i go under settings manage applications it says they are all on the internal memory? i have about 250 apps and i have 40mb of internal memory free...does that sound right or should i have more?
[Nexus One Android Development] D200P13:
dont know if this is considered off topic and if i am way off but.... has anyone applied data2whateverv0.2e (data2ext/whatever) ontop of Darktremor? flash order CM6.1.1 > Darktremor > data2ext/whatever.
[Nexus One Android Development] chuunarusamurai:
I was also curious about this as well sjnce. I know for sure my setup correct
[Nexus One Android Development] bsteph10:
Thank you dj, I'll try that out.

Also, has anyone else had trouble loading an overclock kernel after using darktremor's script? I'm using CM 6.1.2 which is oc'd to 800Mhz, but of course I want to try to go a little bit more than that :-). However, everytime I load a new kernel in recovery and reboot my sd-ext (using ext3) partition is gone and all of my apps that I loaded personally are gone but the stock apps that come with CM are there. I've tried to make sure that the kernels are ext3 compatible. I've used JDLFG, P3Droid with his Ext2-3-4 addon, and Chevy, all with the same result. I also reload darktremor after applying the kernel but that doesn't make a difference.

Thanks,

Bryan
[Nexus One Android Development] bsteph10:
Hi, Yes, all new apps are automatically sent to the partition. Make sure you don't turn on apps2sd in CM settings and basically ignore what the apps say in "Manage Applications." Android thinks they're all internal but they're really on the partition. Don't do "Move to SD" in Manage Applications either because that will move them to the FAT32 Partition.

If you look on page 68, user djmcnz shows a way that you can manually move certain apps back to internal. I have to tell you if you're thinking about doing this I would highly recommend it, doing this script has made a HUGE difference in my Droid's performance.

Also, make sure you move the dalvik-cache to the partition as well, that freed up over 60MB of internal memory for me.
[Nexus One Android Development] Hilarium:
oh... i have about 61 apps installed, and my internal space is 20mb left. without darktremor, i can't even install 30+ apps.(does that sound right?, i made a swap and partitioned 1gb)

i'm not using dalvik to cache until i get a faster sd card.

right now i have everything on the SD Card( i moved them all to sd), so since i'm using darktremor, should i just move them back to the internal(Move To Phone)? even though i'm not using dalvik to cache?

oh and where is the CM setting for enabling/disabling app2sd? is it just cm settings > application settings > install location and just set to Internal?
[Nexus One Android Development] qwertyboiz:
hi i'm currently using nadlabak's cm 6.1.2 for milestone. after running dt, sd card does not mount and the milestone cannot read the card altogether, whether fat32 partition or ext2.

any solutions?
[Nexus One Android Development] zenzip:
Hi i'm using darktremor on CM 6.1.1. first i wipe ALL data, then partition sd card Swap 0 - Ext 512MB, after that i upgrade EXT partition in EXT3. So i flash zip of darktremor app2sd, then reboot and when i write a2sd check i see: Partiton Type: EXT2 why? if i've formatted in EXT3!

Other question is, after then i've installed darktremor script why the Internal storage memory of my NexusOne is only 196MB and in wich way i can be sure that the app are installed on EXT partition?

Ty, and sorry for noob questione, this is my first time with app2sd :D
[Nexus One Android Development] mtw4991:
No worries, you did everything correctly. ext3 is just "seen" as ext2 by the script. The N1's internal available memory IS only 196mb max available, that's why we need a2sd!

You can be sure if you go to the root of the sd card, you should see an sd-ext folder and inside will be an app folder and a app-private folder...there are you apps moved to a2sd. The script creates a symlink from /data to sd-ext, thereby fooling the system into thinking the apps are stored internally.
[Nexus One Android Development] mtw4991:
here is a question that I don't want to try without a knowledgeable answer....

If I'm using Titanium Backup and I batch move all user apps to Internal, will DT's a2sd script put them on the sd-ext partition or the /data/data partition?

What about batch move to SD? sd-ext or FAT?
[Nexus One Android Development] Hilarium:
I want to know this as well. What is the difference between the Fat and the sd-ext, they are both on the SD Card right?
[Nexus One Android Development] zenzip:
Fu so much, Now it's all clear for me.

Last question id affter fullwipe i install app in internal storage And then i flash app2sd in wich way i can move all app in the ext partition?

PS.

Is better move cache and dalvick cache on ext?

I've class 2 sdcard.
[Nexus One Android Development] temasek:
Flash DT a2sd immediately after flashing of a ROM before you reboot.

1. 1st time u flash DT script, upon reboot it will auto move your apps to ext partition.

2. I suggest u move dalvik-cache to sd, class 2 no issue ---> a2sd cachesd

3. Thereafter any app u install will be installed to ext as the system thinks that ext partition IS internal.

4. Your apps's data will still reside in REAL internal as /data/data

5. In any case if U have some apps still residing in your SD (Froyo a2sd), simply move it to INTERNAL.

Enjoy :)
[Nexus One Android Development] zenzip:
Ko

Ok but now i've all app in REAL internal storage and i havent app2sd, if now i flash app2sd is impossible to to move app in ext? I must only make full wipe and reinstall ROM app2sd and then reinstall apps? I would not reinstall all :-)

Thanks
[Nexus One Android Development] mtw4991:
Dang! you fast AND get around!;)
[Nexus One Android Development] temasek:
Do you have your ext partition ready? If yes then its no issue.

As I said, 1st time u flash DT script, upon reboot it will AUTO move your apps to ext partition. No need to manual move cuz you cannot have 2 x /data at the same time.

I suggest u nandroid first cuz its your 1st time :)
[Nexus One Android Development] temasek:
I am like 5 seconds behind u when u KANGED the avatar from fits!!!:mad:

LOL :D
[Nexus One Android Development] zenzip:
I must do my ext partitiom because i've deleted it in morning :-(. If now i make partition and flash and then copy the previous sd data on FAT partition it will work and move my internal app in ext right?

Thanks.
[Nexus One Android Development] temasek:
If you are partitioning now, I take it as u know what u are doing. But to be safe, I suggest u backup your SD CARD contents just in case something not right and everything in SD CARD is gone.

Once u are ready, proceed to the steps as mentioned (Nandroid first). It will AUTO move. If it doesn't, just MOVE it. LOL :D
[Nexus One Android Development] mtw4991:
sry bro;) btw, do you set Install Location to automatic or Internal in CM Settings? Mine have been set to automatic, but DT's script is installing some to /data and I have to "move to phone" manually in Applications cuz they keep showing up on the SD Card in Manage Applications???
[Nexus One Android Development] temasek:
Internal and disabled "Allow application moving"

In GB, you must read the tab "On SD Card" as this....

1. All applications in this tab are "MOVABLE TO SD CARD" as per app's dev specifications

2. If any app inside the tab has a "TICK", it is REALLY installed in your FAT SD CARD. Then simply move to phone and it will be "UNTICK" but still showed inside this tab.

I don't like the way they show this stuff, makes me CONFUSED in the beginning too.
[Nexus One Android Development] mtw4991:
thx again...always got confused with that one, lol.
[Nexus One Android Development] temasek:
Np, btw I think u missed my edited portion.....

In GB, you must read the tab "On SD Card" as this....

1. All applications in this tab are "MOVABLE TO SD CARD" as per app's dev specifications

2. If any app inside the tab has a "TICK", it is REALLY installed in your FAT SD CARD. Then simply move to phone and it will be "UNTICK" but still showed inside this tab.
[Nexus One Android Development] zenzip:
Double post, wrong sry.
[Nexus One Android Development] mtw4991:
Got it the second time lol, now it makes sense. I moved all ticked to phone and sdext went down...so did /data a little bit but still 120mb /data with 97 apps.
[Nexus One Android Development] temasek:
I have 297 apps with 60mb left in internal :D

Yup it makes no sense for us who uses ext partition to use FAT a2sd for apps.
[Nexus One Android Development] Hilarium:
i have 51apps with 20mb left over . no dalvik-cache to sd though. all my apps resides in FAT. any difference between storing the app on the sd-ext and the FAT?(they're both on SD).

i'm not sure why i have so less storage, something wrong with my DT? if i do the dalvik-cache command, do i have to do the command everytime i flash DT when i want to change roms?
[Nexus One Android Development] zenzip:
Ok flashed and seems work. But in system/app i have all.apk fullsize and no symlinl to them. Ive both apk also in sd-ext/app folder. Its normal or i must move manually?
[Nexus One Android Development] temasek:
1. If you are using DT a2sd, there is NO reason for u to install apps to FAT SD (which system think as external)

2. If you are using DT a2sd, I highly suggest u move dalvik-cache to SD.

3. System thinks ext partition is INTERNAL, so anything can be installed to it. Widgets, services, root apps all WORK BEST on internal.
[Nexus One Android Development] temasek:
System app remains in SYSTEM.

What DT script does is symlink /data /private-data and optional dalvik-caches of both your system & data to ext.
[Nexus One Android Development] zenzip:
But in /data /private-data i see only one app...all other app are in syste/app and both in sd-ext/app. Sorry but i'm confused.
[Nexus One Android Development] temasek:
U cannot have 2 x /data

Your system thinks that both /data & /sd-ext/data are the same.

When u go to /data, read your storage balance, is it BIG like if its your ext partition? It must be.....check again.

DT Script fooled the system and perhaps fooled u too :eek:
[Nexus One Android Development] zenzip:
Ok so app-private in /data is empty and is 19k.... app-private in /sd-ext is 1024...so different size...
[Nexus One Android Development] temasek:
You are good to go. If u move dalvik-cache to sd is better

a2sd cachesd

ENJOY and start installing tonns of stuff :D
[Nexus One Android Development] zenzip:
Its strange :-) i see

.apk everywhere lol. I've installed about 40 apk and only 1024k size of app-private. Just moved cache with a2sd cachesd. Ive 177mb free :O
[Nexus One Android Development] Hilarium:
will i need to redo the a2sd cachesd command each time i flash DT? or is it a one-time thing?
[Nexus One Android Development] temasek:
One-time thingy

Do remember to flash DT immediately after flashing of a ROM before you reboot.
[Nexus One Android Development] th1rt33nth_w4rr10r:
is that really necessary, temasek? I always flash DT after first bootup.. yesterday when flashing CM7 Nightly, I installed some apps first, reboot to recovery, flash DT, reboot back to system, do the a2sd commands (zipalign, cachesd), then it reboots automatically, check the storage, and the a2sd is running well.. :)
[Nexus One Android Development] temasek:
Wtf are u talking about?

I am saying moving dalvik-cache is a one time affair.

And if you flash a new cm7 nightly rom, you have to flash DT again.

Edit: also there is no need to retype a2sd commands after every flash. Simple flashing of DT after flashing of rom before reboot is good to go.
[Nexus One Android Development] qwertyboiz:
hi sorry if noob question. i flashed nadlabak's cm6 and then dt script, but my ext partition is not mounted. any reason why?
[Nexus One Android Development] temasek:
Not sure abt your rom but question is does that rom support the ext partition u created? I know not all roms support ext4.
[Nexus One Android Development] qwertyboiz:
hey temasek thanks for the reply! using cyanogenmod 6.1.2 for milestone. i know dt script works for cm6, not sure if it's because particularly it's milestone that doesn't work?

also my partition is ext2. is it supposed to be ext4?
[Nexus One Android Development] temasek:
Ooooooo

Did u flash DT immediately after flashing of cm7 before reboot? U must
[Nexus One Android Development] qwertyboiz:
yep. i flash cm6 then gapps then dt. by flashing i'm presuming you mean "apply update" using recovery?

after rebooting, i run the a2sd check and it tells me my ext partition is not mounted..
[Nexus One Android Development] temasek:
Not too sure abt other phones though. I am only quite alrite with n1.

Still maybe u wanna redo. Btw DT support ext2
[Nexus One Android Development] qwertyboiz:
alright sure. thanks! :)
[Nexus One Android Development] Hilarium:
its okay to flash cm7 then gapps then dt right? or do you need to flash cm7 then dt then gapps?
[Nexus One Android Development] temasek:
DT after rom then reboot
[Nexus One Android Development] k3vink3vin:
I have flashed cm_passion_full-3.zip + gapps dtapps2sd-2.7.5.2-signed.zip and ran a2sd reinstall, a2sd zipalign and a2sd cachesd.

Now if I want to flash cm_passion_full-5.zip without wiping data, do I simply flash cm_passion_full-5.zip + gapps + dtapp2sd?

Is it required to run the a2sd commands again?
[Nexus One Android Development] temasek:
No.

For u just flash DT after cm7 before u reboot. No nid to reflash gapps.

Also no nid for further a2sd commands.
[Nexus One Android Development] th1rt33nth_w4rr10r:
wasn't talking about the 'one time thingy' thing.. I was just asking whether flashing DT right after flashing the rom (before rebooting) is necessary or can I reboot, then flash it after? but I think I now get what u're talking about.. I wasn't doing it your way because I did a clean wipe before when upgrading from CM6.1.1 to CM7 Nightly.. :)