yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] YlwLabMom:
Link2SD Problem/Question

Hi all. I have an Acer Iconia A700 tablet. I've successfully formatted my 32 GB microSD card per the instructions and my tablet mounts it as it should. (I have 2 primary partitions, the first one being a FAT32 2MB partition and a EXT2 partition using the rest of the available space on the card.)

Here's the problem I am running into: When I try to move any of my installed apps (Backgammon, Angry Birds, Zinio, etc.) to the SD card using Link2SD, I get the following error message:

"Failure! pkg:/data/app/uk.co.aifactory.backgammon-1.apk Failure [INSTALL_FAILED_INSUFFICIENT STORAGE]"

"Failure! pkg:/data/app/com.rovia.angrybirdsseasons-1.apk Failure [INSTALL_FAILED_INSUFFICIENT STORAGE]"

I get these types of error messages, regardless of the app I am trying to move. If I use the option to link the apps instead, it seems to work.

Any ideas?
[Android Apps and Games] ruckstande:
Oops, didn't read the whole post. Try using apps2sd. This app is intended more for linking apps. Not sure what the problem would be.
[Android Apps and Games] ispammail:
Phone Crashed while moving all linked apps to sd

Samsung Ace I

While moving all linked apps back to SD my phone crashed and rebooted (I think, because it took so long so I was sleeping. ) next day it displayed the lockscreen (keep on screen when usb powered).

no custom launcher, no apps at all.

I then tried to reinstall the LinktoSD app.

After deinstallation I noticed the PlaySore / Android Store was gone too.

So:

-How to install Link2sd without Store (and hopefully find the store there)

-How to install Google Playstore, I got a APK already, but it fails installing
[Android Apps and Games] garzie2000:
Best option is to reflash your rom, format the sd card altogether, repartition it again and restart the whole process

Sent from my XDA pimped Neo V
[Android Apps and Games] maeman:
I have uninstalled Link2SD but the 2nd partition (ext2) of my sdcard still mounts to /data/sdext2/, which i think indicates that Link2sd created a persistent script that is executed on boot, thus it should be possible to modify such script so that the partition mounts where desired.

The problem is that i am not finding the script. I found a script named 11link2sd located at /data/ and i modified it, but the sdcard mounted the same. This file seems gone after uninstalling Link2SD

I want to mount to /storage/sdcard2/ because it makes more sense and because /data/ permissions are restored to default (which does not allow me to operate as i wish, and make things complicated) while /storage/ has 775
[Android Apps and Games] leapinlar:
Look in /system/etc/install-recovery.sh. It has the mounting script in it.

Sent from my Nook HD+ running CM10 on Hybrid SD
[Android Apps and Games] weiyu:
I have uninstalled Link2SD, but I still see /data/sdext2, even I put # at each line of install-recovery.sh, so how do I do to let it NOT mount my 2nd partition since I am going to reformat my sdcard?

Thanks.
[Android Apps and Games] leapinlar:
The directory may be there, but is there anything in it? In other words, is it mounted? Try deleting that folder.

Sent from my Nook HD+ running CM10 on Hybrid SD
[Android Apps and Games] egingell:
This. If you can delete the folder, then it's not mounted.

You can also use df or mount from the command line to see what's mounted where.

Example output from df:

C:\Program Files\Android\android-sdk>adb shell df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/block/mmcblk0p9 516040 414264 101776 80% /system
/dev/block/mmcblk0p7 302360 5008 297352 2% /cache
/dev/block/mmcblk0p1 20144 4224 15920 21% /efs
/dev/block/mmcblk0p10
2064208 1182844 881364 57% /data
/dev/block/mmcblk0p11
12062752 2640064 9422688 22% /data/sdext2

Example output from mount:

