yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] pckarma112:
Huh. Now im curious. Why did you install it/them then? Most people to save space. But if it wont mount. Then you cant. Right? Do you just leave them on internal then? Or just move only..no link. Did you have to reinstall any? :/
[Android Apps and Games] AlienX94:
I mean i moved only one app at the time that I didnt care too much for (could always reinstall), then looked what happened. Im trying to get this working because i really dont like out of memory communicate :p
[Android Apps and Games] pckarma112:
Glad it was just one. Wish you luck. If you find a answer. That would be great.
[Android Apps and Games] nurandi:
Thank you kiridhruv. I have followed your advice. It worked !. :good:

The only problem is that I cannot resize ext2 partition using Mini Tool ( It just able to copy partition,

without

resizing partition).
[Android Apps and Games] Dovidhalevi:
Guess one would call this a bug:

Some apps will default-install to the asec-sdcard rather than be auto-symlinked.

Older link2sd version, when requested to symlink, would do so without a hitch.

Recent versions will not. Need to move to phone and only then, symlink.

Latest and greatest will also segfault trying to auto-symlink of such an app.
[Android Apps and Games] kiridhruv:
Okay great...

sorry,i dont know the exact way to resize but i have searched and found like copy both partition to PC than...delete the ext2 partiton and resize the main FAT32 partition....OR you can search on your own way ( may be on the mini tool partition website-

Link

)..:laugh:

--- and for other [MENTION=320897]People[/MENTION].... i was having previos error of disappearing apps , but dont know how i dont have single problem now... i am able to maintain much free space with no apk disappearance ))) ... i am on Link2sd version 3.5.2. and dont want to update it.:cyclops:
[Android Apps and Games] Flapf:
Data directories

Hi. Recent versions of Link2SD allow to link internal data directories of selected applications to SD card, but it's a paid feature (PLUS version).

I'd like to do the same using a shell script (no UI, just code) and it would be nice to be compatible with Link2SD.

So, could anyone that owns the PLUS version tell me exactly what does Link2SD link, and where? e.g. a screen capture of a directory listing, /data/data/some.application.com showing symbolic links used and their targets.
[Android Apps and Games] Dovidhalevi:
Tried such a thing a while back, before link2sd plus had it. Moved a large keyboard data over to sdext2. Worked after a fashion ... until I rebooted. A dynamic ID was part of the path and that changed. I have had manually symlinked data consistent with link2sd.

Hoever, Link2sd makes this convenient, consistent, and the plus price is nominal. Has worked without a hitch. So why hack?
[Android Apps and Games] RoboR1:
Hi, I've linked many apps and I noticed that the tablet takes a long time to boot now. Is it normal? Anyway to speed it up? I used ext2 format for the second partition.
[Android Apps and Games] spocko:
Thanks for posting that info. I'm looking forward to the capability of linking external data and obb. For now I guess I'll continue using FolderMount to move those files. Adding that capability will make Link2SD a complete solution.

Thanks again for creating this wonderful utility!
[Android Apps and Games] LockClock:
I use an external module (ext2.ko) which provides support for ext2/ext3 system, because of this, link2sd does not define partitions ext2/ext3 and have to create links to files on the partition fat32, although in fact I can manually create links (from terminal emulator/adb) to ext2/ext3 partition and create links to the cache, lib, and data files, but it is a very long and uncomfortable process, whether it is possible to fix it?

sorry my english
[Android Apps and Games] olikomerc:
Doesn't work on LG L70 D320n

Hi, I have LG L70 D320N locked on T-Mobile Macedonia.

I partitioned 8gb micro-sd card with MiniTool, 6.5gb fat32 and around 1gb ext2 (also tried with ext4) file system, both partitions are primary, but Link2SD says that cannot find ext2 directory. I choose ext2 or ext4 for the first time when started application.

Sorry for my english, do you have any solution or what to try?

Thanks
[Android Apps and Games] cobyman7035:
i have the lePan mini 8 inch, installed link2sd and formatted my 64gb microSD card into TWO partions, both primary

1st is 32gb fat32 and 2nd is ext3 format also 32gb around

i can 'link ONE moveable app, 9Gag...the rest gives me error

when i try to create link:

red triangle ! mark

create-link<app name> can't create /data/sdext2/dalvik-cache/ ....

[MENTION=906471]class[/MENTION].dex: no such file or directory

maybe i need to edit that ext2.ko file?

edit: after hours of tinkering, i got link2sd working on the 8 inch lepan mini but i can't save or link any internal data as FAT32 is not permitted by android or something

