yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] crazylilazn:
Yeah that's what I was trying to do when I got the error message. I can't install any sort of app at all. Could I possibly just drop the apk directly into /system/app/ and change the permissions? Would that work?
[Android Apps and Games] egingell:
Yes... or /data/app (permissions 644 either way) and reboot.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Android Apps and Games] ponirosn:
just to clarify on the first step where I remake the partitions in GParted what option should I select? ext4?

waiting yours :)

other than that I will try tonight and revert with update :) thanks for reply
[Android Apps and Games] crazylilazn:
Update on my situation - installed earlier version of Link2SD. It didn't help. I then went and checked on my SD card using Minitools in Windows. It told me my 2nd partition had somehow magically converted into FAT32 (from the ext2 it was originally). I went ahead and re-formatted to ext2 and it mounted properly! Success!

Other problems that still exist though:...

I'm running into an issue where all of my apps are showing up as one big fat System Data block indicated here - http://i.imgur.com/ksukQGG.png. It had previously shown the individual app folders where it shows the big "System Data" block now.

I'm assuming that Link2SD created symlinks that are broken somehow? I would assume so at least. I can't fix it by running "Relink all application files" because it says "Found no files to link".

Other issues of note:

1) Can't install any apk files from the Play store or manually. On the play store it says "Error -110".

2) When I open up the Android app manager, all applications (both system and user installed) show up with a 0kb size.

3)***All applications that I've tested are still running normally on my phone, so they exist and are able to be used normally somehow.

Can anybody help me out? I'm unable to move apps/install apps/clean cache/etc. because of all this.
[Android Apps and Games] optimusodd:
In GParted format the second partition in "ext2" format.AFAIK,that's more stable and reliable esp. when you are going to use Link2SD scripts.

Just remember that when Link2SD asks you to select the file system of second partition,select "ext4".

Good luck!!:)
[Android Apps and Games] kailashrs:
[MENTION=3258861]bakpinar[/MENTION].....I need help..... Everything works as intended but the second partition (ext4) won't mount automatically at boot.... I have to quick reboot every reboot...... I'm using CM 12 on Moto E.... I'm ready to give u any sort of logs required to resolve this issue.... Plzz help
[Android Apps and Games] optimusodd:
You are getting that error because an application( installed version of Link2SD) with a package name same as your application(Link2SD version you want to install) already exists.

I guess you are trying to install the app via ADB,you need to install that manually.

Just Go to Settings > Apps > All > Select Link2SD and Uninstall it.

Now put the app you want to install to the root of your SD card,navigate via any file manager (e.g ES Explorer ),select the app and install it.
[Android Apps and Games] crazylilazn:
I've posted an update a couple posts above yours. I was actually able to mount the ext2 partition by re-formatting the SD card. However, I'm still running into the error and I can't update Link2SD OR install any other apps. Even if it doesn't exist in my system, it still brings up those errors. What I've found is that even though app data still exists in /data/data/app, it is not recognized by the system, since the system (and link2sd) show that my data is at 0.00b for the respective application.

Edit:

So here - Aldiko definitely should have data and cache, but it shows 0 - http://i.imgur.com/QBWznRD.png

And this is the error that I get if I try to use the default Android Move2SD option (the original one), or if I try to install an app - http://i.imgur.com/yr2GoUW.png
[Android Apps and Games] optimusodd:
Sorry,didn't notice the update.

Okay,go to Settings >Apps ....Force stop "Google Play Store" > Uninstall update,Clear data and Clear cache.

Do the same with "Google Play services".

Restart the phone and check if you are able to install any app.

I would also recommend repartitioning your SD Card with GParted.It helped me resolve several issues in the past.

Format the second partition in "ext2" format and after installing Link2SD on the phone when it asks you to select the file system of second partition,select "ext4".

Check that and let us know what happens.Good luck!!!
[Android Apps and Games] crazylilazn:
Well I can't install apk files manually either, I don't think it's a problem with google play services/play store. Also, I actually just reformatted my card earlier and it's been working well now. The problem though isn't with my SD card anymore I don't think, because there aren't actually any files on the 2nd partition. Everything's in the internal storage.

