Linking Dex Files do not work - Android Q&A, Help & Troubleshooting

Hello guys,
I'm so sorry if this is not the place to post this, but I am very new around here and don't know exactly how things work.
Now. I am an Android user, but I am not an experienced one. I rooted my phone a while ago and started using LinkSD (I only used freeze feature) and today I decided I should link some apps so that I can clear up some space in my internal memory.
I followed a guide and partitioned my SD Card (FAT32 and Ext2 if that matters) then started linking the apps. However, I keep getting an error while doing this. I can easily link application files and library files, but whatever I do, I cannot link the dalvik-cache files. It keeps telling me: "Failure rm failed for /data/sdext/dalvik-cache/*com.anddoes.launcher*@classes.dex, I/O error"
As you can guess, the /.../ part changes with every app. I chose Ext4 (Ext2 didn't work) after I partitioned my sd card and opened Link2SD. Could this be relevant? Should I do the partition again and chose Ext4 instead of Ext2, would it help?
Thanks in advance!
(I use a General Mobile Discovery and Android 4.4.2 with Kernel 3.4.67)

evamore said:
Hello guys,
I'm so sorry if this is not the place to post this, but I am very new around here and don't know exactly how things work.
Now. I am an Android user, but I am not an experienced one. I rooted my phone a while ago and started using LinkSD (I only used freeze feature) and today I decided I should link some apps so that I can clear up some space in my internal memory.
I followed a guide and partitioned my SD Card (FAT32 and Ext2 if that matters) then started linking the apps. However, I keep getting an error while doing this. I can easily link application files and library files, but whatever I do, I cannot link the dalvik-cache files. It keeps telling me: "Failure rm failed for /data/sdext/dalvik-cache/*com.anddoes.launcher*@classes.dex, I/O error"
As you can guess, the /.../ part changes with every app. I chose Ext4 (Ext2 didn't work) after I partitioned my sd card and opened Link2SD. Could this be relevant? Should I do the partition again and chose Ext4 instead of Ext2, would it help?
Thanks in advance!
(I use a General Mobile Discovery and Android 4.4.2 with Kernel 3.4.67)
Click to expand...
Click to collapse
Have a look here and see if it aids you in your needs:
http://forum.xda-developers.com/showthread.php?t=2412319
Or possibly this:
http://forum.xda-developers.com/showthread.php?t=1320702

Moved to Android Q&A for more exposure. Good luck!
Neo
Forum Moderator

Evolution_Tech said:
Have a look here and see if it aids you in your needs:
http://forum.xda-developers.com/showthread.php?t=2412319
Or possibly this:
http://forum.xda-developers.com/showthread.php?t=1320702
Click to expand...
Click to collapse
Hello Evolution_Tech!
I just solved the problem using the link you gave me. As I suspected, choosing Ext4 while partitioning the card as Ext2 was the problem and it's solved now.
Thank you!

@ΠΣΘ thanks again!

Related

Link2SD in Gingerbread

Has anyone got this working? I used to have Link2SD in 2.1 but now the ext partition is the only partition recognized by GB and not my main partition. I can access my main partition from USB connect, but not from within the phone. Anyone has the same issue?
You can natively move apps to the SD on GB in Options>Applications>Manage applications. Choose an app that supports it and the option to move to sd will be there. No partition needed.
Thx, i will just fix up my SD card into a single partition again then
Does this also mean that I don't need the app Apps2SD anymore?
With App2SD you can quickly indicate which apps can be moved to SD. So I still have it there. Furthermore, App2SD also quickly clean your cache.
Link2SD gave the option of moving ANY app to the ext2 partition. The native gingerbread app2sd doesn't support moving all apps to the SD card.
Any way of making link2sd work on GB 2.3.3?
can anyone confirm what's the current sdcard partition layout. also which partition is detected in phone.
i think i have an idea which might help up getting this to work.
anantshri said:
can anyone confirm what's the current sdcard partition layout. also which partition is detected in phone.
i think i have an idea which might help up getting this to work.
Click to expand...
Click to collapse
@Anant: My SD is setup as per the guidelines described here:
http://forum.xda-developers.com/showpost.php?p=10711328&postcount=1
I have a 8GB card and I have allocated 7.05 GB of FAT32 memory to the Data partition, and have allocated 0.5GB to the secondary partition. This partition was also setup as FAT32 since i had issues with EXT2.
*Edit: After the 2.3.3 update, the X10 now detects only the 2nd partition (480MB) instead of the data partition (7GB) - but when I plug into a PC, the data partition gets mounted correctly.
Hope that helped.
That is not good, it means that you cannot transfer data or programs between your PC and the 7GB partition... is there a way to fix this?
When you plug into pc, your data-partition mounts correctly, so you can copy your data to your pc as a backup.
I recommend using a adapter to connect the sd-card to your pc, formatting both partitions, and then put it back. I did it that way, be it that I removed my second partition and went back to one partition only, 8 Gb, and all works fine now.
I don't intend to use Link2SD anymore, because in 2.3.3 the system can apply data2sd itself, I learned, with or without Apps2SD.
Good luck, greetz,
kwarkje
From my observation, the 2.3.3 android system moves the appdata to the sdcard only in certain large apps (apps >7mb in size?) which is good if you have are dealing with huge apks like AngryBirds, but not too handy if you have a huge number of small apps all ~3MB in size.
BTW the native app2sd isn't compatible with all apps.
Use "Move2SD Enabler" from Market to allow moving any app to SD.
https://market.android.com/details?id=com.leinardi.setinstalllocation&hl=en
This didnt work with my 32GB SD card... it is now a single 32GB FAT32 partition. What type of format should I use? FAT? EXT2?
kwarkje said:
When you plug into pc, your data-partition mounts correctly, so you can copy your data to your pc as a backup.
I recommend using a adapter to connect the sd-card to your pc, formatting both partitions, and then put it back. I did it that way, be it that I removed my second partition and went back to one partition only, 8 Gb, and all works fine now.
I don't intend to use Link2SD anymore, because in 2.3.3 the system can apply data2sd itself, I learned, with or without Apps2SD.
Good luck, greetz,
kwarkje
Click to expand...
Click to collapse
@doomed151:
Thats what I was looking for! Good find!
This app has its own hitch though: the move2sd enabler needs lots of caution...some apps aren't supported, and moving them to the SD causes them to crash. There is no way of knowing which apps can be moved and which ones can't. I happened to move GT Racing HD to the SD and it stopped working. Had to reinstall!
anantshri said:
can anyone confirm what's the current sdcard partition layout. also which partition is detected in phone.
i think i have an idea which might help up getting this to work.
Click to expand...
Click to collapse
@Anatshri Any luck on this? I would prefer to use link2sd instead of the native move2sd in GB.
I tried a 16gb & a 4gb sd card but couldn't get it to work. I've also tried ext2, ext3 & ext4 as the 2nd partition but I don't think the stock kernel supports any of them. The sd becomes unreadable after a reboot but if I connect directly to the pc I can see both partitions.
If I make both fat32 partitions only the 2nd partition gets mounted. Do you think this is kernel related as well or can we modify the mounting scripts to correct this?
I am suffering from bad health conditions right now so can't work much however all I can see right now is if this is the case you can do two things
1) create a script that mounts partition 1 at /data/sd-ext coz link2 sd needs mounted partition at this location. I suppose init.d script could help us. However
2) the problem would be that recovery will detect only partiton one
Sent from my X10i using XDA App
anantshri said:
I am suffering from bad health conditions right now so can't work much however all I can see right now is if this is the case you can do two things
1) create a script that mounts partition 1 at /data/sd-ext coz link2 sd needs mounted partition at this location. I suppose init.d script could help us. However
2) the problem would be that recovery will detect only partiton one
Sent from my X10i using XDA App
Click to expand...
Click to collapse
I'm sorry to hear about your health, hopefully it's nothing serious and you get well soon. Thanks for the suggestion, I'll give this a try when I get a chance.
Any solution on this?
I move from 2.2 to 2.3.4 and link2sd don't work anymore cannot mount the 2nd fat32 partition.
App2SD sucks because doesnt allow some apps to get moved.
Thanks
Lockon Stratos said:
I'm sorry to hear about your health, hopefully it's nothing serious and you get well soon. Thanks for the suggestion, I'll give this a try when I get a chance.
Click to expand...
Click to collapse
Thanks for the wishes.
I have extended weekend this time will try to give my old card a twist and see if i can get link2sd work again on my handset.
bbsrailfan said:
Link2SD gave the option of moving ANY app to the ext2 partition. The native gingerbread app2sd doesn't support moving all apps to the SD card.
Any way of making link2sd work on GB 2.3.3?
Click to expand...
Click to collapse
I agree with you and hope that we will have this possibility, I really miss link2sd, the best app ever to move apps to sd.

