yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] mike1986.:
Well try to type in adb shell pm setinstallLocation 1 or pm getinstallLocation and it will return with unknown command... it needs to be setInstallLocation (with capital letter).
[Nexus One Android Development] mtw4991:
You are right, never noticed that before. I wonder if that has anything to do with the 2.3 SDK? I could swear the last time I used it (on 2.2 SDK) that I didn't capitalize the "i", maybe I did and just don't remember. I stand corrected ;)
[Nexus One Android Development] CAL7:
I have been happily using 2.7.5.3b04 for a few weeks and as far as I can tell, all my apps are on "internal" (i.e. sd-ext) storage.

But, I was just browsing the "CyanogenMod settings" menu and noticed the "Application" submenu with the option "Allow application moving". This was checked, with "Install location" set to automatic. Does a2sd override this setting to put everything on the sd-ext partition? Should I set it to disallow application moving, or does it not matter with a2sd running?
[Nexus One Android Development] mike1986.:
I'm almost sure that it was always like that :) But doesn't matter. Anyway I still don't know how to successfully execute pm setInstallLocation 1 on boot :confused:
[Nexus One Android Development] mtw4991:
I think most of us have Allow app moving unchecked and set to internal, fwiw. This way, it will force installation to internal and moved by a2sd instead of allowing the froyo method to override based on the app dev settings.... this is my understanding, but I'm not an authority on this at all.
[Nexus One Android Development] Macelangelo77:
I have installed 2.7.5.3 beta 04 on my HD2 running Nexus One Froyo build, but I can't seem to enable data2sd. Apps2sd is working fine, dalvik-cache moved to sd-ext without problems too, however when running

a2sd datasd

I can see an error flashing by at the end of the output, but it's too quickly to read it entirely. Is the output of DT Apps2SD+ logged somewhere by default or can I just pipe the output to a textfile?

Sincerely,

Mac
[Nexus One Android Development] CAL7:
Upgrading SD card

I am upgrading my SD card from the N1 issue 4GB to a 16GB. In addition to apps, I have dalvik cache on sd-ext. Should I "a2sd remove" and "a2sd nocache" to move these back to internal before I swap cards?
[Nexus One Android Development] mtw4991:
I would just copy the entire sd card to my pc, then copy it back after formatting and partitioning the new sd card.
[Nexus One Android Development] CAL7:
I have always wondered.... How does it handle the problem if it boots up and the sd card is missing apps (either on the Froyo fat32 or on a2sd sd-ext) that it expects to see? Does it rebuild them or have to download them?
[Nexus One Android Development] dekkon:
Ive tried to search through the thread and haven't found any answers to my problem.

Installed the latest cm7 nightly over a fresh install of ~#33 cm7 nightly w/beta4 (a2sd & dalvik on sd enabled) and I get a soft reboot when trying to install anything from the market. I have a nandroid backup but this isnt the first time this has happened to me before.

Tried to run a2sd resetcache and got this:
[Nexus One Android Development] InsightGoalie:
Read only somehow maybe?

For some reason now my phone will not install any new apps. Whenever I go to install an app it just makes my phone reboot. I then decided to turn off the a2sd and ran "a2sd remove". Every single app was an error saying it was read only. I'm guessing that means somehow my ext partition got changed to read only... How do I go about fixing this?
[Nexus One Android Development] Prod1702:
Not sure how to fix that, but you could always just reformat it and start over again.
[Nexus One Android Development] britoso:
I finally re-sized my ext partition (768MB->1.4GB), and also tried the "datasd" option. :) (/data/data was 90% full but I could not install nfs shift again)

What I noticed:

-Phone rebooted after moving the data folders (expected)

-Phone got stuck at the Nexus X, Pressed power+vol+trackball to reboot

-Saw some errors pertaining to /cache files in the logcat, but it continued on and booted ok

-Google Voice was crashing, cleared data and now it runs fine (could be unrelated)