C:\Program Files\Android\android-sdk>adb shell mount
rootfs on / type rootfs (ro,relatime)
/dev/block/mmcblk0p9 on /system type ext4 (ro,noatime,nodiratime,barrier=1,data=ordered)
/dev/block/mmcblk0p7 on /cache type ext4 (rw,nosuid,nodev,noatime,nodiratime,barrier=1,data=ordered)
/dev/block/mmcblk0p1 on /efs type ext4 (rw,nosuid,nodev,noatime,nodiratime,barrier=1,data=ordered)
nil on /sys/kernel/debug type debugfs (rw,relatime)
/dev/block/mmcblk0p10 on /data type ext4 (rw,nosuid,nodev,noatime,nodiratime,barrier=1,journal_checksum,data=ordered,noauto_da_alloc,discard)
/dev/block/mmcblk0p11 on /data/sdext2 type vfat (rw,relatime,gid=2000,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
[Android Apps and Games] weiyu:
Got "can't remove sdext2, resource or device is busy", I also see there is link2sd-debug.log file being created even though I deleted it before restart the phone, what should I do?
[Android Apps and Games] leapinlar:
Are you sure those lines are commented out? Try deleting the file altogether.

Also if you reformat your card, the folder will not mount, so just reformat it.

Sent from my Nook HD+ running CM10 on Hybrid SD
[Android Apps and Games] weiyu:
Did you mean to delete install-recovery.sh? Would it mess up the phone?
[Android Apps and Games] leapinlar:
Yes delete it, but if you are not comfortable deleting it, just rename it with .bak. It is only needed when installing a new recovery and it always makes a new one.

Sent from my Nook HD+ running CM10 on Hybrid SD
[Android Apps and Games] maeman:
Thanks. I modified "install-recovery.sh" but the partition still mounts to /data/sdext2

btw, the file "11link2sd" was located at /system/etc/init.d but this one seems not to matter

if i create /storage/sdcard2 folder it gets deleted after reboot

if i run "mount -t ext2 /dev/block/mmcblk0p2 /storage/sdcard2" i get error: mount: invalid argument

damn, not straightforward
[Android Apps and Games] egingell:
It's actually the opposite. All of the top-level folders are created on boot, but semantics aside, you need to create the folder first before you can mount to it. Calling mkdir /storage/sdcard2 first is all you need.
[Android Apps and Games] weiyu:
This is ODD, even I renamed it to .bak, after I restarted the phone, /data/sdext2 still there!
[Android Apps and Games] egingell:
The folder itself will not go away just because you altered install-recovery.sh and renaming /system/etc/init-d/11link2sd will change nothing. The stuff in the /data directory is preserved between reboots, along with /system and whatever the SD card(s) is/are mounted/symlinked to, and files in the /system/etc/init-d folder will get executed no matter what their names are.
[Android Apps and Games] Cesk87:
I just create a link of all my apps(20 apps),but i still have only 60Mb free on the internal memory..how that can be possible!?and also,when i try to install some other apps like Jurassic Park builder,it pops up the warning that there's not enough space remained for the app,and i can't install it..someone have some advice?
[Android Apps and Games] weiyu:
Are you saying that the only thing that I can do is just deleting 2nd partition and reformatting my SDCard? Also, I don't see /system/etc/init-d folder

I'm using Solid Explorer.

Thanks.
[Android Apps and Games] leapinlar:
That is not the only thing you can do, it is one thing you can do.

And each phone may implement init.d differently (putting it in different places), that is why the author used the install-recovery.sh file. Try reinstalling link2sd then uninstall again.

Sent from my Nook HD+ running CM10 on Hybrid SD
[Android Apps and Games] Cesk87:
i already read it..but i still can't install the Jurassic Park builder,'cause after finished to download it from the market,it tells me that there's not enough space on my desire!but i have just formatted everything and flashed a new custom rom (VJ AOKP latest version)..so the phone is completely empty!but link2sd shows me that i have free only 72Mb on the internal memory,and 74 filled with system apps!so,i don't understand why i still can't succesfully install the game,and why i still have only 72Mb free!:rolleyes::crying:
[Android Apps and Games] weiyu:
Tried installing and uninstalling, didn't help
[Android Apps and Games] Henri BR:
Please...

Any guess how to make it to work with Titanium Data2SD?

I started a thread here:

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

May I pay a beer for the helpfull inputs there?

:laugh:
[Android Apps and Games] fairenough786:
how many partition needs to be on SD card ? how many ext2 ?

Hi all...please help !!

I did exactly step by step. I have a Orange San Francisco II blade ZTE...I am using mini partition wiz tool...I am positive I rooted my phone coz it starts with the fish n chips screen (as supposed to orange logo). I am using a 32 GB sd card and i have given EXT2 storage 5 gb + another 5gb to something (i cant remember)..and the rest 20 gb I left for external data/media storage....but for some reason when i start Link2SD and goto storage Info, it shows :

Internal : total 200mb : used 139 mb

SD Card : total 5.14 GB

SD card 2nd part (sdext2) : 5.68 GB

system : total 200mb : used : 153 mb

so where is the rest of my 20GB storage ? :-0

what does all this mean ? where did i mess up ?? lets say on a 32 gb sd card, should there just be 1 EXT2 (the smaller portion) and 1 primary (the larger portion) ?? coz i remember i divided the sd card into 3 portions...pls advise.

thank you
[Android Apps and Games] egingell:
Your phone will only mounts the first partition, in this case the 5.14 GB, then Link2SD mounts the second partition, in this case the 5.68 GB; therefore, without seeing your partition table, I would suspect that your 20 GB is the third partition. If you want to use the third partition, you have to mount it.
[Android Apps and Games] Wurzelseppal:
Hi @ all,

i recently changed to CM 10.1 on my Google N1, installed link2SD an everythings seemed to run fine.

Ext4 partition is recocgnised, mountet and usable for link2SD.

So i installed some apps and linked them to ext4. Still all good working - until the next reboot.

On startup the system is "optimising" installed apps... since then parts of the apps linked to sd are noch in the phone memory and i got low storage warning.

So after every reboot i have to relink all files with link2SD.

Anyone here with an idea what i have done wrong?

Thanks
[Android Apps and Games] 7OH:
SMALL request.

Some time need to remove ALL links (deleting just script from init.d didn;t help remove bugs - need unlink too).

Can You add option to menu ?
[Android Apps and Games] egingell:
This is already available in the app: "<Menu> => Multi-select => Select all => Actions => Remove link".

And, yeah, for others looking, once the link is made, you can uninstall Link2SD to your heart's content, but the links will all remain and deleting the mount script will just make Android "lose" all those linked apps.

---------- Post added at 11:16 AM ---------- Previous post was at 11:09 AM ----------

Sounds like the mount script is being executed too late (i.e. after boot instead of during). I would elect to not link the DEX files or fix the mount scripts execution time (e.g. move the script to /system/etc/init.d).
[Android Apps and Games] eagle_bird:
I struggled with this problem on my gt-p3110 for a while. The issue was that the 2nd data partition was FAT which link2sd did not like.

I repartitioned the SD card - 1st partition FAT. 2nd Partition ext2 and things started working fine.

---------- Post added at 12:34 PM ---------- Previous post was at 12:24 PM ----------

Here an easy way to create the partitions on the external SD card without installing anything on you PC/Mac. (Easy if you are familiar with Linux style CLIs :) )

