yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] egingell:
That option, which is a system setting that doesn't have anything to do with Link2SD, only works for apps that don't explicitly state where they should be installed.

Also, older ROMs don't have the means so that setting has no effect on them.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Android Apps and Games] X-Flies:
Reading the FAQ I assumed that it could override the install location defined by the app.

So, in this case is better to let them stay in the SDCard instead of move it to internal and then link, right?

Because the updates instal it again in the SDCard and link2sd reports dual-status.
[Android Apps and Games] egingell:
It doesn't change anything in any apps or the Installer, it only changes a system setting.

As for the dual-status, either Link2SD checks for APK files and makes assumptions or it keeps a map of apps it linked and makes assumptions... or both... or it actually is both (i.e. the APK file is linked to where apps installed to the SD card go (/mnt/asec/[app]/pkg.apk -> /data/sdext2/[app].apk)).

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Android Apps and Games] jam66:
I'm trying to use Link2SD in my phone (LG L50).

the application creates the script to mount the partition of the

microsd, but when restart the phone, the partition is not mounted.

I can see that link2sd creates mount script on

/data/data/com.buak.Link2SD/files/

https://drive.google.com/file/d/0B4RlDirVodiXVW5RV0ktTWtGRlk/view?usp=sharing

i not know how it app works, but I understand that this should be in

/system/etc/init.d/

I've noticed that my rom (Android Kitkat 4.4.2 with kernel 3.4.67.

Stock rom) does not support init.d

this because there is no init.d folder in /system/etc/

some research, I found that I can add support for init.d using the app

"init.d Toggler", but this application requires busybox. my phone does

not have busybox.

My question now is, Link2SD requires support init.d?

i need install busybox for using link2sd ????

regards!

thanks in advance
[Android Apps and Games] egingell:
The possible places for the script:

/system/etc/init.d/1link2SD (or similarly named file)

/system/bin/debuggerd

/system/etc/install-recovery.sh

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

Thanks for sharing sir, its so helpfull for us.. .
[Android Apps and Games] jam66:
My question is, Link2SD requires support init.d?

i need install busybox for using link2sd ????

I'm not asking about the location of these files.
[Android Apps and Games] egingell:
No and (probably) no. My SGS2 is stock TouchWiz (kernel and ROM) - no init.d - Link2SD works fine.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Android Apps and Games] ibub:
More about initd and busybox (and link2sd) here:

http://xdaforums.com/showthread.php?t=1933849

Read first post.
[Android Apps and Games] jam66:
which partition you use?

I tried it with Ext3 and Ext4 and the app does not mount the partition. (mount script is created successfully).

I tried it with Ext2 and link2sd shows me an error saying it can not create the mount script.

thanks for the replies
[Android Apps and Games] egingell:
FAT32.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Android Apps and Games] nibb-1:
Hello and sorry to interrupt again, just wanna to tell that my issue with link libs files are fixed, seems like after updating to KK 4.4.2 link libs files to an fat32 partition dont work, but tried to use ext4 instead and that works :D

but i still have mount warning and need to do an quick reboot, but i guess that never is going to be fixed :(

anyways Many Thanks for this awesome app :good:
[Android Apps and Games] jam66:
Well, last night I found the way to make it work on my phone.

apparently it is very important the order of the partitions in the partition table.

in first place the fat32 partition, then the Ext2/3/4 partition.

I made the partition using another phone which has a functional recovery partition
[Android Apps and Games] shm2018:
Link2sd problem!!

Hi.

I have Link2sd on my phone and it worked good till recently, but now whenever I try to link any app to sd, it says "failure: Cannot create /data/sdext2/data/............. Directory Nonexistent" and I can't link any app. I tried already to remount scripts, but nothing changed.

Does anyone know what is the issue, and how to fix it please??

Thanks in advance.
[Android Apps and Games] Crashdump:
Strange bug when doing freeze/unfreeze

There is a strange behavior in the latest version of Link2SD plus .

When I try to freeze or unfreeze an app I got a popup with an error message without any content (see screenshot). The app is freezing/unfreezing successfully, but the displayed application list is not updated. I have to exit and restart Link2SD to see the result of freezing. That is somewhat annoying.

Titanium Backup has no problems to freeze/unfreeze an app, so I suppose it is a bug in Link2SD. I'm using Link2SD since years and never had such an error message...

Smartphone: Rooted Huawei Ascend Y550 with stock ROM without any modfications or frameworks. 800 MB free internal memory, 4,5 GB free SD-Card memory, 300 MB free sdext2 memory (2nd partition with ext4 file system).
[Android Apps and Games] btb55:
I've installed Link2sd, created the new data ext2 partition, moved apps, and its working as it should.

I've now made a nandroid with TWRP 2.8.4.0, and expected to see an 'sd-ext.ext2.tar' file as it backed up the sd-ext2 partition from my sd card, but it hasn't.

When I'm recovery TWRP doesn't see or list the ext2 partition, I just have the same options I had prior to adding the ext2 partition. Is there an obvious reason I'm missing why TWRP isn't seeing it or backing it up?
[Android Apps and Games] egingell:
It's not looking for it and it won't any time soon.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Android Apps and Games] btb55:
When I searched I found this post regarding nandroid and the ext2 partition

