[Q] Adb DATA2SD - HD2 Android Q&A, Help & Troubleshooting and Genera

So guys I've just switched ROM to this and I'm loving it but only one problem. I don't there is DATA2SD which I rely on. I'm using MyBackup to restore my apps to my phone but its annoying that I can't reinstall them all because of the internal memory capacity (22mb).
It says in the thread
Howto apps2sd
By default app, app-private and dalvik-cache are on the SD card, if you need any other option, then follow the below instructions on what you want
data2sd
Code:
adb shell a2sd datasd
Click to expand...
Click to collapse
How do I do that? I know you type that in cmd but nothing after that. Do I need any programs on my phone/PC?
Oh yeah, I have my SD card partitioned with a FAT32 and a Ext3 partition.

Related

APPS2SD Confusion.

From the recovery image to get APPS2SD by simply running the format the SD using Ext2+Swap+fat32 right?
I have a class 6 card. How do I know if this actually works? I formatted and my internals space did not change?
Are there major benefits of doing APPS2SD?
Yes, first format the SD card.
To see if its working,
Check your Settings -> SD card & phone storage -> Internal phone storage. Make note of what it is at. Install some apps, maybe even try reinstalling some of the apps on your phone. Then, check the internal storage again and see if you have some more space.
As for the benefits, it just frees up your internal memory on your phone. I don't think it makes your phone faster or anything.
The question I have about APPS2SD is this. How come when I use it my internal memory drops after I install apps. I have not used it since I had to go back to the original Sprint ROM to do the update and installing the same apps I had before, my internal memory was about the same as it was when I used APPS2SD. I used the recovery screen to format to Fat32-Ext2-Swap and files were on the sd card when I checked, but my internal memory still drops everytime I install something. What is the real benifit of this if the internal memory drops anyway. I am real confused about this and have not decided if it is worth using since I have read it can damage your memory card. Can someone with knowledge of how this works please explain it.
Thx for all the great Info found here.
AppsToSD only puts the apps themselves on the SD. The internal memory is still used by the boot-cache, dalvik-cache, and actual app data like settings, saved games, cache, etc.
Must it be ext3?
What if i have ext2?
rvenes said:
Must it be ext3?
What if i have ext2?
Click to expand...
Click to collapse
If youre using one of the newer recovery images there should be an option to upgrade ext2 to ext3
as for the difference...im not to sure exactly
Tipharet said:
How do I know if this actually works? I formatted and my internals space did not change
Click to expand...
Click to collapse
Answer: . . . . .
nelson8403 said:
Just because the apps are installed to the SD card doesn't mean they don't store things on the phone.. cache is stored on the phones, theres a /data/data folder on the phone that the apps populate as well, it just doesn't take AS MUCH space on your phone as a non appstosd
also to make sure your apps are working go into your adb shell, type in
Code:
cd /data/app
pwd
cd /data/app-private
pwd
What this will do is go to your /data/app folder and because with appstosd that is a symbolic link to /system/sd/app the PWD (present working directory) will display /system/sd/app, if PWD shows /data/app you are not running appstosd
Click to expand...
Click to collapse
rvenes said:
Must it be ext3?
What if i have ext2?
Click to expand...
Click to collapse
As far as I know it works just fine on ext2.
As far as the difference, the nutshell version is that ext3 is pretty much just ext2 with journaling hacked in. If you don't know that that means, do a google search on "journaling file system".
There should be no downside whatsoever to switching to ext3. It can still be read from and written to by anything that can use ext2, and it adds more robust error recovery.
Caveats: I'm not sure how well, or if, that error recovery works on flash memory devices. My expertise is working with large servers that use hard disks. I also don't know if there are tools in our android builds that take advantage of the benefits that ext3 provides.
Having said that, I'm still confident that choosing to upgrade to ext3 offers NO downside, and while there might also be no upside, there is also the potential for a huge upside.
My advice: Do it.

How can i disable Apps2SD on my Cyanogen 2.7.1?