This will will create the first partition as FAT and second as ext2. Use this as a reference, if you are not familiar with these commands its best not to use them.

ssh to device (e.g. using "adb shell")

# fdisk /dev/block/mmcblk1

(Delete all partitions. Create one FAT (type b) and one linux (type default) partition. Write partition table)

# newfs_msdos -F 32 /dev/block/mmcblk1p1

(Create FAT filesystem)

# mkfs.ext2 /dev/block/mmcblk1p2

(Create ext2 filesystem)

# e2fsck -fDC0 /dev/block/mmcblk1p2

(Check filesystem for errors)

Reinstall or clear cache for link2sd so that it asks for and creates the correct type for mount script
[Android Apps and Games] bakpinar:
Will be fixed in the next version
[Android Apps and Games] tobbbie:
link2SD move to system flawed (on JB?) - creating duplicates

Hi, recently I upgraded my GT-P3110 (Galaxy Tab 2 7 Wifi) to JB and I decided to clean up the updated System apps by integrating them into /system. I was not really short on memory (so I guess I had not done it on ICS there) - but still wanted to do it just like on my Xperia Ray (where I really need it). I don't use link2SD on my GT-P3110 for its regular purpose as the main memory is big enough for me there - but I am used to the convenient handling to filter and act on packages with link2SD.

Since the integration of Apps to /system I had the strange effect that play-store was re-updating apps which had moved to /system - over and over again after reboot. This was driving me nuts for days (cursing on Samsung, Triangle-Away, SuperSU on/off, reboots, re-installs, hard-reset, recovery and so on...) until now finally I could trace it back to my moving the files to /system with link2SD - which by nature is very persistent...

I noticed that the moved .APK are not overwriting the original .APK in the /system level but keep the name they had in /data, so for example com.google.android.gm.apk, even though the original filenname just was gmail.apk - leaving 2 copies of Gmail in /system.
[Android Apps and Games] vishalkashi777:
Hey any one know why my link2sd is not making ext3 mount script it says It says something argument like thing how to fix this anyone know then plz reply.......and i want to ask is this happening beacause first i make partition of 1GB and then mounted it shows error in ext3 and ext4 so i added ext2 mount script at that time i was on simplicity v5 and i m now on stock is this because in first time if we make a mount script then we cannot change the script to other ??? Im not sure i was jst asking if any one kniw plz explain whole things i have asked....

