[Q] HELP SD-EXT back to phone memory - Desire Q&A, Help & Troubleshooting

Is there a method to move data in ext2 back to phone memory in my desire? I found some recovery tools allow that. But I don't find any way in clockwork mod.
Thanks for the help.

Make a backup of yours Apps+Data with Titanium Backup, make a backup of FAT32-Partition of the Card. Partition the SD-Card without swap and ext. Reboot the Desire and restore the SD-Card (with USB-Connection) and restore the backups made with Titanium Backup.

Thanks for the info. But Titanium Backup can't restore everything. Is there any other method to move ext2 data back to phone like some other recovery tools able to move ext back to phone.

n
Go into recovery, mount sd-ext and data.
Open an ADB shell and do the following
rm /data/app
rm /data/app-private
rm /data/dalvik-cache
Thats how you delete the links.
mv /sd-ext/app /data/
mv /sd-ext/app-private /data/
mv /sd-ext/dalvik-cache /data/
If it's correct there should be a app, app-private and dalvik-cache dir again, check like this:
ls /data/
Double check if there is still something important left on sd-ext:
ls /sd-ext
If there is a data folder you need to move it to, but I think there were only app, app-private and dalvik-cache.
Turn phone off, remove SD card and put it into your PC to repartition it. If you reboot the phone with SD card still in it will re-setup ap2sd.

By using this command all apps will move back to phone right?

Titanium Backup
I found an option in Titanium Backup allowing for a batch moving of all apps to the internal memory. I used it (because i need to also) and I checked in Settings>Applications>Apps on SD and none were there

mrusheen said:
I found an option in Titanium Backup allowing for a batch moving of all apps to the internal memory. I used it (because i need to also) and I checked in Settings>Applications>Apps on SD and none were there
Click to expand...
Click to collapse
Settings>Applications>Apps on SD only shows Froyo Apps to SD, it doesn't show old A2SD or A2SD+ apps, the phone is tricked into thinking those apps are installed internally

Yes that is the problem. So I want to find a way to reverse it.

Related

a2SD & titanium backup help.

Hey guys Im running LeeDroid rom.
I wanted to get a2sd to work, so I partitioned my SD via Rom manager with 512mb EXT3/0 swap
I titanium backuped all my apps/data. Transfered the folder to my deskop then did
the partition part via ROm Manager. When that was done I batch > restore apps and data.
My internal memory on the phone still says 30mb available ?
SD & phone storage is as follows:
SD:
Total space: 6.92 GB
Avail Space: 6.90GB
Internal Phone Storage: 34.25MB
Did I do something wrong ? How I know if my apps are on my SD card? Also if they are am I suppose to have more Internal Phone Storage?
Update: Under manage Apps > On SD card .... There is no apps what so ever there so must of done something wrong :S
Thanks !
how many apps do you have? with apps2sd it still uses some internal memory and some cache so internal memory will drop
According to titanium I have 22 user apps 148 data. But like I said under manage apps,on SD there is nothing. So prob did something wrong. How can I check if my SD is partitioned properly with a 512mb. Or even if a2sd is working.
Sent from my HTC Desire using XDA App
22 apps seems like internal memory is being used and not apps2sd
heres how to check if its working
http://forum.xda-developers.com/showthread.php?t=677073
it can be done using connectbot app from market
open connectbot and use local
then type
su
ls -l /data
this should list the top 2 items as:
lrwxrwxrwx root root 2010-04-28 22:54 app-private -> /system/sd/app-private
lrwxrwxrwx root root 2010-04-28 22:54 app -> /system/sd/app
ls -l /system/sd/app (will list apps on installed to your SD Card)
Awesome found my problem lol. I didn't have a2sd installed. I assumed it came with the Rom,just read and its optional and must be flashed.
Now is there a away to see if I partitioned correctly with a ext3?
Also do I back up apps and data or just apps.
Also how do I put my davlik cache on my SD or just put the apps.
Sorry first time doing all this LOL.
Thx for the help.
Sent from my HTC Desire using XDA App
So I installed a2sd.
Now my available internal phone memory is 125MB ... Is this right ?
Also under applications> manage apps> on SD nothing shows there is this normal ?
I thought that I would show all the apps.
Pretty sure its all installed properly. Because yesterday there was only 30mb of interal storage.
Just wanted to confirm if I should see apps under "on SD" in manage apps.
thanks
aCx85 said:
Hey guys Im running LeeDroid rom.
I wanted to get a2sd to work, so I partitioned my SD via Rom manager with 512mb EXT3/0 swap
I titanium backuped all my apps/data. Transfered the folder to my deskop then did
the partition part via ROm Manager. When that was done I batch > restore apps and data.
My internal memory on the phone still says 30mb available ?
SD & phone storage is as follows:
SD:
Total space: 6.92 GB
Avail Space: 6.90GB
Internal Phone Storage: 34.25MB
Did I do something wrong ? How I know if my apps are on my SD card? Also if they are am I suppose to have more Internal Phone Storage?
Update: Under manage Apps > On SD card .... There is no apps what so ever there so must of done something wrong :S
Thanks !
Click to expand...
Click to collapse
Your big mistake in my opinion was when you restored the Titanium backup. This not only restores apps (to their original location!) but also restores system data, some of which may not be compatible with Froyo and A2SD+
I recommend you do a factory reset/full-wipe including davlik cache, then check free memory at next reboot (before restoring anything).
With EXT3 and A2SD+, you should have 130MB+ free in phone memory.
If you get 130MB+ free, then don't restore the backup this time, but instead re-install all apps from the market manually.
Assume you have an 8GB SD card? The fact you have 6.92GB free on SD and not 7.5GB, suggests your 512MB ext3 partition is there, and probably working fine.
Sounds right as most people are getting 135mb after a fresh install with that rom.
Also try Quick System Info and in there it will give you a reading of the A2SD+ memory being used.
I think the way A2SD+ works is to trick the phone (with shortcuts to the programs on SD) into thinking its on the internal memory so maybe that's why they don't show up as installed on SD.