output of "df"

Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 208004 44 207960 0% /dev
tmpfs 208004 0 208004 0% /mnt/asec
tmpfs 208004 0 208004 0% /mnt/obb
/dev/block/mtdblock3 148480 137372 11108 93% /system
/dev/block/mtdblock5 200960 5556 195404 3% /data
/dev/block/mtdblock4 97280 25896 71384 27% /cache
/dev/block/mmcblk0p2 1288598 844887 374960 69% /sd-ext
/dev/block/vold/179:1
14211624 2440032 11771592 17% /mnt/sdcard
/dev/block/vold/179:1
14211624 2440032 11771592 17% /mnt/secure/asec
/dev/block/dm-0 18688 16672 2016 89% /mnt/asec/com.rovio.angrybirdsseasons-1
[Nexus One Android Development] xavier7:
same issue here too. i'm trying to do it on CM7 nightly #37
[Nexus One Android Development] xavier7:
I went back to beta 03 and it was all good.
[Nexus One Android Development] popophobia:
Using #37 with beta 3, phone hangs the X sign when booting up. I think it's the new build.
[Nexus One Android Development] xavier7:
I just did a few times of wipe everything and beta 04 on CM7 #37

and it finally worked, going to restore apps from TBackup now. hope nothing goes wrong.
[Nexus One Android Development] britoso:
It will be nice to have this link on the OP

List of commands/options: http://www.facebook.com/note.php?note_id=158826790833326
[Nexus One Android Development] Macelangelo77:
Anyone? Dev? Help? Please?
[Nexus One Android Development] mtw4991:
Go to /system/data for the a2sd log;)
[Nexus One Android Development] baseballfanz:
Make sure you have room in system storage. Lack of system storage room will cause you to be stuck at the X. Delete some unnecessary apps from system/app
[Nexus One Android Development] musashiken:
Hi, I'm not sure if it's my phone or my sdcard, but sometimes I lose symlinks after connecting my phone to PC via USB. Once I'm done remounting the sd card, my phone sometimes hangs and upon doing a hard reboot by taking out the battery, my apps disappear after rebooting.

And the same thing happens after I take out my sd card and connect to PC with a card reader. After putting back the sd card and booting up the phone, my apps disappear and widgets could not load.

In these cases, I had to do a a2sd reinstall to recover the symlinks.

And the number of occurrences is increasing and it's getting to be a pain to rerun DT scripts every time this happens.

Could be my phone getting wonky or DT beta04 is pretty unstable.
[Nexus One Android Development] temasek:
Why not stay at DT 2.7.5.2 till new stable comes out? The 2.7.5.2 is very stable for CM7 use.
[Nexus One Android Development] musashiken:
Yeah, guess I'll try that. Thanks.
[Nexus One Android Development] hesian:
I have moved everything to sd-ext...

/data is empty

/sd-ext/data does not contain these logs

Where might I found these logs now ?
[Nexus One Android Development] shaab:
Hello,

I'm running latest CM7 nightly and newser DT Beta.

I wanted to do an a2sd install, but at the end there's an error message:

[ ] Unmounting /dev/block/mmcblk0p2...
unmount: can't unmount /sd-ext: Device or resource busy
[ ] Reboooting phone...

I don't know why it should be busy..

Anyone can help?
[Nexus One Android Development] mtw4991:
Reflash rom then dt 2.7.5.2, reboot. apps should already be moved to sd-ext partition. Run:

a2sd reinstall

a2sd zipalign

a2sd cachesd

some are having issues with latest dt scripts fyi
[Nexus One Android Development] loadlu1:
hey guys, i m using cm7 nightly, n flash darktremor 2.7.5.3 beata 4 as a2sd, i use the command

a2sd check

*a2sd reinstall

*a2sd zipalign

*a2sd cachesd

but the internal momery of my n1 still remain in 68MB

what is going on?

is there anyone can help?