How to get it backed up in nandroid? Is it that TWRP won't back it, and is another recovery recommended when using Link2sd?
[Android Apps and Games] egingell:
/sd-ext is not the same as the second partition that Link2SD uses. You're not going to find anything that will do a nadroid-esque recovery backup of that.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Android Apps and Games] spocko:
Hi there bakpinar. I just wanted to ask if you still have any plans to add linking of "external data and obb files"? That would be wonderful addition to the program, and if you made it a "Plus" feature then I think it would motivate a lot of purchases.

Thanks for all your work on Link2SD, it really is great!
[Android Apps and Games] bakpinar:
Yes, I added ability to move obb and external data directories of the apps and games. (Plus feature)

The new version will be a major update feature wise and it will pack a number of visual tweaks too.

Assuming there are no surprises, I will publish it next week
[Android Apps and Games] spocko:
Awesome, thanks! This is very exciting news.
[Android Apps and Games] vasilis_:
everything seemed to be so perfect with LINK2SD but today when i tried to create a link to SD card i keep getting this message that there is no in space left in SD

[ failure NO SPACE LFT ON DEVICE]

I deleted some apps and it keep saying the same thing,NO SPACE LEFT...

I pressed the storage info and i saw that SD Card 2nd Part is full,,,

How does this happening even if i delete stuff from there,ANY HELP?
[Android Apps and Games] Dovidhalevi:
Best is to get a bigger card.

In the meantime, find apps that have large apks and small dexes. Example is Google+.

1. Unlink

2. Move to sdcard (the old way).

3. One can relink data in link2sd plus if desired.
[Android Apps and Games] henryrk:
Hi bakpinar

I bought your pro version of your apps.

Prev i was in CM roms it was working now im back to stock ROM rooted.

I used the same MicroSD card to get the link2sd run in my stock rom, However i notice the Storage Info shows "SD Card 2nd Part- Not Mounted"

PLEASE advice
[Android Apps and Games] Hung Ming Hsieh:
Dear Bakpinar:

The new version1.5 seem to have a big bug of installing and uninstalling market app. Everytime I uninstall market app no matter from internal or ext2, it always show the wrong message(I don't know what it meaned). Sometimes my moto

xt701 can't remove the app from ext2 in your Link2sd.

Sincerely hope you can fix the problem soon! Thanks!
[Android Apps and Games] xperseus:
Doesn't work for me. I'm on SwiftDroid 2.3.2 v1.4b. Currently the it doesn't support ext2 partition, so I divide my SD into two primary partition, both are FAT32. The problem is that when I insert SD into my phone, it always mount the second partition, not the first one. What should I do?
[Android Apps and Games] bakpinar:
UPDATE:

Fixed in 1.5.1

Thanks
[Android Apps and Games] pingwin321:
Dear Bakpinar,

Although Link2SD is a great idea, it still doesn't work on Samsung Spica i5700 with modified firmware (Samdroid 1.3.1). I just tested it with Link2SD 1.5.1. I think that firmware may have some tricks that are unusual and therefore it is difficult to make Link2SD work in this configuration.

Here is what I noticed:

- you cannot place files in /system/etc even when you are in root mode, because the filesystem is mounted Read Only by default. If you want to place a script in any of the system folders, you will need to call "remount rw" command first. At the end of script creation you need to restore the previous state ("remount ro").

- any changes (new scripts, script modification) placed in etc/init.d are not executed at the phone boot time. Scripts placed in /system/etc/init.d are NOT run when the phone boots up.

- there is no way to make modifications in the /init.rc file, because init.rc is originally located in initramfs and copied to root folder during the boot process. That's why any modification of init.rc will disappear at the phone restart.

- you cannot mount the partition if you don't tell the partition filesystem (eg. "mount [source] [target]" will not work, you have to use "mount -t [filesystem] [source] [target]).

I didn't find the way to add second SD partition mount at the phone restart. It is not the filesystem problem (FAT32 and ext2 are both not mounting if you don't use "-t" option, however both filesystem partitions can be mounted manually if you use "-t" option).