[Q] Moving apps to A2SD+

Hi,
I met with a small issue regarding apps not storing correctly in ext3 partition.
I flashed with DeFrost 6.0d yesterday night and used Titanium Backup to only backup apps.
After which, I used TB again to 'Move user apps to SDcard'. Which I think breaks it, and move to SD card as I took a look at my sdcard storage, it left with 0byte. Before that I still have around few hundred mb.
My question is, right now, how do I move those apps back to the ext3? My internal memory after flashed is 144mb, but after using TB to restore apps, it shot down to 30+mb.
As a result, I am now unable to also update the apps through Market. All it says was installed unsuccessfully. I tried to move one apps back to internal memory, and update and it was successful.
How do I also know whether apps is installed using A2SD+ or Froyo appstoSD?
Thanks!
If you have a nandroid backup, you can restore from it. However it looks llike ur sd card might have got corrupted (either ext3 partition or fat32 or both). If it does not work, format and re-partition the sd card, wipe and reflash the rom and install the apps again.
If you have the latest nandroid, just format and re-partition (after backing up) the sd and restore it.
Edit: if the froyo a2sd is being used, then the apps will be in the .android_secure folder in the root of ur sd card (fat32) (in an encrypted format)
Thanks for the reply.
I found out that if I move the apps back to Phone, I will be able to update the apps and also, my internal memory will not decrease (only by .xxmb).
Does that mean that while pushing back to phone, a2sd+ actually is working on the background and the apps is actually stored in ext3 instead of phone memory?
My .android_secure folder is emptied btw.

[Q] Is splitting the Dalvik cache between two memory locations possible?

Hi,
I was thinking that for some applications for performance reasons it is preferable to have the associeate davlik cache file in internal memory and for others it is better to move to them to sd in order to save space? Is there any script/code which implements such a feature?
You can allow DK to be on ext, then move certain DKs to a new folder on NAND, then add a symlink on ext.
Droidzone said:
You can allow DK to be on ext, then move certain DKs to a new folder on NAND, then add a symlink on ext.
Click to expand...
Click to collapse
thanks, is there some kind of gui for this that would make batch processing simple, and can i do it the other way? I.e. symlink files from Nand to ext?
I dont know if there is any gui. Why do you need one?
Code:
adb shell
mv targetpath/filename.dex sourcepath/
ln -s targetpath sourcepath
are all the commands that you need.
Droidzone said:
I dont know if there is any gui. Why do you need one?
Code:
adb shell
mv targetpath/filename.dex sourcepath/
ln -s targetpath sourcepath
are all the commands that you need.
Click to expand...
Click to collapse
So that i can move multiple files easily. I was considering XD2SDX http://forum.xda-developers.com/showpost.php?p=18911182&postcount=1784 which places app data and apks on the sd and keeps the dalvik cache on internal memory. My thinking is that for apps that are rarely used it is unecessary to have the the associated cache on the internal memory, so I want to experiment with moving invidual dalvik app caches, this is why a gui would be useful. Afterall it would be a chore to have to type in the commands manually each time i install a new app.
QtADB.............symlinks will have to be created manually.