cheers~~
[Nexus One Android Development] shaab:
Thanks, seems to work, 169mb is free :).
[Nexus One Android Development] mtw4991:
See the post above and below yours... Also, there is no * before the commands
[Nexus One Android Development] Kapoue2:
Had a problem, resolved it myself :)
[Nexus One Android Development] britoso:
Hey tkirton, I have datasd enabled but it does not show that on the 'a2sd check' status report. Could this be a bug ? (scared me :) )

It works fine though.

[B]Darktremor 2.7.5.3 Beta 4a[/B] Apps2SD Status Report
===================================================================================
Legend: [Γ£ö]=Setting is correct
[ΓÇ╝]=Setting is correct, but not optimal.
[Γ£û]=Setting is incorrect and needs to be fixed or option is not available.
===================================================================================
Block Device - [Γ£ö] /dev/block/mmcblk0p2
Mount Point - [Γ£ö] /sd-ext
Support EXT2? - [Γ£ö] Yes
Support EXT3? - [Γ£ö] Yes
Support EXT4? - [Γ£ö] Yes

Apps - [ ] Linked to SD Card.
[ ] No Apps2SD Flag File not found.
[Γ£ö] Programs run from SD card
To run from internal storage, type a2sd remove

Private Apps - [ ] Linked to SD Card.
[ ] No Apps2SD Flag File not found.
[Γ£ö] Private Programs run from SD card
To run from internal storage, type a2sd remove

Dalvik Cache - [ ] Symbolically Linked.
[ ] Dalvik to SD flag file found.
[Γ£ö] Dalvik runs from SD card
To run from internal storage, type a2sd nocache
To run from /cache partition, type a2sd cachepart

[B]Data - [ ] Program Data on SD card[/B].
[Nexus One Android Development] jarjarbingie:
i'm currently using beta 02 of this awesome app.. however, it seems my internal storage is still being consumed.. right after flashing DT apps2sd, i ran cachesdreset and zipalign.. i may have missed something.. pls help.. :confused:
[Nexus One Android Development] loadlu1:
i know without *.

actually i try those are the right command. but it seems not working.

is there any other command i can try.
[Nexus One Android Development] britoso:
Anyone else with datasd enabled seeing their apps being re-cached with every reboot ? it takes 5-10 minutes for my 301 apps.
[Nexus One Android Development] rickh925:
What happens when SD Card is mounted in Linux

I've never thought about this, but the other day when I connected my N1 to my Linux laptop it showed more than the one SD partition that I see under windows, probably because of the lack of support for ext3 in Windows. I was not as concerned about applications that were running when I connected to the laptop, but what about my dalvik cache that I moved to the SD card?

What does DT A2SD do if it can't find an SD card and you have cache and data on the card?

Just curious.
[Nexus One Android Development] mtw4991:
Someone correct me if I'm wrong, but if you move dalvik and data to sd and remove the sdcsrd, the phone won't boot. Just bootloop as it has to be able to access /data and /dalvik-cache. Why don't you take out your sdcard with these on there and try to boot, then you can tell us?:rolleyes:
[Nexus One Android Development] TheNewGuy:
I have been messing with this mod for a bit now and I still can't get it to work properly.. everytime I install any apps then reboot.. the apps are gone. I am sure it is something simple I am doing wrong but... any ideas? I am using CM6.1.1 on a vision(G2). Thanks in advance for your time.
[Nexus One Android Development] denteno:
i dont think it works with CM7 RC1

i've tried it many times many wipes but it doesnt work
[Nexus One Android Development] temasek:
No issue here. I'm on CM7 RC1 with DT 2.7.5.2 modified
[Nexus One Android Development] denteno:
^^^