Hello XDA,
Can anyone instruct me on how i would go about disable Apps2SD on my Cyanogen 2.7.1 Mytouch3g? Thanks.
By posting in the Q&A
But follow the guy below me's answer. Meant to put that to not seem like a butt, but forgot
If you don't have a partitioned sd card it will be disabled. Just have one partition (fat32) and viola, no apps2sd
perhaps a way to disable without having to re-partition an sdcard (currently using apps2sd) would be helpful?
iKse said:
perhaps a way to disable without having to re-partition an sdcard (currently using apps2sd) would be helpful?
Click to expand...
Click to collapse
Format your ext2 partition as fat32.
st0kes said:
Format your ext2 partition as fat32.
Click to expand...
Click to collapse
Is there a way to move the apps of the partition first? Just mv everything into /system/data?
perbu said:
Is there a way to move the apps of the partition first? Just mv everything into /system/data?
Click to expand...
Click to collapse
exactly what i wanted to ask...
Any help with this?
You could try removing them all from the SD card and just install them using a batch file, any data that was created should still be on there as you just removed the .apk and they won't be modified. And to format the SD card, easiest way I know how is just flash AmonRa's recovery image and use the option in there, but before you do, take all the files off of your SD card.

Apps2SD for 2.1 Rom?

does anyone have any instructions for apps2Sd for the 2.1 rom? I have no idea what I'm doing with this, and Im tired of not having any space on my phone to dl apps! thanks for any help in advance.
if you are running an a2sd enabled rom,
1. backup your entire sd card to your pc
2. boot into recovery
3. select to partition sd
4. partition to ext 2 and then to ext 3
5. use the default settings of 32mb swap / 512mb data
6. reboot
7. move your previous data back to your sd from your pc
you should be good to go. if you start seeing a significant drop in system memory, go back to recovery and flash the attached zip
troyboytn said:
if you are running an a2sd enabled rom,
1. backup your entire sd card to your pc
2. boot into recovery
3. select to partition sd
4. partition to ext 2 and then to ext 3
5. use the default settings of 32mb swap / 512mb data
6. reboot
7. move your previous data back to your sd from your pc
you should be good to go. if you start seeing a significant drop in system memory, go back to recovery and flash the attached zip
Click to expand...
Click to collapse
What if is the 32mb swap & the 512mb Data sizes for? What happens if I make them bigger?
Coldheat1906 said:
What if is the 32mb swap & the 512mb Data sizes for? What happens if I make them bigger?
Click to expand...
Click to collapse
actually, you can set swap at 0 (its not used anyway, unless you are gonna use the new Fresh Toast rom)
you can set data to be larger if you like (though not needed unless you are gonna install ALOT of mega mb apps)
Thanks, besides that is there anything else that I need to do or can I just start downloading apps..... Also how can I verify that they are going to my sd card?
Coldheat1906 said:
Thanks, besides that is there anything else that I need to do or can I just start downloading apps..... Also how can I verify that they are going to my sd card?
Click to expand...
Click to collapse
go into your command prompt...
adb remount
adb shell
cd /data/app
pwd
if it says /system/sd/app your apps2sd is working! if it says /data/app, it's not
dec3ption said:
go into your command prompt...
adb remount
adb shell
cd /data/app
pwd
if it says /system/sd/app your apps2sd is working! if it says /data/app, it's not
Click to expand...
Click to collapse
ok,....now I really feel like a noob.....
When I try to do a adb remount it says "device not found"
I also do have "USB Debug" selected.
Edit: Ok.... had to re-install the SDK..... I think it's working now.
Thanks
Im flashing my rom right now so I will see how this works out
I have a problem
Im using the Fresh rom with android 2.1 which should have app2sd enabled, but for some reason my apps dont go the sd card? Any help with this, I 've formatted based on the instructions, but it doesnt seem to work for me?
troyboytn said:
actually, you can set swap at 0 (its not used anyway, unless you are gonna use the new Fresh Toast rom)
you can set data to be larger if you like (though not needed unless you are gonna install ALOT of mega mb apps)
Click to expand...
Click to collapse
I beg to differ...the A2SD version 2.5 will activate swap if it sees the partition. That's the file you posted as part of the instructions.
amallama said:
Im using the Fresh rom with android 2.1 which should have app2sd enabled, but for some reason my apps dont go the sd card? Any help with this, I 've formatted based on the instructions, but it doesnt seem to work for me?
Click to expand...
Click to collapse
Validate by doing this:
1. At your computer (in the Android SDK Tools directory), type adb shell
2. Once you are in an adb shell, type ls -l /data
3. Look for the entries app and app-private. The two entries should look like the following:
app -> /system/sd/app
app-private -> /system/sd/app-private
If they don't, you'll need to validate you have an ext3 partition on your sd card.
If you do, download A2SD version 2.5 from http://www.darktremor.com/files/misc/a2sd-2.5-signed.zip and put it on your SD card (in the same place you put custom roms). Go into recovery and flash this file (it won't erase anything...it's just going to install a2sd version 2.5). Reboot phone and perform the same steps above.
If it still isn't working, PM me and I'll continue to help you.
tkirton said:
I beg to differ...the A2SD version 2.5 will activate swap if it sees the partition. That's the file you posted as part of the instructions.
Click to expand...
Click to collapse
will it activate swap on any rom?, is it required? can it actually just be left at 0 (users choice) to not use swap?
dont mean to step on toes here, just realized this is your creation (guess you know more than I).....sorry if I spewed some misinfo
troyboytn said:
will it activate swap on any rom?, is it required? can it actually just be left at 0 (users choice) to not use swap?
dont mean to step on toes here, just realized this is your creation (guess you know more than I).....sorry if I spewed some misinfo
Click to expand...
Click to collapse
No problem...the previous version (2.0) didn't turn on swap...that was actually handled by another routine from my Darktremor kernel (never released...that's why you never seen it).
If you don't want to activate swap, you can go into the phone and type /system/bin/a2sd noswap. It will put a flag file on the system that, if present, will tell a2sd not to use swap file although one is present.
Swap is not required. If a2sd doesn't see the swap partition, it simply won't activate swap...all other functions will activate as normal.
It will activate swap on any rom provided that the swap partition is using /dev/block/mmcblk0p3 (third partition on the SD card). The sd partition feature on the RA Recovery does this automatically.
hi i have a the wildfire got it rooted but not sure how to install apps2sd,apk im on software 2.1
i did have a custom rom cyanogenmod 6.1 and that had apps2sd but the wildfire 2.1 dosent and would like some advice on how to do it please any help wud b nice thanks