Lastly, I ran the mount script using ext4 and rebooted, and my system data is still one huge chunk. I'm curious what the point of this was; I was hoping that it'd somehow work :(.
[Android Apps and Games] Dovidhalevi:
If formatted ext2, seems to me I would select that.
[Android Apps and Games] optimusodd:
Lol,you are right buddy,going by LOGIC anybody would do that :)

But in the case of Mount Script Errors like

mount operation not supported on transport endpoint

Mount script cannot be created

selecting "ext4" for the file system of second partition in Link2SD does the trick in most of the cases :) I am not sure why,probably a Bug or something.Esp if your second partition is formatted in "ext2" and you select "ext2" option in Link2SD,you are more prone to get "Mount Script Error".I have faced that personally and after a long research resolved the same using this trick.Many people have confirmed that.You can find some here, here ,here and here.

In my old devices (with custom ROMS) I used to have "ext3" as second partiton.And that was flawless.But in my current device with Stock ROM I was forced to use "ext2" coz of the compatibility issues of "ext3" with kernels.Got the same "Mount Script Error" and selecting "ext4" did the trick.And Freespace and Link2SD show SD-Ext formatted in "ext2".

I don't know the reason :rolleyes: Not sure if "SD Card Capacity" and "Size of Ext Partiton" have to do something with that.Bulent Akpinar knows better :)
[Android Apps and Games] ponirosn:
tried to follow your steps and I am stuck at step 1 : tried starging GParted as it was shown in the link that you provided but when I restarted my pc and tried booting GParted it wouldn't proceed, I got an error message : error 13. Invalid or unsupported executable format
[Android Apps and Games] optimusodd:
What error ?

---------- Post added at 01:06 AM ---------- Previous post was at 12:59 AM ----------

What is your OS ?
[Android Apps and Games] ponirosn:
Windows 7 - 64bit
[Android Apps and Games] optimusodd:
I see no harm doing what I suggested.Are you able to update your apps ?

Again,were any "system" apps linked to SD-EXT ?

Make sure "Unknown sources" is checked (Settings >Security ).
[Android Apps and Games] crazylilazn:
I can't update apps and unknown sources has been checked already.

I looked through Link2SD and was unable to determine whether or not any system apps had been in SD-EXT. It states that there aren't any apps on my SD card, but I don't know how accurate that is.
[Android Apps and Games] egingell:
I had to change the mount script on my 4.2 TouchWiz do I could write other things to it (ie link it to a sub folder of the first partition). I changed the gid from 1000 to 1015.

May not be the problem, but it's a small change that doesn't hurt anything.

E.G. (mine's FAT)

mount -t vfat -o rw,uid=1000,gid=1015 ......everything else the same......

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Android Apps and Games] jonmyers:
Hello Daniel,

I have exactly the same problem as you. V 4.09 gives me "invalid package file" whenever I try to move internal data to my ext4 partition. I am running rooted gingerbread.....my setup ran perfectly until a week or so ago. I am very interested in anything you find out about solving our problem.

Best,

Jon
[Android Apps and Games] abhishekcma:
+1 same problem
[Android Apps and Games] optimusodd:
Sorry for the late response.Any update ?That's all getting really messed up :eek:

I would suggest you to flash the Stock ROM,that seems the most feasible solution as of now.We can go ahead with troubleshooting but I think that's the waste of time if you don't care/already backed up/already lost your data.

Please allow me to offer my two cents.Don't update "Link2SD" as soon as you get the new update (if you are not facing any bugs or issues).Read the feedbacks before going ahead for update.Troubleshooting SD-Ext related scripts is a pain in the ass and I have stopped keeping important/sensitive stuff on external partition long ago (Esp when you are transiting to a new Android version ).

Keep us updated about your issue.
[Android Apps and Games] DARKSOUL007:
FC!

Guys, I need help... I've installed the latest version (Google Play) and I'm using the Albe LolliRom V0.99. Every app that I link to SD crashes and I receive the message: "App XXX stop working.". When I remove the link, the app works perfectly.

Someone is having that issue?

Can anyone help me?
[Android Apps and Games] egingell:
Some apps don't like being linked. Simpsons Tapped Out doesn't like its libs linked.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Android Apps and Games] DARKSOUL007:
Dude, you've given one app example... But my problem it's with all of them... Does anyone have some solution?
[Android Apps and Games] Yamuir:
package invalid