where can i get it ?? 2.7.5.2 modified ??
[Nexus One Android Development] temasek:
http://www.mediafire.com/download.php?dhbd5r8nbf6rruw
[Nexus One Android Development] denteno:
my phone is boot looping after "cachesd" ?
[Nexus One Android Development] NguyenHuu:
any reason why you are using the old modified one instead of the new beta4? just curious because i stopped using the old modified one after I moved from cm6 to cm7. not sure if i needed to or not.
[Nexus One Android Development] temasek:
Its takes a couple of mins for dalvik-cache to sd. Looks like bootloop but most probably not. Be patient.
[Nexus One Android Development] temasek:
Reason - perfect relationship with cm7

Current betas having issues with cm7. Maybe u don't have it but I do, many others also.
[Nexus One Android Development] denteno:
its been more the 15 minutes so far !!
[Nexus One Android Development] g1sean83:
Bit of a simple question here, but have searched for an answer to no avail...so here goes.

As im running cm7 nightlies and have app2sd and cache2sd enabled, i assumed androids native apps-to-sd would remain redundant (have never touched application settings in cmparts) but recently I have noticed apps (most notably androzip) from the market showing up in appmanager as being installed on sd (installing directly to native app2sd asec?).

Now, should these need moving to phone so as to put the app data on ext?

...i haven't noticed any drop in performance in these apps by doing so, but I would just feel more confidant in knowing where the app is running from etc.

Thanks in advance for any help
[Nexus One Android Development] temasek:
hmm shouldn't take so long.

What recovery u flash from?
[Nexus One Android Development] temasek:
Yes, some apps will choose native app2sd as a default installation. What you need to do is just manually move it to "internal", which is your ext partition.
[Nexus One Android Development] denteno:
Amon Ra 1.7.0.1
[Nexus One Android Development] temasek:
Wah, ancient version, though it doesn't matter in this case, but pls update to 2.2.1

Go back to recovery and wipe dalvik-cache and reboot.
[Nexus One Android Development] cr0wnest:
Need help with my sdcard.

I just used clockwork 3.0.0.5 to partition 2GB on my sdcard and 256MB swap file. It was successful, as is the flashing of the DT 2.7.5.3 beta4 A2SD script in the recovery. I rebooted my phone and used terminal emulator to convert EXT2 to EXT3 with the following command:

a2sd convert-ext3

I got a bunch of errors saying permission denied and thus the operation was a failure. I then tried using adb to carry it out with the following command:

adb shell a2sd convert-ext3

Which failed as well, it tells me device not found, for some reason its not detecting my device.

Running nexus one with CM7 RC1. Is there something im not doing right?

EDIT: Here is the full error I got when i attempt to convert via the terminal emulator
[Nexus One Android Development] temasek:
Downgrade your clockwork to 2.xx or use Amon_RA Recovery. There are reports of Clockwork 3.xx corrupting SD Card. Till dev or some others figure it out why so.....I suggest u consider

For your DT issues, did u "su" ?
[Nexus One Android Development] cr0wnest:
Oh i didnt type su first. Anyway i just changed to RA 2.2.1. And went into recovery and chose the select sd:ext2 to ext3 option, it was successful. Is that all? How do i tell if i did everything right? Will my phone's internal memory increase? Because mine still shows as 196MB
[Nexus One Android Development] temasek:
Your system will see your sd-ext (ext3) as internal. Apps, private-apps will be installed to your internal (sd-ext). Your actual internal will still decrease due to /data/data aka app's data.

I recommend you move dalvik-cache to your sd-ext partition.

su

a2sd cachesd

Once done it will reboot and you will have lots of actual internal storage for your app's data.

EDIT: I better insert a "su" b4 u forgets again :p
[Nexus One Android Development] cr0wnest:
Ok just reformated my whole sdcard as FAT32 and decided to try again. This time partitioning the sdcard entirely using RA. I allocated about 2.4GB for ext2 and 256MB for swap. Once its successful i went on to convert ext2 to ext3 via the recovery, then flashed the DT A2SD script again. Booted up and my homescreen has went back to the stock ADW launcher and none of my apps are in the app drawer!