[Q] App2SD in 2.1 questions

Hello All,
First of all I would like to say a big thank you to everyone contributing in this forum as it is very helpful and makes your life with gadgets interesting
I have some questions concerning App2SD
I have rooted my X8 using the modded superoneclick that uses the newer exploit for android 2.1 and after that used the Xrecovery way to install app2sd.
So here come the questions:
After the installation most of the applications needed to be reinstalled, has anyone else experienced the same thing?
I also saw that the phone was working much faster and 90Mbytes of free memory where being shown right after the hack.
Now after installing loads of applications the free memory shown is ~60Mbytes, does that mean that many of the apps dont get installed to the sdcard?
If I rerun the app2sd zip from Xrecovery will that move those apps or it will mess up everything?
Thanks in advance
try install titanium backup.. if there is a2sd, so your app2sd is working.
i never get such problem
i use SOC 1.3.0 and script for app2sd2.1 mod (dalvik-cache to sd)
(not from xrecovery)
well, a2sd exists but the available internal memory keeps going down..
parisstc said:
well, a2sd exists but the available internal memory keeps going down..
Click to expand...
Click to collapse
mmm.. lets check again,
try install terminal / shell
than :
$ cd /data/app
$ pwd
if the result is /system/sd/app
than your app2sd.sh script is right,
if still on /data/app ,, you must reistall app2sd, but uninstall it first.
thanks for the reply
The result is /system/sd/app
so I wonder why the available internal memory keeps going down..
when i type
cd/adb
it always show "not regconized internal promp.....bla..bla..."
what wrong???
i already copy all app2sd in memory card, and also make partisions ext3 and fat32
parisstc said:
thanks for the reply
The result is /system/sd/app
so I wonder why the available internal memory keeps going down..
Click to expand...
Click to collapse
now I'm wondering too.
what apps did u install btw.
if the a2sd is working, maybe data app is too big, coz app2sd didn't mount that dir into sd.
evilteater said:
when i type
cd/adb
it always show "not regconized internal promp.....bla..bla..."
what wrong???
i already copy all app2sd in memory card, and also make partisions ext3 and fat32
Click to expand...
Click to collapse
did you 'cd' to 'adb tool' folder in your windows? using cmd right?
if you did, type : adb shell
if adb works., continue with your app2sd manual.
there's another tread deep about this btw

[Q] app 2 sd

