yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Arceus99:
I recently got a samsung tab SM T280 which has 8gb internal so i decided to use link2sd. I made second partition ext4 because others didnt work. So i mounted it restarted. it asked me to do a quick reboot after which i was able to link apps. I linked about 1.5gb apps and the all worked very well. Later i rebooted the device. THE LINKED APPS WERE LOST. I cant find them. Link2sd gives mount error (screenshot attached). Please help me and tell me what I should do to fix this. Trying all the options given in screenshot does not help.

I have stock samsung android 5.
[Android Apps and Games] Xmaster111:
I have same problem!!!

SM J320FN

Android 7 Nougat RR 7.1.2r29

(I had the same problem also with Android 5.1 rooted)
[Android Apps and Games] Arceus99:
Well I found the fix if anyone wants it:

Use apps2sd to create mount script, reboot and 2nd partition stays mounted. You can unistall apps2sd afterwards if you like.
[Android Apps and Games] Entropify:
I have set up it to work with ext4 (20gb out of 64gb total) (Android 4.4.4 stock, galaxy note 4), purchased the Plus version.

However, after a night of standby it breaks, the linked apps can't be opened with error as follows. Everything works again after reboot.

01-04 20:08:39.710 E/AndroidRuntime(30517): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.spartanbodyweightworkouts/com.spartanbodyweightworkouts.SplashScreen}: java.lang.ClassNotFoundException: Didn't find class "com.spartanbodyweightworkouts.SplashScreen" on path: DexPathList[[zip file "/data/app/com.spartanbodyweightworkouts-1.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]

I link everything in the applications, excluding "ext." options

Also, precisely since the use of the app, phone sometimes experiences spontaneous random reboots
[Android Apps and Games] xdarthanonx:
Try unlinking library files.
[Android Apps and Games] BraianV:
Is any app like Link2sd that works with oreo 8.1?
[Android Apps and Games] Entropify:
So far it worked. As long as this post exists, the solution still works for me 100%, else I'll come back to this board. Thanks!