I went to the terminal and typed "su" but nothing happens. Superuser didnt prompt me anything at all.
[Nexus One Android Development] djmcnz:
If you repartitioned your SD card, perhaps you deleted all your apps?
[Nexus One Android Development] temasek:
Prior to your activities on SD Card and DT flashing, were there apps in your internal and/or native app2sd?

When you flash DT script for the 1st time, it is suppose to AUTO move apps from your internal to your sd-ext partition. It should but if it happens that it does not, maybe u do a

su

a2sd reinstall

Once done, do

su

a2sd check

and copy/paste here, see if anything is wrong.
[Nexus One Android Development] cr0wnest:
I dont think so. Right now i can no longer see most of the apps that have been previously installed to both sdcard and internal. Although i can still see them in the applications list, some of them have no icon and no file size, and do not appear in my app drawer, not even superuser. I think the partition is somehow causing this. Im gonna break the EXT partition and reformat the whole sdcard back to FAT32 -.-
[Nexus One Android Development] miguelm75:
hi everybody, i've just read whole thread and i'm a little confused :-)

i'm on CM 7.0.0-RC1 and i would like to flash DT script, but i have a few questions:

1. which version of DT script is best? i mean: 2.7.5.3 beta 4 or beta 3 or maybe stable release?

2. in Settings/CM Settings/Aplication there should be a tick on "Allow aplications moving" or not? and "Install location" should be set on "Automatic", "Internal" or "External"? i ask about settings BEFORE i reboot to recovery for flashing DT script and AFTER flashing.

3. there is written "/sd-ext ext3 ro" in cat /proc/mounts, is it correct? if not, how can i change this through terminal emulator?

4. should i mount manually sdcard and sd-ext in ClockworkMod Recovery?
[Nexus One Android Development] shaab:
Hello,

I recovered my Backup via Nandroid of my CM7 Nightly-38 with DT 2.7.5.2-1.

Now if I want to install a new app from the market or an apk, the phone always reboots.

Do I have to change the settings in DT or somewhere else?

Thanks for help,

shaab
[Nexus One Android Development] ExtraDas:
That's a dalvik cache issue.

You need to run a2sd repair. You should be able to do it from adb if you lost terminal
[Nexus One Android Development] shaab:
Terminal is still installed.

I tried "su" then "a2sd repair" then there are several message like "my: can't stat ..." and after that the phone reboots.

Can't tell you the exact term it's too fast away.
[Nexus One Android Development] ExtraDas:
Try using adb so you can read the error messages after the phone reboots. Might hint at what the issue might be.

NINJA EDIT

You can also try running a2sd nocachesd which should move dalvik back to internal storage. Reboot and see if it makes a difference.
[Nexus One Android Development] shaab:
Hi, still reboot after "a2sd nocache" and installing an app.