Backing up with Link2SD and Titanium Backup

Two quick questions about backups:
What happens when you perform a Nandroid backup (via recovery) and your device is configured with Link2SD. In particular, what happens if you restore the Nandroid? What happens if you restore the Nandroid, but the partition for Link2SD is removed/changed.
When you have a device with many apps on Link2SD, what happens when you backup using Titanium Backup? As an example, suppose I wish to backup my scores for a certain game linked to the (second partition of the) SD card. The device is then wiped. Can Titanium restore the program without access to the second partition?
TSGM said:
Two quick questions about backups:
What happens when you perform a Nandroid backup (via recovery) and your device is configured with Link2SD. In particular, what happens if you restore the Nandroid? What happens if you restore the Nandroid, but the partition for Link2SD is removed/changed.
When you have a device with many apps on Link2SD, what happens when you backup using Titanium Backup? As an example, suppose I wish to backup my scores for a certain game linked to the (second partition of the) SD card. The device is then wiped. Can Titanium restore the program without access to the second partition?
Click to expand...
Click to collapse
1-If you restore the nandroid......it restores the EXT parition(the link2sd partition) as well.....The nandroid restores your phone to the EXACT state as it was before
2-Link2sd makes symbolic links to the apks that direct to the EXT partition......if any program has the need to use an Apk or data,it reaches the link which directs the program to the EXT partition
And titanium backup will restore the program even without access to the second partition
csoulr666 said:
1-If you restore the nandroid......it restores the EXT parition(the link2sd partition) as well.....The nandroid restores your phone to the EXACT state as it was before
2-Link2sd makes symbolic links to the apks that direct to the EXT partition......if any program has the need to use an Apk or data,it reaches the link which directs the program to the EXT partition
And titanium backup will restore the program even without access to the second partition
Click to expand...
Click to collapse
Diggin up an old thread, because somehow I do have the same questions and came across the same scenarios of restoring apps which were linked to the external partition.
To be more specific, as guided for Link2SD, the external partition is the second primary partition (first partition needs to be primary Fat32) on the MicroSD card (SanDisk 16GB UHSC in my case) and can be ext2/3/4.
For my Galaxy S-IV running WanamLite 4.2 ROM, it gets mounted to the root folder /data/sdext2 , so in that case :
1. A nandroid backup supposedly should backup the /data/sdext2 as a normal folder, even though it is a linked mount directory and all the contents in /data/sdext2 actually reside on the 2nd partition on the MicroSD card.
2. Not sure about it, a titanium backup. It does not uses the APK , as in it does not execute the APK, it simply backups the apk file as contents. So they Link2SD is described to work is that it moves the actual APK file from the "internal" memory to the /data/sdext2 (which is actually on the MicroSD card), and leaves a symbolic link in the actual program folder. Guess I cant say that when titanium backup reaches to backup a certain app, does it or would it simply backup the symbolic link present in the original app folder or would it follow the symbolic link to find the actual APK in /data/sdext2 and then back it up.
The whole process with apps linked to /data/sdext2 in extrenal microSD card using Link2SD and trying to create a backup using Titanium backup works or should work fine , the real pain and trick comes when restoring such a mixed backup of apps (internal, SD, and external MicroSD) during a system upgrade or complete system wipe , installing a new ROM (with or without wiping the 2nd partition on MicroSD). To date i havent found a problem free solution to it and always have to make my way through to ensure apps are available.
Thanks.
csoulr666 said:
1-If you restore the nandroid......it restores the EXT parition(the link2sd partition) as well.....The nandroid restores your phone to the EXACT state as it was before
2-Link2sd makes symbolic links to the apks that direct to the EXT partition......if any program has the need to use an Apk or data,it reaches the link which directs the program to the EXT partition
And titanium backup will restore the program even without access to the second partition
Click to expand...
Click to collapse
Diggin up an old thread, because somehow I do have the same questions and came across the same scenarios of restoring apps which were linked to the external partition.
To be more specific, as guided for Link2SD, the external partition is the second primary partition (first partition needs to be primary Fat32) on the MicroSD card (SanDisk 16GB UHSC in my case) and can be ext2/3/4.
For my Galaxy S-IV running WanamLite 4.2 ROM, it gets mounted to the root folder /data/sdext2 , so in that case :
1. A nandroid backup supposedly should backup the /data/sdext2 as a normal folder, even though it is a linked mount directory and all the contents in /data/sdext2 actually reside on the 2nd partition on the MicroSD card.
2. Not sure about it, a titanium backup. It does not uses the APK , as in it does not execute the APK, it simply backups the apk file as contents. So they Link2SD is described to work is that it moves the actual APK file from the "internal" memory to the /data/sdext2 (which is actually on the MicroSD card), and leaves a symbolic link in the actual program folder. Guess I cant say that when titanium backup reaches to backup a certain app, does it or would it simply backup the symbolic link present in the original app folder or would it follow the symbolic link to find the actual APK in /data/sdext2 and then back it up.
The whole process with apps linked to /data/sdext2 in extrenal microSD card and using Link2SD is still tricky to me.
csoulr666 said:
1-If you restore the nandroid......it restores the EXT parition(the link2sd partition) as well.....The nandroid restores your phone to the EXACT state as it was before
2-Link2sd makes symbolic links to the apks that direct to the EXT partition......if any program has the need to use an Apk or data,it reaches the link which directs the program to the EXT partition
And titanium backup will restore the program even without access to the second partition
Click to expand...
Click to collapse
I was backup nandroid on lin2sd system but i cant restore it coz i was reformat ext4 patition..so i think backup nandroid cant backup link2sd partition
Link2sd partition not seen by cwm
My cwm doesn't seem to see the link2sd partition. My cwm backup is around 3 go, and my link2sd partition is 7 go, so I assume that I need to manually backup the last one. Can't find an android tool to backup the hole partition in one (split) file.