Any solution of "package invalid (Link2SD is version 4.0.9)"?
[Android Apps and Games] kailashrs:
Okay......Discovered my phone has no system write access though it has root and so Link2SD is not able to create the mounts scripts.....Someone plzz upload your mount script so that I can push it to my phone in recovery mode (recovery has write access):):).......BTW I use ext4 or F2FS secondary partition......Either one would be fine, thanks in advance......Plzz help :(:(
[Android Apps and Games] badger_8007:
Link2SD issues with MotoG LTE

Hello everybody

I have a MotoG LTE (XT1040) with stock Android 4.4.4, rooted and bootloader unlocked. Since I installed Link2SD I have some issues that I would like to point out and see if somebody have been able to solve them. The SD card used is a Kingston Class10 32GB, and the 2nd partition is 3GB ext4. Link2SD version used is 4.0.9 .

Now to the issues:

I update a linked app through the play store, it will do correctly and the app will work, but if I go to the data folder I can see there is a duplicate apk. One of them I suppose is the original apk and the name ends with "-1", i.e. com.app.name-1.apk; this appears as a symbolic link and the file is no longer located in the 2nd SD partition as normal. But there is also a second apk file with the same name but ending with "-2", i.e. com.app.name-2.apk, that is not linked and resides completely into the data folder of the internal memory. I can see that dex and library files of the app are stil linked and not duplicated.

If I try to relink the app that duplicated, Link2SD it will say it finished, but the app will disappear from the list, and the phone and play store will treat it as if is not installed, the linked apk will still be in the SD but the file now is corrupted and shows zero size, the symbolic link in /data/app will still be there also, along with libs and dex files already linked (strangely, this are not affected, they seem to be not corrupted). So far the only way to correct this has been to manually delete all files related to the app and reinstall it from play store. This is annoying. :mad:

If I reboot my phone after first linking and app via Link2SD, and go to Link2SD main program window, select to view only linked apps, they will show as if the APK is not linked, only dex and libs files. This is only a graphical glitch because the apps are correctly linked and work ok. The files and symbolic links are in their correct places.

Anybody else has been confronted with this issues? Have you found any solution?
[Android Apps and Games] cantenna:
I've got a quick question, I have the pro app, used to use foldermount for obb requirement but lately I am having pro registrations issues to which developer is not responding...

Anyways I have started to use link2sd to instead, I'm moving away from foldermount,what I want to know is, if I install a different ROM is there a backup restore option to remember obb pairs? This option exist in foldermount.

Thank you

Edit, never mind, awesome! All I have to do is copy and paste into right directory and reboot. Sweet app man:) you've got a better solution for obb mounting than foldermount
[Android Apps and Games] crazylilazn:
Link2SD has been causing me more problems then it's worth, so I've decided to remove it. The question is, what exactly did Link2SD do? I know it added stuff to /system (where's the mount script?). Removing the app itself doesn't do anything. I also know to put back all of my files/apps onto internal memory first before removing the script and then reformatting the SD card.

For reference, I'm running a T-Mobile LG G3, D851, rooted on the stock rom, and also with the stock recovery (so no flashing folks)
[Android Apps and Games] ibub:
After uninstalling, look in /system/etc/initd/. Don't remember other places to look. [MENTION=4708203]Dovidhalevi[/MENTION] should be able to tell other locations.
[Android Apps and Games] crazylilazn:
In my searches I actually found a couple posts referencing this folder. My problem is that that folder doesn't even exist in my /system/. I have a lot of init files within /etc/, but I don't know if they're relevant or not.

I also have seen that install-recovery.sh should be deleted. However, those instructions were always part of custom recovery installs. Is install-recovery.sh needed for a stock ROM LG G3? Or was it purely added by link2sd, which means I can delete it safely?
[Android Apps and Games] egingell:
Yes, install-recovery.sh is the one or /system/bin/debuggerd (be very careful with that one - the old one, debuggerd.bin, must be renamed to debuggerd*). *If both files are not there, it's not that one. But if you removed the second partition from your sdcard, it won't hurt anything if either of them stay - it will just fail silently.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Android Apps and Games] ibub:
Deleted
[Android Apps and Games] Dovidhalevi:
Favorites

Would like to make use of this to get around the "Achilles' Heel" when flashing a ROM or otherwise needing to regnerate Dalvik cache.

1. Mark bigger-dexed apps as "favorites."

2. Either remove them or ... take off their symlinks in /data/app leaving all the other files in place! I propose this as a possible new functionality.

3. Flash, etc.

4. Reinstall these favorites but ... will this list still be available if I removed these apps?

Or ... if I only removed the /data/app symlinks, simply relink these apps (current functionality allows relinking all apps but would work as well). Proposed new option?

5. Reboot and enjoy ...
[Android Apps and Games] Technical:
Can anybody say me what is encrypted when moved to the 2nd partition?

apk, libraries, data? Everything?

I wish to try Link2SD in multiROM environment and want to know if I can use in more than one ROM?

Is there a way to set the same encryption key for multiROM scenario?
[Android Apps and Games] egingell:
Nothing get encrypted. If your taking about the ones that say "encrypted", those are paid apps and they are encrypted by the phone - not Link2SD.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Android Apps and Games] Technical:
Thanks. I'll have to discover how can I manage this from my phone then... and it will be more difficult for sure...