EDIT: all linked apps break once again :(, not a solution
[Android Apps and Games] xdarthanonx:
Since moving to Lollipop (from Jelly Bean), I've found linking arm library files causes problems, but linking arm64 library files is okay.
[Android Apps and Games] Entropify:
I'm on KitKat.

Good news - The random reboots seem to have stopped, maybe I've unlinked some apps.

Bad news - Now, just as before, all linked apps lose their icons and force close on launch. Never happens instantly after boot, no problems for at least several hours since last boot. I'm wondering if Greenify is interfering
[Android Apps and Games] xdarthanonx:
Have a look at your Dalvik cache - do you have any files like data@[highlight]sdext2[/highlight]@something.dex ?
[Android Apps and Games] Entropify:
Yes, I have many of those in /data/dalvik-cache, attached two of such app in Screenshot

(checked After the Event in which the linked apps lose their icons and stop working, if that is relevant)
[Android Apps and Games] xdarthanonx:
What's the output from these terminal commands:

ls -l /data/dalvik-cache/ | grep grabyspin

ls -l /data/sdext2/dalvik-cache/ | grep grabyspin
[Android Apps and Games] Aitso67:
proplem

I installed this app, I bought the plus version. my device is a xiaomi redmi 3, the external sd memory is 64gb class 10 formatted in ext4.

unfortunately most of the apps that I moved completely with link2sd plus do not work. You can help me solve the problem, thank you.
[Android Apps and Games] Entropify:
After the linked apps get broken :

/data/sdext2 folder is empty (checked with root access)

The output attached as Screenshot

EDIT:

While they still work (after fresh reboot) :

/data/sdext2 is full of linked apps

The output is also attached.

I think probably the sdext2 gets unmounted at some time? Not sure, need to check.
[Android Apps and Games] xdarthanonx:
Try this:

Clear Dalvik cache files

rm /data/dalvik-cache/*grabyspin*
rm /data/sdext2/dalvik-cache/*grabyspin*

Reboot

List rebuilt cache files

ls -l /data/dalvik-cache/ | grep grabyspin
ls -l /data/sdext2/dalvik-cache/ | grep grabyspin
[Android Apps and Games] Entropify:
sdext2 dalvik-cache seems not to contain grabyspin anymore
[Android Apps and Games] xdarthanonx:
Try this:

Clear @sdext2 cache files

rm /data/dalvik-cache/*@sdext2@*grabyspin*
rm /data/sdext2/dalvik-cache/*grabyspin*

Link2SD > hamburger menu ≡ > Link dalvik-cache files

Reboot

List rebuilt cache files

ls -l /data/dalvik-cache/ | grep grabyspin
ls -l /data/sdext2/dalvik-cache/ | grep grabyspin
[Android Apps and Games] Entropify:
Linking from app was successful with a popup box showing 1 dex files linked to sd card.

Results from last step shown in screenshot
[Android Apps and Games] xdarthanonx:
You may have to force link Dalvik cache files every time after linked apps get updates from the Play store. This should be done before rebooting.
[Android Apps and Games] Entropify:
*deleted post*

(unsure how to delete, only edit is shown)
[Android Apps and Games] acolegario2:
This is a great app. a must have in any android device.
[Android Apps and Games] Entropify:
I woke up today, turned on wifi and mobile, started using phone and multiple linked apps (but some linked apps are still working perfectly) stopped working (Sheets, Viber, etc), all with error

01-18 10:46:10.648 E/AndroidRuntime(26375): Caused by: java.lang.RuntimeException: MultiDex installation failed (/data/data/com.viber.voip/code_cache/secondary-dexes/MultiDex.lock: open failed: EROFS (Read-only file system)).

In apps2sd "relink all application files" ends with a pop-up "failure" with no explanation. Didn't manage to notice anything in logcat too.

In apps2sd, trying to unlink the app results in "Failure: rm failed for /data/sdext2/data/com.viber.voip, Read-only file system"

Everything works fine (both the apps, and the "relink" button after reboot)
[Android Apps and Games] boardlord:
Anyone using this on an N1 with CM6.1.1? Does it work out of the box - as in does CM6.1.1 mounts the sd-ext partition on boot? If not, which file in init.d will I have to edit, and with what? Thanks!!
[Android Apps and Games] SHEEPSHESHQO:
thanks a lot ...

its very useful ...
[Android Apps and Games] sw99:
I installed this app yesterday and it really saved me...

My Dalvik-cache was full, and I could no longer update or install apps. Now I am able to move the cache files of my choosing to the SD card and everything is great.

I have one question though, what will happen if I clear my caches in recovery and then reboot - the full Dalvik cache will not have sufficient room to be created the old way? Will the phone boot at all in this case? will it create the rest of the .dex files once their is room?

thanks
[Android Apps and Games] dbzzz:
Problem with storing ext partition using Thunderg custom recovery

Hello,

First of all, thanks for great work! It's reslly easy and fast to use Link2SD.

But I have a question. Today I've installed version 1.5.1. I'm using ext3 partition to store linked apps. My phone is LG P500 Optimus One and I have Thunderg custom recovery v1.1. When I tried to backup with option "Nand + ext + .android_secure", only rom and .adroid_secure areas are stored, and ext.tar has size of 1024 bytes all nulls. What's the problem with this? Is it related to Link2SD app or to custom recovery? Maybe I should use ext2 instead of ext3?

Thanks for your replies, guys!
[Android Apps and Games] BMFDUARTE:
Hi guys

I have a problem, i followed the "tutorial" to create partitions on a 16Gb SD card, one in FAT32 about 14Gb, and another ext2.

I tried ext2 with 8Gb, then, 2Gb, then 1,5Gb, then 1Gb...and the final problem is always the same:

Mount script cannot be created.

mount: Invalid Argument

ext2 may not be supported on your device. Try Fat32 on the second partition.

I tried it on a 2GB SD Card and it works with no problem, ext2 with 1Gb.

I have SE X10 mini pro, 2.1 version.

Can you help me please?

Best regards
[Android Apps and Games] привет:
must have app!

works as is on X10 mini + 500Mb ext2 on microSD card.
[Android Apps and Games] bakpinar:
DEX files that have been removed will be regenerated automatically by the package manager at boot time.
[Android Apps and Games] bakpinar:
Try format your SD card in your phone, this will erase your second partition if any.

Then resize down first partition (without changing its type) and create a second partition with FAT32 or ext2 .
[Android Apps and Games] BMFDUARTE:
If i format the SD card in my phone, it will all 16GB when finish right? So my rookie question is, how i will do the resize down and create a second partition?

Doesn´t have to be ext2 to work with LINK2SD?

Thanks for your help till now

Best regards
[Android Apps and Games] bakpinar:
Yes, it will be all 16GB partition.

There is a "Move/resize" function in the "MiniTool Partition Wizard Home Edition".

Select the partition and click the button Move/Resize in the Tool Bar.
[Android Apps and Games] dbzzz:
Dear bakpinar, please reply to my post.

Thanks!
[Android Apps and Games] soranojiro:
samsung galaxy 5

i have the same problem of SD card cannot be mounted... i had tried to change my second partition to FAT 32, but still getting "the second partition cannot be mounted automatically at boot. You cannot creat link..
[Android Apps and Games] bakpinar:
No, i don't think it's related to fs type.

Link2SD mounts the second partition as "/data/sdext2".

Your custom recovery may backup different mount point for ext. Most probably "/system/sd", apps2sd on ext partition.
[Android Apps and Games] dbzzz:
So, may I change link2sd scripts so that it will use different mount point? If yes, what scripts should I modify?

It's critically for me to have FULL backup of my system, 'cause things change often on my device :)

Thanks for your reply!
[Android Apps and Games] vladixus:
some games and apps won't work?
[Android Apps and Games] dbzzz:
Why? Symlinks are transparent for the system.
[Android Apps and Games] nibras_reeza:
Did you try linking the files in data/data/app_path/lib and data/data/app_path/cache folder? Any idea of adding support for these locations?
[Android Apps and Games] szabof1:
I tried. I made the links and moved the directories to SD ext2 partition but there was permission error. These directories are owned by app_XXX user. Every application has an own app_XXX user and I was not able to chown and chgrp the links from user root to users app_XXX.

Any idea?
[Android Apps and Games] Kierrok:
Try with busybox: busybox chown app_xxx:app_xxx folder or busybox chown 10xxx:10xxx folder
[Android Apps and Games] bakpinar:
No, you can not.
[Android Apps and Games] xdarthanonx:
The previous "grabyspin" example was just a test case. Try this:

Reboot

Clear all @sdext2 cache files

rm /data/dalvik-cache/*@sdext2@*

Link2SD > ≡

Clean up the 2nd partition

Clean up the dalvik-cache

Link dalvik-cache files

Reboot
[Android Apps and Games] Aitso67:
help

can you help me to solve or understand what I've done wrong, thank you for your attention.
[Android Apps and Games] Entropify:
Thank you for help, really glad that you spare the time.

Note, after Linking dalvik-files it says there are no files to be linked.

After the crash it shows /data/sdext2/ to be completely empty (viewed with su access both from terminal and root explorer app), until the next reboot. Sometimes in the morning when it spontaneously reboots, I try to run continuous dump of logcat to see the cause of reboot, but I didn't catch it.

Maybe just switching to Apps2SD would help? Sad that I bought the premium version of this app though.
[Android Apps and Games] xdarthanonx:
Maybe there is a problem with the /data/sdext2 partition:
[Android Apps and Games] Entropify:
HOW DID I MISS IT :eek:

It was in the FAQ! I think that was exactly the symptom of the problem. I definitely need to check the FAQs the next time.

TL;DR:

Formatted as ext2, checked filesystem, will wait several days for results

Long version:

I formatted the 2nd partition as ext2 (previously it was ext4), then ran the ext2 fs check command. Formatted as ext2 because the command is only for ext2 (it gives error for ext4 partition and says it) and couldn't quickly find an equivalent for ext4, but if it works stably now, i'm happy.

Ext4 boots a LOT faster than ext2, just as expected, I even thought that I got a bootloop.

After it booted it gave me a "System UIDs Inconsistent UIDs on the system are inconsistent, you need to wipe your data partition or your device will be unstable" error so I looked at /data/system/uiderrors.txt to find the app that was causing it and deleting the symlink manually, installed the app and didn't link it again.

So far everything works, thank you very much for finding it!

EDIT:

The crashes continued with ext2, so ran the command again - found a ton of errors, such as
[Android Apps and Games] hmmrfll:
hi

i need help

this is my first time using android so forgive for my lack of knowledge and my bad english, hope you guys can understand what im saying.

my phone already rooted and i partitioned my sd card into 1st part(fat32 50gb+-) and 2nd part(ext4 10gb+-)

link2sd doesn't detect my 2nd partition where it didn't ask which file system (2nd partition fat32/ext2/4 etch etch) i want to use when first time using link2sd.

i press recreate mount scripts button and it said Second partition not found.

these is the list that i've done to fix this problems and the problem still not fixed:

-change second partition to ext2,ext4

-reboot from link2sd

-reboot after partition process done

-invert both of partition size (1st part fat32 10gb and 2nd part ext2/4 50gb)

-umount and mount it back

-reformat the sd card

how to solve this problem? please help me :(
[Android Apps and Games] xdarthanonx:
How did you partition your SD card?
[Android Apps and Games] hmmrfll:
im using mini partition wizard and using aparted when the 2nd partition are not detected when using mini partition wizard at first.

both giving me the same problem.
[Android Apps and Games] xdarthanonx:
Did you connect the SD card directly to the PC (not through phone via USB cable)? Did you set the partition type to "Primary" (not "Logical")?
[Android Apps and Games] hmmrfll:
yes directly connect using sd card reader

yes i set both of partition to Primary
[Android Apps and Games] xdarthanonx:
Phone model?
[Android Apps and Games] hmmrfll:
Xiaomi Redmi 5A (Riva)
[Android Apps and Games] masdacheri:
update your recovery..your phone not yet full root
[Android Apps and Games] xdarthanonx:
Link2SD doesn't work on Nougat.
[Android Apps and Games] hmmrfll:
didn't know this app not support Nougat

is there any alternative for link2sd i can use?
[Android Apps and Games] xdarthanonx:
Actually, I don't really like Apps2SD but maybe it's your only option.
[Android Apps and Games] hmmrfll:
thanks for your suggestion :good:

may i ask why did you not like apps2sd?
[Android Apps and Games] xdarthanonx:
I generally don't like all-in-one apps that try to do everything and I found it leaving orphaned files/scripts in the system partition after removal.
[Android Apps and Games] hmmrfll:
since you mentioned that, should i be worried about uninstalling link2sd to install apps2sd?

should i do something before i uninstalling link2sd? or just uninstall it just like that, nothing procedure to follow? :confused:
[Android Apps and Games] xdarthanonx:
This remark was specifically for Apps2SD.

It should be safe to just uninstall Link2SD before installing Apps2SD (maybe with a reboot before installing Apps2SD).
[Android Apps and Games] Antikruk:
Hi, I sent you Belarusian translation on e-mail. You don't answered me. Will you add it?
[Android Apps and Games] binser:
Link2SD has just been updated to 4.1 and now supports Android Oreo.

What's new

- fixed issues on mounting the 2nd partition at boot

** if you have mount issues run "Recreate mount scripts"

- added support for Android O (8.0+)

- added support for linking oat files (on Android 6.0+)

- bug fixes and improvements

Wow - congratulations Bulent!

I already wrote the app off, but you came through!

This is one of my favorite and most useful apps and you have come through again with a shiny new version.

I am sooooo happy!
[Android Apps and Games] Aitso67:
thanks binser, this news is interesting. I had read (I do not remember where) that link2sd did not work well on xiaomi devices, but I read a few posts further back than there are users who use link2sd with xiaomi.

I'm using app2sd now and it works better than how link2sd worked (almost all the apps I had moved with link2sd did not work), I only had problems with twitter that did not work.
[Android Apps and Games] NeroDePero:
I am also having this problem.. :( please help ^^'

When I try to link data from external sdcard (new feature), I get this warning:

Quote:

Your device use "sdcardfs" filesystem for internal SD card.

This does not support dirctory binding so you can not move obb and ext. data.

Link2SD can fix the issue by activating Android's standard "fuse" filesystem.

"/system/bin/sdcard" file will be replaced with standard "sdcard" binary from Android's SDK image.

A backup will be made in "/system/bin/sdcard.original.pre-link2sd".

You can revert the modification anytime from sliding menu.

Would you like to continue?

Reboot required afterwoards.

I would like to continue ... and then I get this error mesasage:

Quote:

/data/data/com.buak.Link2SD/files/sdfix [12]: can't create /system/bin/sdcard: Text file busy

What does this mean?

Which text file is busy?

What can I do?
[Android Apps and Games] bakpinar:
A sign of life from Link2SD :)

UPDATE:

4.2

- fixed issues on moving external data and obb files

- added sdcardfs support for external data and obb

- bug fixes and optimizations

4.1.x

- fixed issues on mounting the 2nd partition at boot

** if you have mount issues run "Recreate mount scripts"

- added support for Android O (8.0+)

- added support for linking oat files (on Android 6.0+)
[Android Apps and Games] bakpinar:
Plase try with latest version 4.2
[Android Apps and Games] doctor-who:
It worked always fine but with my old Samsung galaxy mini it won't verify licence, BTW there is 2.3.7 android version. With marshmallow works fine..
[Android Apps and Games] spoonium:
So I was hit with the missing apps after reboot as well now (Samsung Galaxy A3 2017 with Android 6.0.1 and Link2SDPlus, which worked fine for my older phone).

Before I try to clear and reinstall all the apps, is there any way to manually copy back the apps and data to the internal storage? It's all still there on the sdext2 partition, I'd just need to know where to copy what (I think?).

I made one try to simply copy a whole app folder from /data/sdext2 to /data/app, but that didn't work at all. So I guess it's a bit more complicated than that. Will maybe additionally copying the data/sdext2/data app folders to /data/data do the job?
[Android Apps and Games] MattTheCuber:
Google Text-to-speech Engine's: Data (Ext.) error

When I try to link Google Text-to-speech Engine's: Data (Ext.) I get this error: "can't stat '/data/media/0/Android/data/com.google.android.tts' : No such file or directory
[Android Apps and Games] sandeep101:
How to backup symlinks.. if system is reflashed apps won't load.. Though all files are there.,..
[Android Apps and Games] alanhgg:
Issue with Link2SD Plus Key

Hi, I recently bought the app from Google Play Store but after installing it I get the error: ERROR_MISSING_PERMISSIONS. However Link2SD App works great but I need to unlock Plus features to move obb files.

I don't know what's happening. Can you help me please?

My device:

Sony Ericsson Xperia Mini (St15i)

Stock ROM ICS 4.0.4 (4.1.B.0.431)
[Android Apps and Games] Malfix:
I also have this issue, and I have an even later version than what you specified. In fact, this problem started to occur right after I updated to the latest version.
[Android Apps and Games] Malfix:
Hey, I also have another issue, I got a virus on my device, so I reset my device, excluding my SD card. foolishly I thought that I could still use Link2SD on that same second partition after the reset. Obviously not. Normally I'd just format my SD card once more, but I have a Fallout Shelter saved game that I really don't want to lose. I haven't formatted my SD card yet. So I was wondering, what could I use to find my Fallout shelter saved game? Normally I'd just look for it in my root file explorer, but I'm assuming because the second partition of my SD card (where my Fallout Shelter saved game is saved) isn't mounted to link2SD, I doubt I could find it that way. So is there ANY way I could get my saved game back? Or am I toast?
[Android Apps and Games] Aitso67:
good evening to all, a few days ago I updated my redmi 3 is performed by the procedure dalvik cache. for one day the apps that I had moved to the sd card with app2sd worked, then I restarted the phone and now I can not find any more and I do not remember the operations that I should do to reactivate them.

thank you in advance.
[Android Apps and Games] Aitso67:
I solved, very stupidly I mounted the partition on the sd card but I did not restart the phone.
[Android Apps and Games] Malfix:
I have this issue, and I'm on version 4.3.
[Android Apps and Games] Lokatoor1:
Hello everyone, I started using this all and it's amazing but there is one question that bothers me and is nowhere to be found on internet.

If i take out SD card eill it have any impact on apps, and if so, how can it be fixed. Like if apps dont appear for example.

Thank you!
[Android Apps and Games] xdarthanonx:
Which issue(s)? Please be specific. Device/OS/su?

---------- Post added at 21:58 ---------- Previous post was at 21:50 ----------

DEVICE POWER OFF

Remove SD card

Some operations on SD card

Reinsert SD card

DEVICE POWER ON

Result: No effect
[Android Apps and Games] Malfix:
The issue where when I try to link any obb files to any app, I get this message, "Your device use "sdcardfs" filesystem for internal SD card.

This does not support dirctory binding so you can not move obb and ext. data.

Link2SD can fix the issue by activating Android's standard "fuse" filesystem.

"/system/bin/sdcard" file will be replaced with standard "sdcard" binary from Android's SDK image.

A backup will be made in "/system/bin/sdcard.original.pre-link2sd".

You can revert the modification anytime from sliding menu.

Would you like to continue?"

And then, when I click continue, I get this error message, "/data/data/com.buak.Link2SD/files/sdfix [12]: can't create /system/bin/sdcard: Text file busy"
[Android Apps and Games] xdarthanonx:
What is the output of this command (props to [MENTION=804208]frejos[/MENTION]):

lsof | grep media_rw
[Android Apps and Games] Malfix:
I'm not sure what you're trying to say... Are you stating that if I type in that command somewhere in Link2SD it will fix the issue? Is there a place where I can type commands?
[Android Apps and Games] xdarthanonx:
Terminal Emulator for Android
[Android Apps and Games] Malfix:
So are you meaning to say that I should get terminal emulator and then type that command, and it might fix my link2SD issue?
[Android Apps and Games] xdarthanonx:
No, that command is just a diagnostic.
[Android Apps and Games] Lokatoor1:
Thank you so much! I have been checking the thread for few weeks yet no answer, thank you!
[Android Apps and Games] Malfix:
Oh, I get it, I'll check.
[Android Apps and Games] zapjb:
Can I Freeze the Link2SD app itself? If so how would I unfreeze it?

Thank you.
[Android Apps and Games] Malfix:
This is the output of the command:
[Android Apps and Games] xdarthanonx:
You need to run it as root.
[Android Apps and Games] Malfix:
Ok, how do you do that?
[Android Apps and Games] xdarthanonx:
su
lsof | grep media_rw
[Android Apps and Games] Malfix:
Ok, well, I'm not rooted with su, I'm rooted with KingoRoot, would that be the same command?
[Android Apps and Games] xdarthanonx:
Probably. Try it.