yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] 2kool2Bcruel:
How I fixed the Mount Script Error- update

I recently discovered a possible issue causing mount script errors with Link2SD so I thought I should share this with you and everyone.

I got a second tablet. Immediately rooted it. Stock root always for me. I installed Link2sd. I went to out and got a SanDisk Evo 64GB SDXC card. No matter what or how I formatted it, link2sd wouldn't work.

Several days later, I went and got a store branded 64GB card from Microcenter. It worked first try after formatting. So, curious, I got another SanDisk Evo sdxc 64gb and it failed no matter what.

My conclusion, is link2sd is picky about the SD card. SanDisk Evo64GB is not compatible.

Further testing needs done on whether it's brand specific or class specific. Perhaps SDXC cards as a whole are not compatible.

There is one thing I noticed is that when formatting the 2 partitions on the SanDisk card, there was always that 8MB third unallocated partition at the end. I could never get rid of it.

The Microcenter store brand card did not have this "untouchable" space.

Maybe others can mention specifics of their card device, android version, and sd card info so we could begin maybe a Google Spreadsheet or something to collect data and help anyone else who comes along.
[Android Apps and Games] egingell:
My first 64gb SDXC was a SanDisk. It was bad right out of the box. My own personal conclusion is that SanDisk sucks or at least their SDXC implementation does.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Android Apps and Games] Lurker0:
Evo is a trademark of Samsung, not SanDisk. It looks like you are not familiar with the market and products you buy.

There are many fake SD cards around, so, probably, some problems are caused by fake cards, not the software, and no a brand is responsible for fakes.

---------- Post added at 09:21 AM ---------- Previous post was at 09:17 AM ----------

Wiping effectively uninstalled your apps. Have you re-installed them then? If you didn't, don't expect Relink to work: it is not supposed to install apps for you.
[Android Apps and Games] graed:
From the Link2SD FAQ: http://www.link2sd.info/faq

Am I reading something wrong? As I parse it, I should be able to relink after a wipe.

Has anyone any experience on relinking by hand? There's a dated script on that: http://neonicus.blogspot.mx/2012/04/relink-lost-link-of-application-that.html

The apk, dalvik cache and standard data look trivial to replicate in the new directory structure. In what I have no experience, is symlinking the private data and obb files (Link2SD pro), since they're mounted separately, and I am not savvy in that regard.

Any pointers in the right direction will be appreciated.
[Android Apps and Games] Lurker0:
After wiping data, not after "factory wiping" that you've performed. Wiping data does not uninstall.
[Android Apps and Games] 2kool2Bcruel:
So very true. It couldn't be typo or a simple mistake. It must be my utter ignorance of the market and products I buy.

Wish I would of bought a Lenovo Yoga 2 instead of this weak ass Nvidia Shield Tablet. What was I thinking? You have shown me the error of my ways. I shall buy one tomorrow!

When hell freezes over.
[Android Apps and Games] egingell:
They are the same thing. "Factory reset", "factory wipe", "data reset", "data wipe"... they're synonymous - they erase the /data partition except /data/media if applicable (as in emulated storage).

If you mean clearing the data of all apps (while keeping them installed), then it would be rather pointless to relink them since the links would not get deleted (/data/app and /data/dalvik-cache are untouched). Libs would need to be relinked, but there's a separate option for that.

What he's talking about is the Link2SD should, presumably, scan the second partition for apks and make links for them in /data/app, but it's not.

Edit:

P.S. One can write a shell script to do it.

cd /data/sdext2
for N in *.apk; do
ln -s /data/sdext2/$N /data/app/$N;
done

Linking data is significantly more complicated.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Android Apps and Games] graed:
I've found out the hard way, to leave alone unallocated space either before, after or between partitions, particularly if you want to preserve interoperability between different OS, so I usually dummy partition in windows and format in the needed filesystem afterwards. On the other hand, SanDisk, as of late, have been unreliable to me in other uses, so its a good thing you desisted on that.
[Android Apps and Games] JK1974:
Problems with SD card on Wiko Lenny

I just wrote about that Link2SD apparently did not seem to work on my Wiko Lenny because I suddenly got memory errors although there is enough space left. I also mentioned that I had copied the data from a 4 GByte class 4 card to a 16 GByte class 10 card with cloneZilla, and that there were no errors on the ext4 partition that I use for Link2SD (however, there were errors on the fat partition, maybe due to the age of the 4 GByte card or something else? read below...).