My 8 thanks for this day emptied :(
[Android Apps and Games] egingell:
I'm not entirely the "encryption" works, but I've used Link2SD to link then unlink the app to remove the "encrypted" flag.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Android Apps and Games] bbwarfield:
Q1: How big should 2 partitions be? Q2: I can't see 2nd partition in ES File Explo

Question 1.

I am a Link2SD Plus user. I have a 64-GB microSD card in my 8-GB tablet. How do I decide how big to have the 2 partitions on the microSD card? I cannot predict how much I need for each partition. And I'm worried that if I choose the wrong sizes for the partitions, I might later find that one partition is full while the other partition still has lots of space. I have the aParted app on the tablet, and when I go through the steps to resize partitions (without finalizing the resizing task), aParted warns me that some data might be damaged during the resizing.

Question 2.

In the interim, I made the first partition FAT (as advised) and the second partition is ext2. When I connect my tablet to my Linux computer, my computer only sees the FAT partition. Likewise, ES File Explorer app on the tablet only sees the FAT partition. Why isn't the Partition No. 2 (the ext2) partition visible/accessible?
[Android Apps and Games] cantenna:
I formated first partition as fat32 and second as ext4 10 gig and I have about 7 gig internal storage.
[Android Apps and Games] optimusodd:
Repartition your SD Card using "GParted",it's Linux based tool which is arguably better than onther partiton tools.

I can't provide the source but I have read in some xda thread that SD-ext can be 10% of the total memory.Going by that you can use approx 6 GB for external partition.But personally I think using 6 GB for SD ext is a waste of storage.I am using 1 GB SD ext partiton on 16 GB SD Card which can accomodate around 50 apps (20MB each) plus my device has got internal SD Card.I don't think I am gonna use more than 200 apps ever :p but again that's a personal choice and depends on the number/size of the apps and what you want to move to SD ext.

Are you on Custom ROM ?For Custom ROMs,ext3/ext4 are the most preferred file systems for external SD partiiton.Make sure that's compatible to your Kernel.

Linux computer or Windows PC ?If that's Linux,I think your SD Card is not partitioned correctly.Repartition it.

ES File Explorer should see it.:confused: Make sure you are looking from the top of the file tree ("/") and in Settings "Root Explorer" is "ON".It should appear as "sdext" or something like that.

Hope this helps!!
[Android Apps and Games] egingell:
You will never see the second partition if you use your tablet as a USB drive regardless of how it's formatted. The tablet is a bridge over which hard-coded partitions are sent because there's no reason to code for a dynamic number of sdcard partitions.

Edit: ES File Explorer won't see it as an sdcard for the same reason. You'll have to navigate to /data/sdext2 and bookmark/favorite it.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Android Apps and Games] bbwarfield:
My "Ext SD" (/storage/extSdCard) is 32GB large. My "SD Card 2nd Part." (/data/sdext2) is 27GB large. So far there hasn't been a problem.

You and I seem to be using Link2SD (or our devices) differently. You wrote that each app of yours takes up 20MB each.

Here is my case:

I put 146MB of the Merriam-Webster Dictionary" onto the SD ext partition. The app (Apk, Dex, Lib) is 30 MB, and Data (internal) is 115MB.