I think the above problems can be bypassed by Link2SD. Maybe if you add some additional steps to the "Refresh" function. For example:

- check application (*.apk file) permissions BEFORE you move them to the SD card and save it to the additional Link2SD configuration file;

- So far Link2SD is the only application that create links in /data/app folder, right? Let "Refresh" to look for links in /data/app and compare if they are saved in the configuration file. If yes, it is most probably the link created with link2SD. Restore application permissions to the link and the file that is linked.

This will not help to show the application icons in Android 2.1, but at least you will be able to run Link2SD, search for moved applications (not visible otherwise) and run them directly from Link2SD. Not bad for non-critical applications, eg. games.
[Android Apps and Games] bakpinar:
Hi,

Can you send your init.rc file?
[Android Apps and Games] Hung Ming Hsieh:
Thanks for your new version1.5.1. I will install and check it. Link2sd is a good

app to extend my app install.
[Android Apps and Games] pingwin321:
Here is init.rc file from my Samsung Spica.
[Android Apps and Games] bakpinar:
I'll add this in version. Thanks.
[Android Apps and Games] ChungHung.Chen:
Dear Bakpinar,

My friend which using nuvifone A50 can't use Link2SD in FAT32 mode.

Link2SD just says "please uninstall app2sd" message even if he did fully re-flash system.

A50 has an internal eMMC storage and used for /data, is that why Link2SD detect app2sd??

Is any way to use Link2SD in A50? ( FAT32 mode, A50 can't use ext2 )

Below is "df -h" output and attach is init scripts from my friends.
[Android Apps and Games] bakpinar:
A second partition is needed for two reasons.

One, SD card mount time is too late for the Package Manager while booting up. In other words, when the Package Manager started to scan application directories it can not find the apk files stored on the SD card's first partition. Therefore applications will be disappeared in app drawer. Link2SD and app2sd scripts use init scripts which are executed earlier in boot sequence (install-recovery.sh, /etc/init.d scripts).

Two, when you connect your phone to a PC as mass storage applications stored on the SD card become unavaliable because Android unmounts SD card first partititon. But second partition remains mounted.
[Android Apps and Games] bakpinar:
Can you send "ls -l /data" output?
[Android Apps and Games] alex_coco:
With this latest update, and work properly in my huawei u8110

Good Job and Very Thanks!!!
[Android Apps and Games] dueltothedeath:
I have partitioned my sd card but link2sd still says 2nd partition not found...what do i do?

also ive rebooted my phone several times and still no luck... ive followed all your instructions

word for word
[Android Apps and Games] Mioze7Ae:
Ah. That makes sense. Thanks for the explaination!
[Android Apps and Games] Btamas:
Dear bakpinar!

Latest Link2SD works fine my Samsung Galaxy 3 2.1 Eclair. I'm using FAT32 on the second partition.

Great app! Thanks.
[Android Apps and Games] goodoane:
Your masterpice is getting better and better.

Can you please ad moving data/data option to because there are a few application that work with data on external card to so it will be nice to be able to move them to.

Thank you.

Keep the good work. ;):p
[Android Apps and Games] pingwin321:
Hi Bakpinar,

I think I made a mistake: the init scripts in /system/etc/init.d ARE run at the phone reboot. I'm just testing the solution to the problem with Link2SD on Samsung Spica. I will publish the results tomorrow.

EDIT:

Yes, the new approach is succesful. :-) I've got Link2SD working on Samsung Spica with Samdroid 1.3.1 firmware. :-D I will publish the script to be placed in /system/etc/init.d in the morning (due to time zones it's after midnight right now at my location, time to go to sleep ;-) ).
[Android Apps and Games] UnderXP:
Your Link2SD app is running ok in Motorola Milestone A853 with rom APAC 2.2.1 and 2 fat32 partitions in sdcard. Thanks!!!!!!!
[Android Apps and Games] purushotham.34@gmail.com:
Hi,

I was also getting the same error. But you know the error is caused because it doesn't have enough privileges to access that partition.

You should give root permissions to App2SD or Link2SD.

I am using Link2SD on Xperia x10 mini pro.

Thanks
[Android Apps and Games] pingwin321:
[SOLUTION] Link2SD on SAmpsung Spica with Samdroid 1.3.1 firmware (Android 2.1)