I did forther investigation yesterday. I used ES File Explorer to access the ext4 partition directly and found out, that there seems to be less space used than claimed by ES File Explorer and that there exist many empty folders (or links?) of the android standard folders I have on sdcard0 like "DCIM", "Pictures", "Ringtones" etc. On a working Link2SD equipped smartphone, I only see "Android" and "obb" on sdcard1.

Believing in a faulty SD card, I removed all links with Link2SD and checked the card on the PC with the tool H2testw which does a writing and a verifying test (however, only on the free space; fat partition extended to fill the whole card). No errors.

Then I backuped the fat32 partition and repartitioned the card completely with MiniTool Partition Wizard. Starting the Lenny again, I first saw 3 (!) partitions in ES File Explorer and Link2SD: sdcard0 with 12,37 GB, sdext2 with 2,28 GB and sdcard1 with 2,33 GB. Then I let Link2SD recreate the mount scripts and restarted the phone. Now I only got the two partitions, but sdcard1 was said to be filled with 1,82 GB of 2,33 GB - which is also impossible because I just created the partition. And once again filled with standard folders. I also gave ext2 a try instead of ext4 - without success.

Comparing the mount points with the app Android System Info did not show any difference between the first boot with 3 partitions and the second boot.

So, is there once again an SD card compatibility issue? Is there an app that can reliably check the compatibility?

I wonder why I am able to access the card at all, why I can even link 10-20 applications with Link2SD without getting error messages, and why I get wrong free partition space information on the ext4 partition right from the beginning.

I also did not have problems with the "MiniTool Partition Wizard" in the past, but I could also give "gparted Live" a try. But the fact that folders from the sdcard0 fat partition get "mirrored" to sdcard1´s ext4 file system is IMHO something that looks more like a firmware/tool problem.

Anyone with similar experiences on another phone? Thanks in advance for any hints!
[Android Apps and Games] 5n00p3r:
Hi, I'm on Moto G 2 (XT1068), Stellar Kernel, and have two problems. The first is, that Link2SD show the wrong size for 2nd partition.

Spoiler content hidden.

The second problem ist, that I'm unable to Link all parts of the app. (Just an example.)

Spoiler content hidden.

There comes up an error, mostly for DEX files, sometimes for APK

Spoiler content hidden.

Is it just me or is someone here with the same problem.

Greets

5n00p3r
[Android Apps and Games] :
Can't encrypt SDcard when Fuse is enabled for obb and ext data on 2nd partition

Is it possible to have this enabled in Link2sd and have android encrypt the sdcard? If not, how can I have android only encrypt the 1st partition?

I was able to encrypt the card just fine without Fuse enabled. With it enabled, I get an error.

Thanks.
[Android Apps and Games] egingell:
Android theoretically should not be encrypting the second partition - it's not even coded to look for it.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Android Apps and Games] :
It seems like it is and it's pretty annoying :mad:
[Android Apps and Games] :
Update!

It seems when Link2sd converts the filesystem itself, it converts the whole sdcard and NOT just the 2nd partition. It says, "/system/bin/sdcard" file will be replaced with standard "sdcard" binary from Android SDK image".

I can see why this would then interfere with the native Android sdcard encryption process.

Why would it do this?
[Android Apps and Games] egingell:
It doesn't convert anything. That file is an executable binary. It's not the sdcard itself. Samsung edits it for whatever weird reason and makes it not work like it's intended to.

Edit: In fact, I'm fairly sure the sdcard binary is taken directly from the AOSP files from which all ROMs are derived.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Android Apps and Games] :
Okay...

Is there any way to get these both working?
[Android Apps and Games] rfka:
I love link2sd but asus don't. Second time with bootloop and now not even adb works:

total xfer : 0.00x

can't open /dev/block/by-name/misc

can't mount /cache/recovery

failed to mount cache
[Android Apps and Games] 34muhammet:
Dude I have same problem too. My phone is M4 Aqua. And My Soc is 64 bit. Did you find solution for this issue ?
[Android Apps and Games] morrows:
I need to make a fresh install fora new rom but what can I do with link2sd partition And apps on it ?
[Android Apps and Games] TBGleNolife:
I stopped to search... I'll wish someday I'll try again and find
[Android Apps and Games] mongoled:
Hi peeps,

great that I found this thread as I would like to understand what is causing an issue I am having with Link2SD.

It goes like this,