The Wiki Encyclopedia Offline app is a whopping 3.59 GB, almost all of this residing in Obb. All of that is on my SD ext partition.

.

No, I'm using the ROM that came with the Samsung Galaxy Tab 4.

I posted incorrectly. I was able to find my 2nd partition in /data/sdext2, without any problem.

Thank you again for taking the time to reply to my message.

---------- Post added at 09:30 AM ---------- Previous post was at 09:20 AM ----------

Thank you, egingell, for your helpful reply. I hope to remember this fact you've pointed me to, so that I won't be frustrated in vain.

I added it as a favorite in ES File Explorer. Great tip! Thanks again. :)
[Android Apps and Games] optimusodd:
Nope you got me wrong.My each app doesn't take 20 MB of data.All I want to say is my SD ext can accomodate around 50 apps (of 20 MB each ) if all I am linking to SD-ext is app :)

27 GB sd ext ? Damn!Never heard anybody having such a huge external partition.Why do you link everything to SD-ext ?You can move offline dictionaries,maps,games etc to SD Card.Moreover I never link any sensitive stuff to SD-ext as I can't take the risk of losing that.I have seen enough of these mounting script errors.I link the apps I don't care losing.Just want to be on the safer side.

That's why I was wondering :) I am glad you have resolved that :D
[Android Apps and Games] nikhildway:
in sufficient storage for some apps

I need a help guys..

I have link 2 sd by which so many apps ar linked 2 sd...but yesterday i shifted for new 32gb sd card ...in order to shift apps to new card i unlinked all the apps which was there in previous card except 3 apps...coz my internal memory got filled...so for remaining apps i did titanium backup ... After inserting new card i again linked those apps...and for those 3 when i batch restored via titanium backup it failed ...so i decided to install them fleshly by play store but INSUFFICIENT STORAGE AVAILABLE ERROR is coming (only for those apps)...i also downloaded apks and tried to install same error is coming...please help me out how to fix

this

Apps are -

VSCOcam

VIVA video pro

Reverse camera

My phone :- GT-I9082(GALAXY GRAND DUOS)

RUNNING ON CM11

Thanx in advance:o
[Android Apps and Games] Dovidhalevi:
Using Link2sd and getting "insufficient space" knowing full well there is really plenty?

Found this around here somewhere: Check symlinks in /data/apps and any other places where link2sd sets them up, i.e. for libs, data, etc. If there be obsolete, dangling links, that is the problem. Remove these files using your favorite file handler or adb. That's it.
[Android Apps and Games] nikhildway:
big thanx

It worked thnq sooo much :D one more question ...it means i'll have to do this process everytime.. if app is linked to sd?
[Android Apps and Games] egingell:
Probably. The place with potentially the most big stuff is the download cache (/data/data/com.android.providers.download/cache).

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Android Apps and Games] Dovidhalevi:
I believe this occurred accidentally because of changing the sdcard and restoring from backups on PC. Usually, apps are correctly deleted or unlinked. But who knows?
[Android Apps and Games] bartolome321:
Second partition is not mounted

Hello,

I have a new Posh Orion Mini S350 that I rooted using Kingo.

After rooting I installed SuperSu.

I bought an 8Gb Sandisk SD card and created a 6Gb fat32 primary partition and in the remaining space I created a primary ext2 partition.

I started the phone, installed link2sd, granted root permissions and selected ext2 for the partition /dev/block/mmcblk0p2, but the mount script failed with this message:

Mount script cannot be created.

Mount: Invalid argument

When I go to storage, I can see the 6Gb partition (/mnt/media_rw/sdcard0) but in the SD Card 2nd Part. it says Not Mounted.

After that I tried with different sizes for the partitions, different file systems for the 2nd partition (ext2, ext3, ext4, fat32) and it still does not work.

Is there anything I can do to make this thing work? The phone has only 512Mb of storage because it is a very cheap phone, but If I can use link2sd then I will be fine.

Thanks in advance
[Android Apps and Games] ejay_gl:
Hi all!

I have a problem with link2sd plus version. I can't link to sd card apps. It says "Link2SD package invalid". I uninstalled and installed the free version from play store and now i can link apps to sd. But the free version lacks of good features.

I have Xperia Arc S on 4.4.4 KitKat. second partion is ext 2. Any solution?
[Android Apps and Games] pdppdp:
Any solution for this issue?