Dont thank the people who dont thank you
[Android Apps and Games] bakpinar:
UPDATE:

2.4.1

- added warning if the device does not support native app2sd due to emulated external storage (such as Galaxy S3, Note 2 etc.)

- fixed a bug which caused the second partition can not be detected on some devices **

- fixed "mkdir failed , File exists" error for FAT partitions on some devices **

** if you have these problems run "Recreate mount scripts" from the menu after installing the new version and reboot

- added external data and cache size info used by the apps

- added encrypted label for Jell Bean style encrypted apps

- added ability to convert encrypted apps into normal apps (move to phone)

- added ACCESS_SUPERUSER permission declaration (proposed by Koush)

- updated translations
[Android Apps and Games] SohamJ:
I am very thankful to the developer for this awesome app

the only app that has been with me on every rom since I rooted my phone is link2sd only .

I use it in cm7 ,cm9 ,cm10 ,10.1 every where !

I have never faced any bugs or problems

thank you developer for awesome app
[Android Apps and Games] tobbbie:
On my GT-P3110 the warning appears now (need to update the German translate :)),

but earlier I had some apps moved from that "Apps2SD" install place back to the phone.

It seems that some apps just install via the Apps2SD method to sdcard,

even if it is not making no sense on these emulated sdcard devices.

I have set the installation place then to "internal" as default (not Auto as it was).

I cannot access this setting any longer now.

So would link2sd still allow to move any apps from apps2sd place t back to phone?

Is the install place set to "internal" by link2sd?

As I have no updated systems app left on my device (moved them with SystemCleaner),

did you care to fix the bug in link2SD for that on JB?

That was really a tough trace-back to find and I even wanted to go back on ICS...
[Android Apps and Games] daniel_m:
Thanks a lot for another update! :laugh:

Too bad that Android can't be stopped from re-creating libs and cache on boot. But Link2SD finally made a usable phone out of my Sony Xperia Mini Pro (with a 400 MB internal data partition!).

Edit:

Is it possible to run the Link2SD script as a user script instead of from init.d? I update my ROM regularly, and every time I have to re-create the script and reboot ...
[Android Apps and Games] jfythen:
Hi,

I've successfully installed link2sd and create ext4 partition on my sd card. Now, if I go to storage info, I have 5 parts, internal (/data), sd card (/storage/sdcard0), sd card 2nd part.(/data/sdext2), system (/system), and cache (/cache).

I have 2 questions.My internal capacity only has 178 MB while my partitioned sd card (/data/sdext2) has 3.75 GB.

1. Since I have much more space on my partitioned sd card and I still worry about my internal memory will be fully occupied, can I direct any installed apps to use space from partitioned sd card (/data/sdext2) and not from internal?

2. Let's say I have my internal memory fully occupied and my partitioned sd-card still has some space, will I still able to install apps?

Jefry
[Android Apps and Games] egingell:
There's an option in Link2SD settings that will auto-link newly installed apps.
[Android Apps and Games] daniel_m:
As far as I understood, apps will either be installed "completely" to the first partition on the SD card, or they will be installed to the data partition and then moved to the second partition on the SD card. For the second case, you will have to have free space on the data partition temporarily, and you will have to have enough space for libs and cache.
[Android Apps and Games] egingell:
That is a good point.

Sent from my SPH-D710
[Android Apps and Games] nerbiyoso:
new version cannot be a system app?

before the update, i always had the apk file of link2sd in my /system/app. but in the new version, it always FCs when set as a system app. right now i have it in my /data/app and it works fine. so is this normal now and do y'all have the same problem? thanks! :)
[Android Apps and Games] jfythen:
Hi egingell, thanks for your response, but that's not what I mean. I know there is a configuration so we can set auto-link apps. My questions are about space.

Cheers.
[Android Apps and Games] agmonm:
Link2SD stucks/halts when moving app from SD to Internal Memory

Hi

Device - Samsung Galaxy Xcover GT-S5690 ; GB 2.3.6 Stock ROM

Link2SD - using since v2.2 to 2.4.1

Issue - When moving an App from SD to Phone, or from Phone to SD,

"progress bar" is showing forever and Link2SD does not return to UI until killed by task manager.