Cat S50, Android 4.4.2, rooted and using SuperSU.

Latest version on Link2SD.

Samsung Pro 64GB, two primary partitions, FAT32/Ext4 in this order (also tried with Ext2).

Presently FAT32 is set at 32GB and the rest is used by the Ext4/2 partition (also tried with different partition sizes).

Created using "MiniTool Partition Free".

Installation, configuration all is OK,

Using "ES File Explorer" I can see both FAT32/Ext4 partitions fine, I can move apps to the SD all OK.

But when I use the "Link to SD Card" feature for an app, it shows it works, but then when I attempt to see the Ext4 partition in "ES File Manager" it is no longer in the list of available partitions.

Link2SD "Storage Info" shows that the partition exists.

I have also tried another two file managers and neither can see the Ext4 partition.

The only way with my limited knowledge to get the Ext4 partition to show in "ES File Explorer" again is to format the Ext4 partition.

Then when I boot the phone and check "ES File Explorer" I can see the Ext4 partition.

It will remain visible until I attempt to use the "Link to SD Card" feature.

So how can I go about troubleshooting this ?

Thank for any help that may be forthcoming.

:)
[Android Apps and Games] Technical:
Is there a way to move OBB folder to external sdcard (not the 2nd partition)?

If so, how? Can't find such settings.

Thanks.
[Android Apps and Games] mongoled:
I spent several hours yesterday investigating and have a correction to make.

This is not an issue with the partition being mounted, I have confirmed that the partition is mounted fine.

The issue is that the second partition of the SD card does not show up in the "Device list"

Darn, I still cannot upload an image (screenshots) to show exactly what I mean.

The second partition is browsable from device/data/sdext2

But not showing on the homepage of "ES File Explorer".

I know that Link2SD caused this to happen, but I am unsure as if this is a "ES File Explorer" issue, hopefully someone could advise.

Thanks
[Android Apps and Games] xdarthanonx:
Test it with H2testw.
[Android Apps and Games] mongoled:
Hi,

thanks for the link, it is a Windows application, I read the "read me" file and from what I have understood it will write only to a windows partition.

Ive zero'd the drive a couple of times, and at this moment in time an not in a position to format the drive and run the tool you have linked me to.

Was hoping to get an answer of how to troubleshoot rather than having to back up my data and recreate partitions just to run this test on a new Samsung SD card.

Cheers
[Android Apps and Games] lightknight0:
Hi

I'm using link2sd and tried to move the obb and data to my sdcard. I did not partition my sd card (fully fat32) and while link2sd complained about changing from sdcardfs to fuse, after a reboot, it was able to move the app to the sd card and link the obb/data to my sd card.

How is it able to do that if I don't have an ext partition? I've linked a few apps this way and have run them successfully. Is it better to have an ext partition?

Thanks

[edit:read the faq]

So, if I read the FAQ correctly, apps2sd is android's native way of moving apps to the sd card. Its flaws mainly include compatibility with certain apps with certain features and that mounting the sd card as mass storage will disconnect the apps.

Disregarding the first advantage of link2sd's method because you can do that without the second partition now, the advantages are the opposite of apps2sd's disadvantages.

Since i'm really only interested in mounting larger apps such as games, I don't mind the disconnect when connecting to my pc to grab files out.

I also kind of like that without the ext2 partition, space for apps can grow as needed and everything remaining can be used as regular media stuff.

So my kind of new question is if EXT has any inherit performance boost or disadvantages that I'm missing?

Also, I've read that link2sd sometimes drains more battery because it takes the phone more energy to read from the sd card than from internal storage. So for my setup currently, I'd assume that there is very little extra battery drain since most of my regularly used apps are on the phone but when I run a game, it'll drain my phone faster because it has to read from the sdcard. Does having an always mounted ext4 2nd partition cause any extra drain if I don't really keep apps that run in the background on my sdcard?

Thanks!
[Android Apps and Games] mongoled:
Here you go,

the SD is 'clean'

[IMG="No errors"]http://i.imgur.com/2ylbCsh.jpg[/IMG]

Man, very frustrating, I am a Windows/PC technician for over 20 years.

Would have thought someone would be more forthcoming with some information on how to deduce the issue.

Do I really have to start learning how the linux operating system works just to fix this?

** EDIT **

Some additional info,

this issue is not effecting "Device Storage Analyser"

"Device Storage Analyser" still shows the sdext2 partition OK.