I'm currently not at home so I can't use adb. :(

Reporting the error messages as soon as possible.

EDIT**--**--**--**--**--**EDIT

Now after a2sd nocache and then a2sd repair it does nothing, but still reboot while installing an App...

su
# a2sd repair
a2sd repair
[ ] Apps2SD is launching...
__ _____
| \ |
| | |
|__/ | Darktremor Apps2SD 2.7.5.2-1 (2011-01-02)

[ ] GetProp Command = /system/bin/toolbox getprop
[ ] SetProp Command = /system/bin/toolbox setprop
[ ] Mount Point = /sd-ext
[ ] Starting Darktremor Apps2SD Version 2.7.5.2-1
[ ] Launching Apps2SD Start Program with repair
[ ] Starting Darktremor Apps2SD in repair mode
[ ] Moving Apps and Private Apps to SD Card
[ ] Setting File System Ready property to 1.

EDIT2**--**--**--**--**--**EDIT2

Now If I want to do a2sd cachesd this error is coming:

mv: can't remove '/sd-ext/dalvik-cache/data@app@com.google.android.marvin.kickba
ck-1.apk@classes.dex': Read-only file system
...
...
[Nexus One Android Development] ionsof:
No matter what i do i cannot get this installed right on cm7.

Wipe

Flash cm, gapps, and dt's aap2sd

Then enter

app2sd check

Apps2sd reinstall. Then ir reboots.

Apps2sd zipalign

Apps2sd cachesd reboot.

After that it looks fine but everytime i use titanium backup for restore or download an app from the market it does a soft reboot. Any help would be appreciated.

Thanks, forrest.
[Nexus One Android Development] tkirton:
/data, not /sd-ext/data. The logs are on the Internal Storage.
[Nexus One Android Development] tkirton:
It's probably locked by a program you are running. I wouldn't worry about it since error checking will occur on reboot.
[Nexus One Android Development] tkirton:
Yes it does...read the line again. It says "Program Data on SD Card".
[Nexus One Android Development] tkirton:
Program data is still on internal storage (that includes browser cache and other types of storage). You will still see the internal storage decrease, but hopefully at a much slower rate.
[Nexus One Android Development] tkirton:
Actually, boot protection would kick in, which destroys the symbolic links and recreate the folders. This will allow the phone to boot up, but the phone will restart like it was factory reset.
[Nexus One Android Development] tkirton:
The betas don't look like they have a problem with the official build...some of these CM7 custom builds use different kernels that may or may not support native linux filesystems. Without that support, Darktremor is useless.
[Nexus One Android Development] temasek:
Your last stable is stable so I'm looking forward for your next stable :D
[Nexus One Android Development] rickh925:
If you are running DT A2SD, you don't want to allow applications to be moved to the SD card. A2SD sets up symlinks to the sd card. Installation of applications should think that they are being installed to internal storage logically but physically they are on the SD card ext partition.

Don't allow moving and set default to internal.

Rick
[Nexus One Android Development] rickh925:
I'm not removing the card before boot, but essentially after. When I plug my N1 into my Ubuntu laptop I get two drives mounted, one for the large SD partition and the other for the EXT partition. I can't tell you the exact names right now because I'm at work in a Windows world. If the EXT partition follows the same behavior as the main SD FAT32 partition it will be visible over USB and NOT to the phone right?

What does DT A2SD do with the Dalvik cache at that point? For that matter what about running applications?
[Nexus One Android Development] miguelm75:
thank you very much :-)

i also want to thank @temasek. i followed his instructions here: http://forum.cyanogenmod.com/topic/6286-apps-to-ext-sd/page__view__findpost__p__139412 and everything went smooth :-)
[Nexus One Android Development] mtw4991:
Actually, it will boot as protection will kick in according to OP. Don't quote me, but I believe linux systems can see the ext and fat partitions as separate drives, but windows can't, so you are correct.

Dalvik will remain on the /data Fat32 partition unless you issue command: a2sd cachesd then davlik-cache will be moved to the sd-ext partition(...same place as apps are moved to) and symlinked back to /data, thus tricking the system.
[Nexus One Android Development] NguyenHuu:
something happened to me. i flashed the latest IR kernel and then now my ext will no longer mount. i naturally went back to the old configuration and it still does not mount anymore. any thoughts?

i flashed the rom then a2sd a couple times and it completes but when i boot up, it doesnt mount the ext so i get no apps, nothing. i ran a2sd check and it shows okay. programs and private are run from sd it shows but dalvik runs from internal. it says setup error and to run repair. i did but no help.

dont think my sd card is dead because i can access everything on it from fat.
[Nexus One Android Development] temasek:
Did u use clockwork 3.xx to flash? From many reports by users CW3.xx corrupts your sd card. If u using CW3.xx u may nid to redo your sd card and suggest to downgrade CW to 2.xx
[Nexus One Android Development] NguyenHuu:
i am using RA now clockwork, any sugguestions?
[Nexus One Android Development] :
Go into recovery/partition sdcard and run repair ext

If no go--reformat and partition--bu sdcard first