i had to format to FAT32 for that 2nd primary partition
[Android Apps and Games] LockClock:
external module (ext2.ko) and link2sd 3.5.2 worked (and create 100% work script), excuse me , i use old version link2sd :(
[Android Apps and Games] hello_world.c:
Which version is that, please?
[Android Apps and Games] mmhshuvo:
brother...in link2sd plus app I cannot creat links because ext2 is not mounted there. but why? I just make partition on my sd card and in my second partition I make ext3 format.. in link2sd plus I select ext3 and reboot my device but after reboot i see there data/ext2 not mounted. what can i do.?
[Android Apps and Games] iPusak Gaoq™:
First you need to make sure that your ext partition is set as primary when you partition it...

Second you need to make sure that your devices kernel can support ext3 that you have make...if it not supported then use ext2...
[Android Apps and Games] hyper21:
Do u have full version of folder mount? or we can't talk this here? :confused:

Limitation for 3 apps :(
[Android Apps and Games] kiridhruv:
i use PRO ))

I can use more than 3 .... PRO Version :D
[Android Apps and Games] jae_63:
my card is already partitioned in a specific manner; can I still use Link2SD?

Hi,

I'm using a CM 10.2 ROM on my rooted Motorola Photon Q.

Recently, I partitioned my 64GB card into an 8GB exFAT partition, with the balance as an ext4 partition. This ext4 partition is mounted as /data/media, and I'm very reluctant to mount it in another fashion due to the manner in which I'm using Amazon Music DRM'ed audio within /data/media. I'm not using FolderMount; rather, I automount this partition using ROM Toolbox Lite, as:

mount -rw -t ext4 /dev/block/mmcblk1p2 /data/media

I'd also like to use Link2SD.

Questions:

Can I use Link2SD while retaining my current partitioning and mounting scheme? If so, how?

What do the links produced by Link2SD look like? Can you provide a fairly complete example for 2 or 3 apps?

At what location does Link2SD routinely mount the ext4 partition? As /data ?

Uh oh, I just got ahead of myself and ran Link2SD and told it that I have an an ext4 partition. It is telling me to Restart my device, and that it's already created the Mount Script. I'm pretty concerned about how things will look after I reboot. Where is Link2SD's Mount script located on my phone? Can I just delete it?
[Android Apps and Games] egingell:
1) It's fine. If a device is mounted to multiple paths, it will remain accessible by all those paths.

2) They're symlinks.

3) This is answer in the OP.

4) /system/etc/install-recovery.sh, /system/etc/init.d/1link2sd (or something similar), and/or /system/bin/debuggerd (DO NOT simply delete this one - you must also put debuggerd.bin back in its place).

My Link2SD cleanup script will automate removing the scripts listed in #4.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Android Apps and Games] jae_63:
Thanks for the super-speedy response. I ran your script a couple of times (once before a reboot, then again after the first of two reboots), but according to the script's log it didn't delete anything.

And, more importantly, the system is still auto-mounting /data/sdext2.

To be more specific: I created a symlink:

1|root@xt897c:/ # ls -ld /data/sdext2

ls -ld /data/sdext2

lrwxrwxrwx root root 2014-11-03 13:44 sdext2 -> /data/media/Link2SD
​

intending that Link2SD would wind up doing its "business" in my directory, which is part of the mounted /data/media filesystem.

But my directory /data/media/Link2SD winds up getting mounted, and so (initially) points to the root of my 2nd SDcard partition. I can manually unmount it using 'umount', but for now I am not yet in a position to actually use Link2SD, until this situation has been resolved.

Here's some more info from my system, related to your script; is it possible that something needs to be done differently for Android 4.3 systems?

root@xt897c:/ # ls -l /system/etc/install-recovery.sh

ls -l /system/etc/install-recovery.sh

/system/etc/install-recovery.sh: No such file or directory

1|root@xt897c:/ # ls -l /system/etc/init.d/*sd*