So off to post at the "ES File Manager" thread to hopefully get some info on how to fix.

Thanks guys

Cheers
[Android Apps and Games] Dovidhalevi:
Sudden Problem: Cannot Link Data!

Do not know what is going on here. Link2sd was not recently updated. Today, any attempt to link data to sdext yields

"Failure -- Link2sd apk invalid" or something like that! Tried restoring app and data from Titanium, no help. I obviously have "plus," been happily using it for a while now.

Fix?
[Android Apps and Games] skynet-rider:
Hi, also it gives me the damn:

Error:

Link2SD invalid package

Although I have the Link2SD Plus

Please help...
[Android Apps and Games] -Jonny-:
This is normal behaviour for link2sd. I just favourite the extsd folder in es explorer so you can access it from home page.
[Android Apps and Games] NFS_FM:
Thank you for this perfect program, which I use since my early android days. It's working very good in my XPERIA Z1, using stock 5.1.1, but I have a little request, regarding intergrate system apps updates feature. I want to ask, if it's possible to not automaticaally rename the updated .apk when directing it to /system/app or /system/priv-app to to just base.apk, but retain the actual application name itself, as this may sometimes cause problems. For example, if I have an app (along with the required libs) located in /system/priv-app/SemcCameraUI and which is named exactly like the folder name, i.e. SemcCameraUI.apk, after the integration the .apk's name gets renamed to just plain 'base.apk' and sometimes (not always) the lib/arm folder gets empty. Is there anything you can do?
[Android Apps and Games] egingell:
Until (and if) it ever gets fixed, I would not recommend using this app for that. Use Titanium Backup or some app dedicated to integrating system apps.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Android Apps and Games] NFS_FM:
After KitKat, Titanium Backup's integrate function is too buggy, even restoring applications' backups into system doesn't work (I don't know if it's my fault or app's fault). Also, I have also tried Lucky Patcher's feature, and no result. I've sticked to LinkSD, as it's the only one that integrates lib files and not causes force closes, or even bootloops, after the operation. If you know some other app, please inform me. Oh, and I forgot, batch integrating would have been an awesome option, too.
[Android Apps and Games] xdarthanonx:
Try System cleaner ROOT or System cleaner 2. Works for me, but I'm on Jelly Bean 4.2.2 with a /custpack partition (Link2SD also integrates updates without any problems).
[Android Apps and Games] NFS_FM:
I don't think this will work, as the way that the system handles app installations is different between Jelly Bean and Lollipop. Also, there is no dalvic, but arm. Anyway, I will test it, and let you know. Thank you for the recommendations!

Edit: It did indeed work, but the renaming issue remains. Thank you anyway.
[Android Apps and Games] teradark:
OK I tried searching for this many times but didn't find a answer. Instead of 2 partitions, could I just make the whole sd card EXT2 for my apps?
[Android Apps and Games] anaknin:
Is there an increased battery drain on using link2sd on cm12.1?

I have around 50apps linked to sd, 3gb ext4 partition, 0mb swap, partitioned with twrp with data library and app data linked to extend partition
[Android Apps and Games] zzztidurvirus:
You could, but, what about those files in /sdcard/Android/data/ or /obb/ ? It would cause chaos to the phone when it cant find FAT32 partitions. Sure, you can throw your media stuff in that /data/sdext2/ but can it be detected? Nope. MX Player cant find stuff in /data/sdext2/. Similar to those apps data in /sdcard/Android/. Im good with using microSD class 10 UHS-1 32gb with 4gb ext4.
[Android Apps and Games] Dovidhalevi:
More on invalid link2sd apk problem:

Had to restore my phone, only had a two month old backup. Did that. Before link2sd upgraded back to recent version, it still had this error trying to link data (plus). The problem did not exist when this backup was done.

So what is happening here?
[Android Apps and Games] ibub:
Just a guess, could it have something to do with Google Play services?
[Android Apps and Games] ride_bmx_mhell:
what does mean "second partition of sdcard?

should i partition it in windows?
[Android Apps and Games] xdarthanonx:
http://www.link2sd.info/faq
[Android Apps and Games] skynet-rider:
Hi, all I have done and in the manual, but the strange thing is that before I could use, that is, linked app, but upgrade to 5.0.1 lollipop and returned to install as I had and now commands mistake in trying do link to the apk's.

Please I need your help.