Phone: Samsung Spica i-5700

Firmware: Samdroid 1.3.1 (by Leshak)

Android version: 2.1

Link2SD version: 1.5.1

OK, here is the solution. :)

Samdroid is equipped with tool called "SamdroidTools". This tool include a port of App2SD application. The configuration files for App2SD are placed in /system/etc/init.d

I found out that script used by App2SD can be modified for Link2SD purposes. There is one glitch, but I'm sure Bakpinar will solve this issue. ;)

First, you need to DISABLE the App2SD option in SamdroidTools. Both tools (App2SD and Link2SD) cannot be run together. You have to choose which one is better for you.

Prepare your SD card. It should contain 2 partitions: the first one in FAT32 format and the second one in Ext2 format. Link2SD will use the second partition.

Copy the following script "06link2sd" to the /system/etc/init.d folder. You will need root priviledges to do that. Set up file permissions to "rwxr-x---" (chmod 750 06link2sd").

Reboot your phone. Now run Link2SD. It should work now. :)

And now some issues:

- Please note that some lines in the script are turned off. I figured out that the during the phone restart the second partition can be mount as "/dev/block/mmcblk0p2", but cannot be mounted properly as "/dev/block//vold/179:2". Don't know why, but it works this way.

- Due to the above problem, Link2SD doesn't show the SD card properties properly. Link2SD will link all applications without problems, but when you choose "Storage info" option, the card will be displayed as "SD Card 2nd Part. Not Mounted". Didn't checked if other options are affected. I think Link2SD check the wrong device (looks for physical device at /dev/block//vold/179:2, not for logical device mounted to /data/sdext2).

And finally - the code and the attachement:

#!/system/bin/sh
#

if [ -e /dev/block/mmcblk0p2 ];
# if [ -e /dev/block//vold/179:2 ];
then
echo "--- Checking filesystems";

# fsck the sdcard filesystem first
e2fsck -y /dev/block/mmcblk0p2;
# e2fsck -y /dev/block//vold/179:2;

# set property with exit code in case an error occurs
setprop lk.e2fsck.errors $?;

# mount and set perms
busybox mount -o noatime,nodiratime -t auto /dev/block/mmcblk0p2 /data/sdext2;
# busybox mount -o noatime,nodiratime -t auto /dev/block//vold/179:2 /data/sdext2;
if [ "$?" = 0 ];
then
# busybox chown 1000:1000 /data/sdext2;
busybox chmod 771 /data/sdext2;

# setprop lk.a2sd.active 1;

echo "+++ Link2SD successfully enabled";
else
echo "*** Unable to mount filesystem for Link2SD!";
fi
fi
[Android Apps and Games] Crashdump:
Is your 2nd partition formatted with ext2fs?

ext2fs is not supported any more by new Android versions. You have to mount with ext4fs instead. Create a new mount script...

---------- Post added at 02:49 PM ---------- Previous post was at 02:43 PM ----------

There seems to be a problem with Link2SD and SELinux in enforcing mode. Switching SELinux to permissive mode works fine. Switching back to enforcing mode brings back the misbehavior...
[Android Apps and Games] bod9n1:
interesting

Hmm , thank you , it's interesting
[Android Apps and Games] nhanVn:
data/sdext2 dont working

hello,

my device is Blackview V3.

I had used link2sd, then i format device and extend card. Now, link2sd created a sdext2 folder in data when i had mount second partition.

my problem:

1. I try create link a app, then i restart, and that app didn't working. I run link2sd and view all app which had created link, but hadn't anything.

2. I try copy something to data/sdext2, device's available internal storage increase when second partition which in my SD card availible unchanged.

i don't know this error. is it a error?

my english so bad.

thank you for watch
[Android Apps and Games] henryrk:
Yes sir, its ext4 .

thanks !
[Android Apps and Games] bakpinar:
UPDATE:

The long awaited feature to link external data and obb folders of apps and games is now available in version Link2SD 4.0

v4.0:

- (Plus) added ability to link external data and obb folders to the SD card

** Second partition on SD card is optional, folders can be moved to the 1st or the 2nd partition of your SD card.

- app info screen has been redesigned to become cleaner and more straightforward

- fixed the bug that causes linked apps disappear after reboot on some devices

** if you have this issue run "Recreate mount scripts" and reboot

- updates for Android 5.0 Lollipop

- bug fixes and improvements
[Android Apps and Games] nilanko:
I'm using the latest version on lollipop 5.0.2 on moto E. Mount scripts dont run automatically on boot. After a restart, I have to quick reboot from the error window shown by link2sd. So this means, I will have to restart two times every time I want to reboot my phone which is quite cumbersome because I have more than 250 apps and it takes a huge amount of time to boot up. Is there any workaround further regarding the one you fixed in version 4.0?

I love your app. It's a life saver, without it, I can't "imagine" my phone lol :P

I will buy it as soon as this bug is fixed, it's cheap anyways and thanks for that as well :)
[Android Apps and Games] adrins:
Problem with boot

Hi

I installed link2sd 4 on my Samsung Note pro tablet (sm-p901) , first I linked some of my apps to SD card for testing and it worked well and then I selected about 200 none system apps and linked them to SD

every thing was fine until I restart, the tablet hangs on the Samsung logo at start-up and when I take out the SD card the boot process continues normally and tablet starts working but there is no signs of my linked apps

In Application Manager those linked apps appear by gray Icons

How can I boot my tablet with SD card and my linked apps?Or Bring Back my lost apps?

(I linked all apps with four check-box checked)
[Android Apps and Games] jazzh:
Share apk is awesome feature!

Btw, where is option clear all app cache?
[Android Apps and Games] BigBoppa:
I received the 4.0 (plus) update today. My sd card is 1st partition ntfs primary, 2nd partition ext4 primary. If i try to create link for data folder, Link2SD says, there is no SD inserted, so it won´t let me create link for obb or data folder. If i try link to sd card it says error because primary external storage is emulated by internal storage. Only thing working is Create link (for .apk,.dex,.ib.*,int. data).(Tablet running KK 4.4.4) What am i doing wrong?
[Android Apps and Games] bakpinar:
Can you write the output of these commands

mount

cat /proc/partitions
[Android Apps and Games] Verrocio:
Anyone else getting mount script cannot be created error from version 4?

I wanted to buy this app and support the developer but now im not sure :(
[Android Apps and Games] bakpinar:
Yes, it helped, will be fixed in 4.0.1.
[Android Apps and Games] Technical:
I've read that on the latest version (4.0) you do not need the 2nd partition anymore.

I'm on S4 (I9505) and wondering if I can just format my sdcard and join the partitions again and, at the same time, keep Link2SD working.
[Android Apps and Games] Oz4225:
I have galaxy s5 4.4.2 with last version

But its keep asking me for choose second partition them i get mount script error...

also i cant creat second partition on my sdcard. I try to creat any file system but its cant be formatet....

Someone know what to do please?

Thanks!!
[Android Apps and Games] ChungHung.Chen:
Hi, I've upgraded to 4.0.1 last night. But I found something strange. I have a Moto XT910 with a internal 8GB(sdcard0) and external 32GB(sdcard1), no 2nd partition. I've got "2nd partition is not existed or mount after boot, try re-create mount script" error at EVERY boot. I don't use 2nd partition and not create mount script at all, just use Link2SD for app management. Could you confirm if the warnning is normal or need to be fixed? Thanks!

EDIT: Add output from "mount" command.
[Android Apps and Games] bakpinar:
Hi, can you try to "clean data" of Link2SD and then reboot.
[Android Apps and Games] ChungHung.Chen:
It works. Thanks for the tip. I never use 2nd partition / mount script in my XT910. How could this happens after upgrade from old 3.x to 4.0/4.0.1? BTW the problem was solved. Thanks for your great work!
[Android Apps and Games] bakpinar:
In the rare case this happens in the latest version. I'll fix it in next release, thanks for reporting.
[Android Apps and Games] bakpinar:
For linking internal files of apps, i.e. apk, dex, lib and internal data, you need a second partition, it is mandatory.

For linking external folders of apps (new feature), i.e. obb and external data, the second partition is optional, you can link these folders to the 1st or the 2nd partition.
[Android Apps and Games] Oz4225:
I have problem, that most folder from data/data come my sdcard but they empty? I just have there many empty folders

If i delete them they come back...

How i can delete the script that did that?
[Android Apps and Games] egingell:
Those folders are created by the system. What exactly are you trying to do by deleting those? You need those - that's where apps put their saved variables.

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

Edit:

Try to moving data?getting error:
[Android Apps and Games] bakpinar:
Reinstall Link2SD from Play Store.
[Android Apps and Games] Oz4225:
I did.

Same problem again
[Android Apps and Games] bakpinar:
And same for Link2SD Plus. This error can be seen when a modified apk used.