ls -l /system/etc/init.d/*sd*

/system/etc/init.d/*sd*: No such file or directory

1|root@xt897c:/ # ls -l /system/bin/debugger*

ls -l /system/bin/debugger*

-rwxr-xr-x root shell 21796 2008-08-01 07:00 debuggerd

root@xt897c:/ # ls -l /system/etc/init.d

ls -l /system/etc/init.d

-rwxr-xr-x root shell 352 2008-08-01 07:00 00banner

-rwxr-xr-x root shell 1090 2008-08-01 07:00 50selinuxrelabel

-rwxr-xr-x root shell 416 2008-08-01 07:00 90userinit

root@xt897c:/ # ls -l /system/etc/install*.sh

ls -l /system/etc/install*.sh

/system/etc/install*.sh: No such file or directory

​
[Android Apps and Games] egingell:
That's odd because a symlink is not an actual directory which should cause mount to fail.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Android Apps and Games] jae_63:
almost there?

Yes, it is strange.

I removed that symlink and then rebooted, and not surprisingly it didn't try to mount anything at /data/sdext2 .

Then I re-created the symlink and rebooted again, and it did the mount again. The result was pretty ugly, as you can see below ... there's a recursive relationship involving my Link2SD directory, although it doesn't go as deep as I feared.

I then wondered if it's actually the Link2SD application itself which is mounting this filesystem, so I uninstalled it, and as I hoped/expected this mount didn't occur. Then I reinstalled Link2SD, told it (intentionally erroneously) that my 2nd SD card partition uses ext2, and clicked the checkbox asking it not to ask me again. On a subsequent reboot, it no longer creates that filesystem mount. So far, so good.

But then, when I tried to "link" an application within Link2SD, I get the error "Not Mounted: /data/sdext2 mount not found" despite the fact that there's a /data/sdext2 directory which points to lots of good storage space.

And then, when I looked at "Storage Info", not surprisingly it says that the 2nd part of my SD card is unmounted (although of course it really is mounted as /data/media). Is there any way out of this conundrum? I didn't see anything in Settings which would resolve this.

==========================

2|root@xt897c:/ # ls -l /data/media

ls -l /data/media

drwxrwx--- media_rw media_rw 2014-11-03 14:43 0

drwxrwxrwx root root 2014-10-29 11:44 BACKUPS.NOT.ONLY.FOR.MEDIA

drwxrwxrwx u0_a129 u0_a129 2014-10-27 22:08 GOOGLE.MUSIC

drwxr-xr-x system system 2014-11-03 13:37 Link2SD

drwxrwxrwx root root 2014-11-03 13:40 Link2SD.stuff.DELME

drwxrwxr-x media_rw media_rw 2014-10-22 18:45 legacy

drwx------ root root 2034-08-01 23:41 lost+found

drwxrwx--- media_rw media_rw 2014-10-22 18:44 obb

-rw-rw-rw- root root 4149 2014-10-27 10:50 sdcardPermsFromGoogleMusic.txt

root@xt897c:/ # ls -l /data/media/Link2SD

ls -l /data/media/Link2SD

drwxrwx--- media_rw media_rw 2014-11-03 14:43 0

drwxrwxrwx root root 2014-10-29 11:44 BACKUPS.NOT.ONLY.FOR.MEDIA

drwxrwxrwx u0_a129 u0_a129 2014-10-27 22:08 GOOGLE.MUSIC

drwxr-xr-x system system 2014-11-03 13:37 Link2SD

drwxrwxrwx root root 2014-11-03 13:40 Link2SD.stuff.DELME

drwxrwxr-x media_rw media_rw 2014-10-22 18:45 legacy

drwx------ root root 2034-08-01 23:41 lost+found

drwxrwx--- media_rw media_rw 2014-10-22 18:44 obb

-rw-rw-rw- root root 4149 2014-10-27 10:50 sdcardPermsFromGoogleMusic.txt

root@xt897c:/ # ls -l /data/media/Link2SD/Link2SD

ls -l /data/media/Link2SD/Link2SD

root@xt897c:/ # ls -l /data/media/Link2SD/Link2SD/Link2SD

ls -l /data/media/Link2SD/Link2SD/Link2SD

/data/media/Link2SD/Link2SD/Link2SD: No such file or directory
[Android Apps and Games] egingell:
Use mount -o bind /data/media/Link2SD /data/sdext2 instead (during boot after /data/media is mounted - which means a script in /system/etc/init.d - not with ROM Toolbox). Be sure to delete the symlink and replace it with an actual empty folder.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Android Apps and Games] jae_63:
I wound up just adding your (very helpful!) mount command into my ROM Toolbox script immediately after my /data/media mount, rather than doing stuff with /system/etc/init.d .

It works like a charm .... I was able to "Link to SD" the bulky app "Longman Dictionary of English".

Thank you very much!!

root@xt897c:/data/sdext2 # ls -l /data/media/Link2SD

ls -l /data/media/Link2SD

-rw-r--r-- system system 25603136 2014-11-03 16:05 com.mobifusion.android.ldoce5-1.apk

drwxrwx--x system system 2014-11-03 16:05 dalvik-cache

root@xt897c:/data/sdext2 # ls -l

ls -l

-rw-r--r-- system system 25603136 2014-11-03 16:05 com.mobifusion.android.ldoce5-1.apk

drwxrwx--x system system 2014-11-03 16:05 dalvik-cache

root@xt897c:/data/sdext2 # ls -l dalvik-cache

ls -l dalvik-cache

-rw-rw-r-- system u0_a166 352120 2014-11-03 16:05 data@app@com.mobifusion.android.ldoce5-1.apk@classes.dex
[Android Apps and Games] egingell:
That's fine as long as you don't need it before ROM Toolbox executes it.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Android Apps and Games] garzie2000:
I have been using this awesome app for a while now but for some strange reason it won't mount the partition on Pacman 4.4.2 RC 2 on my Xperia Neo V. Can this be solved?
[Android Apps and Games] geekadoy:
I am planning to upgrade my External SDCard from 16GB to 32GB.

I'm using Link2SD (and FolderMount) currently.

2 Partitioned.

Primary ~ 14GB

Ext4 ~ 2GB

Can someone point me to correct tutorial to transfer files from teh 2 partition without corrupting my file & system?

What is suggested partition when im on 32GB?

thanks in advance.
[Android Apps and Games] ishan81:
Hi Guys

I have read nearly everything I can to help me fix my issue with link2sd . I was wondering if anyone can help .

I have a PIPO p9 with stock ROM 4.4.2

I have the pro version of Link2SD but I keep getting the "Mount: Invalid Argument" error. I have done the following and read all possible fixes but now stuck on what to do next.

Used windows 7 machine with Minitool and EasyUS to format Samsung duo 64 card into

Rooted ROM with Root Genius and checked root as as well app has app granted access.

Partition 1 : 55GB: Fat32 - Primary

Partition 2 : 11GB: ext2 /ext3/ Ext4 ( which Im pretty sure it is using as I did a mount check in terminal emulator ) and FAT32 - Primary ( I have tried all combinations )

Tried using Aparted app to format also and still unable to mount the second partition .

Uninstalled the APP / restarted / re-installed. But I keep getting same error.

Is there any further debuging I can try ? anything else I can do to for force mount ? In the app under storage the partition is coming up as unmounted.

Any help would be great . Thanks in advance.
[Android Apps and Games] egingell:
That error generally means you're trying to use (picking) the wrong filesystem.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Android Apps and Games] ishan81:
but I used fat32 as the second partition and that won't mount either .
[Android Apps and Games] IaKnightHawke:
Be sure the cluster size of your fat32 partitions is 32kb. Give that a try and post back. Gary
[Android Apps and Games] ishan81:
Knight Hawke I just tried formating second partition to FAT 32 primary using cluster size of 32KB and still not mounting after restart . Funny thing is I used the same process I quoted above for a friends Samsung galaxy S2 and link2SD worked straight away. Is there any LOGGING I can do .

---------- Post added at 04:02 PM ---------- Previous post was at 03:29 PM ----------

Could it do with my kernal . I can take screenshots
[Android Apps and Games] DooSHeK:
I would like to say that this is the best app I'v ever used. But there is one big problem that makes that I can't to use it fully. I will try to describe the problem:

My phone: Xperia L

Rom: Stock 15.3.A.1.17

To use LINK2SD we have to create two PRIMARY partitions.

First for data as a mass storage (fat32) and second for LINK2SD (ext1-4).

And now in this scenario on stock rom in XPERIA L the first primary partition is not recognized as device and you always have error: "SD Card being empty of the filesystem damaged."

After some googling I found that this is something to do with kernel (I read that there is same problem on some LG phones).

If there are two primary partitions kernel can't recognize and mount properly FIRST partition as device (EXT_SD).

To properly mount partition as device it have to be a LAST partition on SD CARD.

To workaround this you have to create THREE PRIMARY partitions. First as FAT16 small as possible, second for LINK2SD (to complete the requirements of the LINK2SD) and third (FAT32) as mass storage.

If we do that the third partition is mounted properly in phone and everything is working.

BUT problem arises in Windows.

If we connect the phone as mass storage (or use card reader with our SD CARD) Windows sees only our first partition (FAT16) because Windows can only recognize FIRST primary partition on removable devices. and that means that we don't have access to our data on SD CARD in Windows.

In summary:

1. First primary partition for mass storage - not visible in phone, visible in Windows

2. Last primary partition for mass storage - visible in phone, not visible in Windows

There is workaround for this. The first partition have to be formatted as NTFS. It will be visible in windows (because it will be a first primary partition on removable device) but not in phone. To make it visible in phone you have to use Paragon exFAT, NTFS & HFS+ to mount this partition and get access to it.

But it have some disadvantages:

1. You are not able to use your phone as removable device in other devices like TV or DVD because most of them read removable devices only if they are formated in FAT32.

2. You have to use another app (Paragon exFAT, NTFS & HFS+) and depend on it to be able to use your SD Card with your phone.

3. Your SD Card is not being recognized as device in android so some apps do not work fully with it and have problems to work with it eg. ES File manager.

So there is a problem that makes this app not usable on some roms if we are using primary partitions in this configuration and not usable on Windows if using in another configuration.

I don't know how android and windows handle logical partitions and in what configuration but I think that something has to be done with partitions and their requirements.

Any chance to look in to this problem and find a solution?
[Android Apps and Games] egingell:
If you use a card reader, Windows should* see all NTFS and FAT partitions without issue, but you may need to go to Disk Management (Windows Control Panel) and give them a letter. It definitely won't do anything with EXT partitions.

My memory ain't what it used to be, but I do recall transferring files between the two partitions using Windows.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Android Apps and Games] Dovidhalevi:
Link2sd operates on dalvik cache. What will be with art?
[Android Apps and Games] DooSHeK:
Windows does not see all partitions if they are all PRIMARY and are on REMOVABLE DEVICE (eg. pendrive) because, as I wrote earlier Windows does not support multiple PRIMARY partitions on USB flash drives.
[Android Apps and Games] lanc3lot:
Hello, great app, i have bought also the plus version. A question: If i put lets say 5GB on EXT2 memory, is it ok? So i will have a lot of space for linking. I have a 64GB card, so space is not a problem. Ty in advance
[Android Apps and Games] IaKnightHawke:
I need some advice about an error I am getting while attempting to set up a 2nd partition on a Samsung 64gb hdmc SD card. My 1st partition is fat32 and while setting up my 2nd as ext2 I get this. Screen shot provided. Is this a fixable by editing a file issue. Or should I stop banging my head and be satisfied with a 32gb card? Thanks in Advance for your help. Gary
[Android Apps and Games] centodue:
Hello to all.

I have a LEAGOO Lead 1 with root.

I like to use Link2SD with all my phones to have apps in ext partition on SD.

So I created ext4 partition, I rebooted, I chose "internal" , but after I linked apps and restarted mobile the apps disappeared :(

Using google I read that Link2SD has permission problems with android 4.4.2.

Leagoo Lead 1 has menu option to save in SD card files and to move many apps on SD too, but if I would create app links with Link2SD the operation goes well (because apps are correctly present on ext4 partition...it is not empty) but in App Management menu they appear as no logo app and with no definite name (ex: com.xxx.apk).

exist or is it found a solution?
[Android Apps and Games] Synozix:
I would also like to know the maximum size I can make my EXT4 partition please. I play a lot of games so 2GB which I followed guides for and set it as this eats it quickly on my Moto E. Is there a maximum size and if above 2GB does it cause any issues? (I read going above 4GB can cause issues but no explanation to that was issued).
[Android Apps and Games] zzztidurvirus:
im running 4gb of ext3 and found no problems... and its still not enough! main culprit: facebook, fb messenger, whatsapp... pretty much anything social related... why? those small user pics consume memory... i had constantly delete group threads (can be 1+++ the moment o unfreeze whatsapp!)... using link2sd plus... all link options ticked...
[Android Apps and Games] Synozix:
Thanks for the reply - is there much difference between the ext3 and ext4 as I did read 16GB is the maximum for ext3? And I thought that ext4 was 2gb which all guides for link2sd (I have the pro version to) says do not go over 2GB.
[Android Apps and Games] cablop:
I have no option to encrypt external SD card

I'm afraid that Link2SD disable that option on Kitkat. Am i wrong?

If that's the case, is there a way to fix it or to support encrypted SD cards?

Is it related to the filesystems? I'm really needing space, but of course strongly unwilling to move the app data to the external SD. My phone is encrypted, but the SD not... what can i do to keep some apps data on the external SD while keeping it safe in case of steal or loss?
[Android Apps and Games] Synozix:
If you have the pro version it will put the app private data on an EXT partition (if ticked in options) rather than the fat32 part of the SD card (its like mirroring your internal by expanding it I believe).
[Android Apps and Games] cablop:
Yes, i have the pro version, but i think the ext partition residing in the external SD is not encrypted and anyone could steal my phone or just my sd card and plug it on any linux device to steal my private data... i dunno how to encrypt that partition... or how to protect that data on the external SD while keep being usable by the main system