Thanks ...
[Android Apps and Games] Dovidhalevi:
Good an idea as any. Problem source is obviously outside of link2sd and play services is the best trouble-maker and battery-guzzler every created by Google.

Link2sd needs to handle this problem, whatever the source, however.
[Android Apps and Games] xdarthanonx:
Have you tried linking data separately, after linking apk/dex/lib? Any broken symlinks in /data/app-lib? Maybe there's something funky going on with your license key?
[Android Apps and Games] Dovidhalevi:
This is what I am doing.

Always possible. I need some sort of script to find them easier than sifting through 100+ items.

Such broken links usually prevent installation or upgrade of the particular app. Reason nowhere evident, but broken symlink first thing to check.

License is/should be fine. Tried reinstalling link2sd and plus key to be sure.
[Android Apps and Games] xdarthanonx:
Open a terminal and enter:

[COLOR="Blue"][B]su[/B][/COLOR]
[COLOR="Blue"][B]find[/B][/COLOR] /data/app-lib -follow -xdev -maxdepth [COLOR="Red"]1[/COLOR] -type l
[Android Apps and Games] Dovidhalevi:
Way cool. Didn't know we had working "find" on the phone. Learn something new always so double thanks.

Found nothing on /data/app-lib, found two previously uninstalled apps on /data/app. One of these is a known problem every time a try it. Got rid of the dangling symlinks.

Surprisingly, this fixed it!

[MENTION=3258861]bakpinar[/MENTION] Please fix up stuff like this :)
[Android Apps and Games] xdarthanonx:
I'm not sure if it's native, but it comes with BusyBox.

To search multiple directories:

[COLOR="Blue"][B]find[/B][/COLOR] /data -follow -xdev -maxdepth [COLOR="Red"][B]2[/B][/COLOR] -type l [-delete]

Just be careful with the -delete switch and don't go deeper than 2 levels.
[Android Apps and Games] Piwakk:
I'm trying to do this:

then I see this:

and finally when I'm trying to change it in other way I see:

Can you help me?
[Android Apps and Games] xdarthanonx:
Have you checked the file system, as suggested?
[Android Apps and Games] Cheetah64d:
Problems with Link2SD Plus

Hey.

I'm using ZTE V5 Redbull, CM12.1 Rom Installed.

I bumped into weird problem, which caused me to flash my phone several times trying to find solution, but with no avail..

What I did:

Flashed the recovery with TWRP 2.8.7.0.

Re-Partitioned the SD-Card from TWRP recovery (with EXT of 512MB and SWAP of few MB as well. Didn't know back then I'm making a BIG mistake...).

Flashed the ROM (CM 12.1).

Took the SD out, and re-partitioned it with Mini-Tool Partition Wizard. Made the new partition (5th or 4th, can't remember now) as big as 4GB, since this is 64GB SD-Card.

Installed Link2SD, and tried to mount the additional 4GB partition.

Of course I bumped into error (probably "Can't mount" error - can't really remember now), and from then on - I've been playing with the SD-Card, trying all the combinations of partitions I can think of, but nothing works.

Just as the last effort - I've reformatted the card, one time with TWRP (with no EXT and swap this time), and the other with MiniTool Partition Wizard, making a big one partition of 64GB, and then shrink it and create another one of 4GB with MiniTool Partition Wizard, so I have only 2 partitions on the SD-Card. Tried to mount it onto Link2SD - still - nothing helped.

I think my problem is like this:

As far as I understood - Link2SD always looks for the second partition on the card. For some nasty reason, no matter what I'll do - my first SD-Card partition is 56GB in

mmcblk1p1

, then, for god knows why, I got 1 KB partition in

mmcblk1p2

, and the 4GB partition is

mmcblk1p5

!!

I know this because this is the result of DiskInfo App, and as well the output of the command:

cat /proc/partitions

in phone's terminal.

As I wrote before - I tried to re-partition the Card several times now, but it seems somehow to 'remember' that once it was partitioned to 4-5 partitions, and always making the 4GB partition as

mmcblk1p5

..

I really don't know what can I do anymore, beside try to partition the SD-Card only with TWRP, allocating EXT 4GB, and no swap.

Will this should work? Why everyone around recommending partition the card with MiniTool, and not directly from the recovery?

Any help will be appreciated!
[Android Apps and Games] xdarthanonx:
Start again. Choose one partitioning tool and stick with it. I prefer to do it from my PC (because it's easier than playing around with a tiny screen) so I use MiniTool (or sometimes GParted).