However, the move is always performed successfully.

Linking to second partition from internal memory works perfect and does not get stuck.

Note - when connecting to the device with adb, the problem does not occur!

even after disconnecting adb, problem will not occur (will return only after reset).

I cannot provide a good logcat log due to this.

Is there any other way to get a meaningful log without connecting adb?

P.S. Tried to turn off background sync, has no affect.

Thanks in advance, and huge thanks for providing an excellent platform that saves my day with this phone model (165 MB of internal...).
[Android Apps and Games] egingell:
The "move to sd" function of this app is nothing more than a front-end for Android's built-in function. Most likely, that is getting hung up and stalling Link2SD.

Sent from my E4GT.
[Android Apps and Games] agmonm:
egingell, thank you for reply.

Android's build-in stock app-manager (Settings->Applications-->Manage applications) works just fine.

I am able to move the apps back-and-forth from SD Card to "Phone" (Internal Memory).

Again, thanks. I will be glad for more help to solve the issue within Link2SD.
[Android Apps and Games] belyava:
First of all I'd like to thank you very much for this app! I've tried all possible app2sd scripts, but I always got back to this app, as it's not making my phone laggy. And I don't really understand why the dev isn't having a full thanksmeter! :p

After updating to latest version via Play Market I've encountered a bug - all linked apps FC. If I install(or restore) those apps again (and Link2SD moves them repeatedly to ext), all gets back to normal. Today I updated my ROM and did have that issue again. To tell the whole story, with previous versions after flashing a new ROM I had only to recreate the script and everything worked fine. This time I had to restore the linked apps again

I've read the last 5 pages and nobody had something like this

Do you have any advice?

TIA!
[Android Apps and Games] bakpinar:
USB Debugging (ADB_ENABLED) should be enabled for moving with native app2sd, otherwise command hangs and does not return on Android 2.x. Therefore Link2SD checks this property before moving the app and prompts a warning message if it is disabled.

I suspect that it cannot find the correct value of this setting in your case.

Can you check this setting manually?
[Android Apps and Games] bakpinar:
Can you send the outputs of the following commands to see the file permissions?

ls -l /data

ls -l /data/sdext2
[Android Apps and Games] agmonm:
Hi

Thank you for this great app, and for addressing issues here so quickly.

At first I was tempted to dismiss your request easily, because I do have USB debugging always ON

(since I am using adb frequently, and I know it is required by Link2SD).

But I did go to the Development settings menu, I UN-CHECKED and then RE-CHECKED the

USB debugging option --> Bang! Link2SD's move to SD works perfect. :good:

Link2SD did not ever issue any warning regarding the USB debugging state in my device.

Now, I can always do that before I use Link2SD, but is there a way to fix this issue on Link2SD's side?

Is there a way to find out why this happens? :confused:

Thanks
[Android Apps and Games] ruckstande:
I believe I am having this very same issue. Every app is force closing. Attempting to restore via Titanium Backup.
[Android Apps and Games] bruce the boss:
I also would like to use Link2SD but it's not working correctly.

I prepared my sd-card and it's looking like underneath:

But when I would like to "reload the script" I got the underneath message:

Loading script can not be prepard.

:cannot create/system/bin/debuggerd:text busy

What am I doing wrong?
[Android Apps and Games] flight243:
Hey Wurzelseppal, did you manage to get Link2SD working on the N1 running CM10.1?

Sorry if my question sounds very obvious but, which script should be moved to /init.d in order to avoid the problem?

Thanks in advance!
[Android Apps and Games] egingell:
Link2SD's script. Where it is on your system, I don't know.

Sent from my E4GT.
[Android Apps and Games] lousou76:
Hi,

Thank you for this great app.

I have a problem though.

I want to stop mounting my ext4 partition on /data/sdext2 and stop link2sd trying to mount it at least temporary.

This seems impossible. Even after uninstalling link2sd the init scripts remain and my partition gets mounted.

I used adb to remove /system/etc/init.d/*link2sd* and /system/etc/install-recovery.sh but still the partition gets mounted.

Where else should I look for mount commands.

You should remove the mount scripts when uninstalling or at least give an option to remove init scripts through the menu.

It would also be nice if there was an option to disable mount sdext on boot and just keep the program for all other options and features without having /data/sdext2 mounted or even without root permission.

It would also be very nice if we could tweak /data/sdext2 path through the options to some other mountpoint like /sd-ext which is very common and used by other apps as well