[Q] sd-ext not mounting properly

Hi
I installed (12/15/2012) [SS] Jelly Bean CM10 v2.9.1 (4.1.2) version 3.0 on my desire and followed all the settings for CPU governor and A2SD scripts. Configured my email, and installed all apps from scratch.
Everything seemed fine, worked smooth. Last night the phone crashed and rebooted and somehow lost most of the apps., including Google play which makes things harder ... Looking at memory usage, it look like there is a problem with /sd-ext.
if i open terminal, and try to run A2SD again, it also shows a problem:
/sd-ext not mounted properly, it might have errors
Found block device: /dev/block/mmcblk0ps
Removing flag a2sd
Removing flag ad2sd
Removing flag dc2sd
Setting flag a2sd
/system/bin/a2sd: line 74: /sd-ext/.a2sd: read-only file system
chmod: /sd-ext.a2sd: no such file or directory
would you also like to move DALVIK-CACHE
I put the SDcard in my computer and it showed no errors
When I go into recovery, I can mount all partiotions without problems??
For now I will go to reflash the phone and start all over.
How can I find out what happened here and how to prevent that?
And is there an easier way to repair this problem
hoping it will not occur again...
Happy new year, best whishes for everyone, and hoping for help
D.
UPDATE: cleared all data from within recovery, cleared cache from recovery and reflashed the zip
when I try to run the a2sd script error is still there!!!
put the sdcard in mu computer, deleted and recreated the partition
and then the error is gone ... ??
How did you create the partition? Use gparted or 4ext recovery only, not minitool or clockworkmod recovery
I used minitool
What is the difference?
So it will crash again?
Anything i can do as a repair or do i have to start all over again?
Thanx for your help!
Sent from my Transformer TF101 using Tapatalk 2
Minitool doesn't create the partitions properly.
Backup your sd card to pc. Then I recommend to delete all partitions and repartition using gparted. Search for guide in development section.
Copy everything back to sd card afterwards, then rerun the a2sd commands
Sorry for not understanding ...
Can I copy the ext4 partition as well then? If I delete that, I am in the same situation as yesterday after the crash (?)
Just running the a2sd again did not work then
Thx
D.
Sent from my Transformer TF101 using Tapatalk 2
duiksmurf said:
Sorry for not understanding ...
Can I copy the ext4 partition as well then? If I delete that, I am in the same situation as yesterday after the crash (?)
Just running the a2sd again did not work then
Thx
D.
Sent from my Transformer TF101 using Tapatalk 2
Click to expand...
Click to collapse
1. try to backup user apps only using titanium backup, don't know how many have been lost, but can try and save the others.
2. copy whole sd card to pc. this just copies the whole FAT32 partition of the sd card. you will not see the ext4 partition when connected to PC, don't worry about it.
3. delete all partitions and repartition using gparted (step 5 here)
4. copy the backup back onto sd card.
5. full wipe everything from recovery, flash rom, run A2SD commands and reboot etc.
6. restore any apps using titanium, should go to partition automatically if everything is working. install another app like diskusage to browse all your partitions.
How to fix the dreaded sd-ext not mounting properly, or fix A2SDGUI not rebooting/crashing
The reason this happens is because you have flashed a rom that doesnt support ext4. You will have to change the ext4 partitiion to ext3 in order to get a2sd to install properly.
If you have backed up your data and just need to get a2sd running follow this guide, I am not responsible for lost data or a corrupt sd card
1) Download aparted app. WARNING: If used incorrectly you can destroy the data in your sdcard
Click tools. There should be a partition called FS: ext4, Select it, then press delete(WARNING DATA FOR APPS WILL BE LOST)
2. Click create, then select EXT 3 this time, and the default size 999, dont touch any other settings or you'll corrupt your sdcard, dont touch the init and end parameters!
3. REBOOT the phone
4. Then try a2sd install in terminal or if your using the A2SDGUI, click Dalvik, select Dalvik on SD-EXT, then hit Move and Rebuild, wait for it to reboot, if it does not reboot hit Move! and wait for it to reboot. It should reboot, if it doesnt reboot or crashes you didnt read step 3 when I said to reboot your phone after adjusting the partition, or you mistakenly chose ext4 partition!
If your were silly enough not to backup your data, you can download gparted iso and boot it using your PC. Then connect the phone and goto the ext4 partition and COPY all the files and paste it in a temporary folder. Then delete the partition, then create an EXT3 partition and PASTE back all the data files in the ext3 partition.
alochet said:
How to fix the dreaded sd-ext not mounting properly, or fix A2SDGUI not rebooting/crashing
The reason this happens is because you have flashed a rom that doesnt support ext4. You will have to change the ext4 partitiion to ext3 in order to get a2sd to install properly.
If you have backed up your data and just need to get a2sd running follow this guide, I am not responsible for lost data or a corrupt sd card
1) Download aparted app. WARNING: If used incorrectly you can destroy the data in your sdcard
Click tools. There should be a partition called FS: ext4, Select it, then press delete(WARNING DATA FOR APPS WILL BE LOST)
2. Click create, then select EXT 3 this time, and the default size 999, dont touch any other settings or you'll corrupt your sdcard, dont touch the init and end parameters!
3. REBOOT the phone
4. Then try a2sd install in terminal or if your using the A2SDGUI, click Dalvik, select Dalvik on SD-EXT, then hit Move and Rebuild, wait for it to reboot, if it does not reboot hit Move! and wait for it to reboot. It should reboot, if it doesnt reboot or crashes you didnt read step 3 when I said to reboot your phone after adjusting the partition, or you mistakenly chose ext4 partition!
If your were silly enough not to backup your data, you can download gparted iso and boot it using your PC. Then connect the phone and goto the ext4 partition and COPY all the files and paste it in a temporary folder. Then delete the partition, then create an EXT3 partition and PASTE back all the data files in the ext3 partition.
Click to expand...
Click to collapse
Eh?
- The ROM supports ext4 just fine, most ROMs here do. ext4 is also faster than ext3...
- The problem was that the partition was poorly created in minitool partition wizard, likely that it was not properly aligned.
- The issue has already been solved...9 months ago...

Categories

Resources