[Q] Specific App not moving to SD card

Hello all. I am new to the forums and to Android, so bear with me.
I have been searching around for the past few days for a way to solve the issue that I am having and have not been able to find anything that works for me. So here it is:
I have an LG Optimus L5 II (LG-E450B) running stock Android 4.1.2 (non-rooted) Kernel Version 3.4.0. My carrier is Virgin Mobile (Canada). I recently realized that the stock 2GB of internal memory is not nearly enough for me, so I went out and bought a 16GB Sandisk microSD card. I put music on it, set photos to autosave on it, etc. which all worked great. However, I have been unable to get some apps to move over correctly.
I realize that some apps can't really get moved (at least without rooting, etc). The app I am specifically trying to work with is iBird pro. It's App Info appears as such:
Total: 641 MB
App: 12.68 MB
USB storage app: 628 MB
Data: 4.00 KB
SD Card: 0.00B
The "Move to SD Card" option is available, but when I do it all that it does is drop the App to 3.51MB and up the USB storage app to 637MB. All of which stays on the internal memory. Obviously it is only moving 9MB or so of App to the virtual SD internal memory (which I believe is what shows up in my files manager as /storage/sdcard0, so it doesn't actually move it to the SD card (though a few other apps have sucessfully been moved).
I have tried using App2SD, but it says that the program is not supported by my device (and the iBird Pro shows up as "Phone Only" anyway).
I have tried the ADB hack trick set-install-location 2 and reinstalled the app and still nothing, it just saved on the internal memory.
Finally, when I open the app, it also downloads another ~600MB of database data (bird songs, pictures, etc), which also saves on the internal memory. Or at least tries to but the memory gets full and it stops the download.
Anyone have any ideas for me? I know a lot of people ask this question, but none of the other solutions I came across seemed to help me. I would really appreciate it! I would prefer not to root my phone, by the way. Unless of course someone can make me an incredibly convincing argument.
Cheers!
This is how android's built-in app2sd works.
I don't think you can do anything w/o root.
I suggest rooting, make a second partition to your SD card (2-4 GB) and use link2sd.
Sent from my GT-I5500 [CM7.2]
There are oh so many reasons to root your phone and few not but that choice is yours
Sounds like only some of the data/libraries are able to me to SD on this app of yours so if you don't want to root it than you'll have to leave it on internal.
And FYI, many apps don't play well or are slowed considerably on SD, so be careful what you move and if you don't Yardley use an app its best to just not even download it, but again choice is yours
Sent from my Nexus 4 using Tapatalk 2
if you can't do root so sit back and relax.
Ok, so I decided to root. Which was actually freakishly easy. So how do I move stuff now? I have tried a number of apps, all of which only bring up "App Options" and we have determined that the "Move to SD" option there doesn't work correctly. I just want to figure out how to get the app and all of the data that it will download later to install on the SD, I never thought it would be quite this complicated.
Benjiboy180 said:
Ok, so I decided to root. Which was actually freakishly easy. So how do I move stuff now? I have tried a number of apps, all of which only bring up "App Options" and we have determined that the "Move to SD" option there doesn't work correctly. I just want to figure out how to get the app and all of the data that it will download later to install on the SD, I never thought it would be quite this complicated.
Click to expand...
Click to collapse
Use Link2SD.
Make a second partition (2-4 GB) and move (link) that app to the second partition.
Sent from my GT-I5500 [CM7.2]
Tried Link2Sd? I would rather use that.
Sent from my A89 using xda app-developers app
Ok, so I partitioned my 16GB card into two FAT32 partitions (10 GB and 4 GB) and a Swap Partition of ~850MB (roughly following this guide: http://forum.xda-developers.com/showthread.php?t=2126363). However, when I opened Link2SD and tried to select FAT32/FAT16 as the file system of the SD card's second partition it came up with the Mount Script Error "Mount script cannot be created. mount: I/O error". I had tried formatting with Ext4 and Ext2 file systems as well earlier, but when I selected either it said ext2 or ext4 (whichever I was trying to use) was not supported by my device (which I am assuming means my kernel does not support either).
Edit: Ok, so I changed it. I deleted the Swap partition (couldn't get the swap stuff to work anyway, it's not required right?). There is now 1 10GB partition and 1 5GB partition. Link2SD created the mount link just fine this time. Testing it out. "Install Location" gives a Warning "App2SD is not supported by your device. Because your device has a primary external storage which is emulated from the internal storage. You can link the app in order to move its files to your SD card." Does this mean that I can't automatically link files to the SD card?
Benjiboy180 said:
Ok, so I partitioned my 16GB card into two FAT32 partitions (10 GB and 4 GB) and a Swap Partition of ~850MB (roughly following this guide: http://forum.xda-developers.com/showthread.php?t=2126363). However, when I opened Link2SD and tried to select FAT32/FAT16 as the file system of the SD card's second partition it came up with the Mount Script Error "Mount script cannot be created. mount: I/O error". I had tried formatting with Ext4 and Ext2 file systems as well earlier, but when I selected either it said ext2 or ext4 (whichever I was trying to use) was not supported by my device (which I am assuming means my kernel does not support either).
Edit: Ok, so I changed it. I deleted the Swap partition (couldn't get the swap stuff to work anyway, it's not required right?). There is now 1 10GB partition and 1 5GB partition. Link2SD created the mount link just fine this time. Testing it out. "Install Location" gives a Warning "App2SD is not supported by your device. Because your device has a primary external storage which is emulated from the internal storage. You can link the app in order to move its files to your SD card." Does this mean that I can't automatically link files to the SD card?
Click to expand...
Click to collapse
Swap IS NOT needed.
Second partition should be ext 2/3/4.
Test to see if auto-link works.
Sent from my GT-I5500 [CM7.2]
Vagelis1608 said:
Swap IS NOT needed.
Second partition should be ext 2/3/4.
Test to see if auto-link works.
Sent from my GT-I5500 [CM7.2]
Click to expand...
Click to collapse
Good to know swap isn't needed. However, Link2SD did keep saying that Ext2 or Ext4 wasn't supported. I can try it again though.
Benjiboy180 said:
Good to know swap isn't needed. However, Link2SD did keep saying that Ext2 or Ext4 wasn't supported. I can try it again though.
Click to expand...
Click to collapse
Use Ext3. If it doesn't work use FAT. It can get buggy (not very often).
Also I think that if you can link apps 1 by 1, then you can (probably) use auto-link as well.
Sent from my GT-I5500 [CM7.2]
Vagelis1608 said:
Use Ext3. If it doesn't work use FAT. It can get buggy (not very often).
Also I think that if you can link apps 1 by 1, then you can (probably) use auto-link as well.
Sent from my GT-I5500 [CM7.2]
Click to expand...
Click to collapse
Ok, so Ext3 didn't work. So I stuck with the second partition being FAT32 as well. The mount worked fine.
When I try to create the link I get the following error: "Failure. create_link.com.whatbird.pro[1]: can't create /data/sdext2/data/com. whatbird.pro/lib/libfileutils.so: I/O error"
I was able to move the bulk of the apps Obb files to the SD using FolderMount. However, I am unsure how to move the 650MB Misc. data files to the SD.
Benjiboy180 said:
Ok, so Ext3 didn't work. So I stuck with the second partition being FAT32 as well. The mount worked fine.
When I try to create the link I get the following error: "Failure. create_link.com.whatbird.pro[1]: can't create /data/sdext2/data/com. whatbird.pro/lib/libfileutils.so: I/O error"
I was able to move the bulk of the apps Obb files to the SD using FolderMount. However, I am unsure how to move the 650MB Misc. data files to the SD.
Click to expand...
Click to collapse
Flash CWM recovery, in 'mounts and storage' press 'format SD-Ext'. This fixes the I/O error (I think).
If the misc files are libs then ALL of them can be moved/linked.
Sent from my GT-I5500 [CM7.2]
Vagelis1608 said:
Flash CWM recovery, in 'mounts and storage' press 'format SD-Ext'. This fixes the I/O error (I think).
If the misc files are libs then ALL of them can be moved/linked.
Sent from my GT-I5500 [CM7.2]
Click to expand...
Click to collapse
ROM Manager does not list the LG- E450B as a device supported by CWM Recovery so it won't to an install of CWM Recovery,
Benjiboy180 said:
ROM Manager does not list the LG- E450B as a device supported by CWM Recovery so it won't to an install of CWM Recovery,
Click to expand...
Click to collapse
Look for a custom build here on XDA.
Sent from my GT-I5500 [CM7.2]

[Q] miniCM10 w/ link2sd + a2sdgui Trouble

Hi guys,
I have a Sony ericsson X10 mini pro with nAa's Kernel 2.6.32.60-nAa-05 and miniCM10-4.1.0-20130518-NIGHTLY and I also flashed:
gapps-jb-20121011-signed.zip,
miniCM7-SEMC_kb.zip and
querty_br.zip
On top of that a internal memory of 192MB and a 16GB SDHC class10 SD card.
Boring story part (with more details and links and stickie just in case I forget something ) :
So far so good until I start installing apps and noticed that with a couple the memory was full. After a little research I found link2SD was the solution,
the SD card I have is more than fit for the job.
But then starter the problems, after I partitioned, with MiniTool,
my SD card as FAT32 (~13GB) and ext-N (2, 3 & 4) (~1GB) as primary none worked (at least for long).
I had some success with Ext-3 but the 2nd time I restarted my phone, Scrips were nowhere to be seen nor any linking of some kind.
Then (after more Googling) I tried both partitions as FAT32 and there it was working cool again.
Well went to download more apps, but memory was full, how so? I added a GB to it!
Found that I would, also, need to use A2SDGUI and it's Scripts (Version 2.7.5.3 Beta 04).
Flashed the scripts and then tried to run A2SDGUI not working pop's this error window:
Exiting A2SDGUI
Could not start for one of these reasons:
Your device is not rooted
A2SD scripts could not be found
No EXT partition found
Click to expand...
Click to collapse
Now I'm in trouble because android DOES NOT mount my 2nd partition if it's filesystem is not FAT32
(perhaps this is a scripting problem instead of Filesystem support ? )
And A2SDGUI is no longer being developed/suported.
Bottom line:
I installed link2SD but it only works when my 2nd partition is also FAT32, or else it won't mount,
and the phone internal memory continues to get shorter as I install apps.
Then I installed A2SDGUI and (Flashed) it's Scripts to try to JOIN the internal memory(/data)and SD card's 2nd partition so,
android doesn't give that annoying low memory error message.
I'm having trouble making andoid think that /data is ~1.2GB.
Can someone help me out on this? How can I "make" a "bigger" internal memory?
I searched Google but I couldn't find any GOOD answer to my question.
Shaameless self bump

[Q] Insufficient storage available

Hello everyone,
This is my first post here. I have a Samsung Galaxy Ace 5830i and today I bought a new SD card because the old one was crap. I had this problem before, I have it now. When I try to download an application from the Android Market, there is always this error ''There is unsufficient storage available''. I checked and I had 23 free MB of Device memory and 1.8 GB free on my SD card. I read a lot of articles about this problem and tried many ''solutions'' and nothing fixed it. I will be really, really thankful if anyone can help me fix this. Cheers :good:
chelseabg said:
Hello everyone,
This is my first post here. I have a Samsung Galaxy Ace 5830i and today I bought a new SD card because the old one was crap. I had this problem before, I have it now. When I try to download an application from the Android Market, there is always this error ''There is unsufficient storage available''. I checked and I had 23 free MB of Device memory and 1.8 GB free on my SD card. I read a lot of articles about this problem and tried many ''solutions'' and nothing fixed it. I will be really, really thankful if anyone can help me fix this. Cheers :good:
Click to expand...
Click to collapse
Follow these TUT
chelseabg said:
Hello everyone,
This is my first post here. I have a Samsung Galaxy Ace 5830i and today I bought a new SD card because the old one was crap. I had this problem before, I have it now. When I try to download an application from the Android Market, there is always this error ''There is unsufficient storage available''. I checked and I had 23 free MB of Device memory and 1.8 GB free on my SD card. I read a lot of articles about this problem and tried many ''solutions'' and nothing fixed it. I will be really, really thankful if anyone can help me fix this. Cheers :good:
Click to expand...
Click to collapse
You can always use scripts to increase the memory like CronMod Unofficial. But the problem with scripts is that it lags after you install some apps. This is because your ext partition is mounted as the /data mount point and SD Card read /write operations are slower than internal memory read/ write operations. So I suggest you use Link2SD Extreme which lags less compared to other scripts. Link2SD places the app link locations in the internal memory and corresponding data in the ext partition. Since the links are in the internal memory, it will be much faster. All you need is a rooted phone, rom with init.d support (all custom roms have one) and ext partition on SD Card (Go to CWM> Advanced> Partition SD Card> Size (1GB)> Swap(0MB) wait for "Partitioning Done!" message). Make sure to do the setup right. If you created the ext partition using CWM, choose ext3 as the partition type from Link2SD pop-up. Only if that doesn't work go with ext2 or then ext4. Here is the link,
Link2SD Extreme
Try to implement this is a newly flashed rom with newly created ext partition. Hope I Helped

[Q] HELP! "Insufficient storage available" error but 770MB free

Hello everyone,
This is my very first time rooting my LG Optimus F6 phone by following GameTheory's tutorials, and unfortunately for me I ran into a problem when moving apps to my SD ext4 partition using Link2SD. Let me be more detailed as to what I did that got me into this mess... Once rooted and with Link2SD installed, I proceeded to creating the 2 usual partitions, FAT32 and ext4. My first mistake was that I created the partitions backwards (without realizing it), the one I wanted the biggest ended up being the smallest. After moving some apps to the SD I figured it would be a good idea to update them, so I did. After updating all the apps, I realized the partition sizes were wrong. Here's where I messed everything up... I decided to unlink all apps I linked (moved) to the SD so that I could reformat the SD to the proper partition sizes, but problem was that after the update it wouldn't let me break the link for some. Knowing this, I still went ahead and reformatted the SD card. This is when I realized some of those apps where part of the system and I needed to re-install them since I kept getting errors from various apps, mainly Google apps. My problem from that point on has been that Google Play Services got deleted from the system and I can't seem to get it to install, I keep getting an "insufficient storage available" error message when I try to download it. There's still 770MB of internal memory available (not SD partition). Can anyone help me get this resolved, please?
Thanks in advance and sorry for the long explanation.
P.S. The rules for new users here prevent me from leaving the link to the tutorials. Look up Android Creations by GameTheory

Categories

Resources