hello..
1. i'm noob...
2. i put Android to my HD2. ok...
Problems... Low Memory on my phone after a few instalations.
i make one partition ext3 on my SD.
My problem is that partition never seen by software...
When i try to put commands on the terminal, at "su" command i see the next message: "Permission denied"...
In the ROM MANAGER 4.3.2.3. when i try to partition SD card , when i try to install ClockwordMod Recovery , i choose the HD2 model and on my phone appear "An error ocurred while attempting to run privileged commands!"
PLS HELP!!!! My sd card in a 16Gb, class 10.
Only i needed is space for a new programs on my phone...
I send you a beer if you can help me (special pentru cei din Bucuresti eventual...).
sorincristian said:
When i try to put commands on the terminal, at "su" command i see the next message: "Permission denied"...
Click to expand...
Click to collapse
maybe you have used a rom without root permission. make sure that your rom supports app2sd. Secondly partition your sd card with the help of gparted livecd or you can use the AD recovery's build-in tools to partition your sd card. then flash a rom supporting app2sd. here cm7 recommded,the extra space will be recognized automatically. if you use miui rom, pls make sure that your partition format is ext3. after flashing miui, open terminal-1.su-2.a2sd reinstall-3.reboot automatically-4.open terminal again-5.su-6.a2sd zipalign-7.a2sd cachesd-8.reboot automatically-9.just install whatever you want.
elvis1988 said:
maybe you have used a rom without root permission. make sure that your rom supports app2sd. Secondly partition your sd card with the help of gparted livecd or you can use the AD recovery's build-in tools to partition your sd card. then flash a rom supporting app2sd. here cm7 recommded,the extra space will be recognized automatically. if you use miui rom, pls make sure that your partition format is ext3. after flashing miui, open terminal-1.su-2.a2sd reinstall-3.reboot automatically-4.open terminal again-5.su-6.a2sd zipalign-7.a2sd cachesd-8.reboot automatically-9.just install whatever you want.
Click to expand...
Click to collapse
In QUICK INFORMATON INFO write:
sd card storage..... free 11 gb
A2SD storage 22 mb free
internal storage 40 mb free
system storage 18 mb free...
i don't understand something...
Yes.. it's a based MIUI ROM instaled
I can't use the terminal... i haven't permissions... read my first message...
"after flashing miui" - what do you recommand?
does it the miui rom you are using support app2sd ? and you haven't downloaded app2sd+ from market, if so id get a rom that supports app2sd, then id recommend downloading THIS to fully format your sd card, and would also recommend using THIS to partition your sd card Ext3/4 depending on rom...
sorincristian said:
In QUICK INFORMATON INFO write:
sd card storage..... free 11 gb
A2SD storage 22 mb free
internal storage 40 mb free
system storage 18 mb free...
i don't understand something...
Yes.. it's a based MIUI ROM instaled
I can't use the terminal... i haven't permissions... read my first message...
"after flashing miui" - what do you recommand?
Click to expand...
Click to collapse
if your rom is app2sd....
you must not have it set up correct make sure you take 1gb (1024) out of your sd card to use for app2sd, take a look at my screen shot at how many apps i have to what internal i have left with typhoon build...
Sent from my HTC HD2 using XDA Premium App
sorincristian said:
A2SD storage 22 mb free
Click to expand...
Click to collapse
This makes me believe that App2sd+ is working, how else is there only 22 mb free? What is the partition size you made?
Things you can do:
Clear Cache of apps
Clear the downloadfile-#.apk in /Cache/ (you need a root explorer to do this)
Backup apps, delete apps, restore apps.
Another thing to do is to start from scratch, reflash your rom, using a backup program to backup your apps. Completly clear caches, and wipe sd card.
DOING THIS WILL WIPE YOUR PHONE AND LOSE ALL SETTINGS
Rommanager is only available for cLK, make sure you have cLK, or phone will boot-loop.
Eelkede said:
This makes me believe that App2sd+ is working, how else is there only 22 mb free? What is the partition size you made?
Things you can do:
Clear Cache of apps
Clear the downloadfile-#.apk in /Cache/ (you need a root explorer to do this)
Backup apps, delete apps, restore apps.
Another thing to do is to start from scratch, reflash your rom, using a backup program to backup your apps. Completly clear caches, and wipe sd card.
DOING THIS WILL WIPE YOUR PHONE AND LOSE ALL SETTINGS
Rommanager is only available for cLK, make sure you have cLK, or phone will boot-loop.
Click to expand...
Click to collapse
I think that i don't have luck..
i reinstall the my HD2 with this ROM: DFT_LEO_NAND_Android.rar
Another (new) problem... my Android working good... but i don't see my SD...
I seen that SD only at boot if i boot in "MASS STORAGE"
Do you know what i really understand?
I have enough hours loosed... i need my telephone working...

Categories

Resources