yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] flight243:
Mistery solved. It was automatically installed in /etc/init.d but as many other users pointed out, Lin2SD doesn't work with CM10.1 based ROMs for HTC Desire or Nexus One. After every reboot everything is a mess, apps are missing, some apps linked FC when using them, newly installed apps are not automatically linked to the SD despite having that option checked, unlinking applications do not restore them...

Worst of all is that it cannot be uninstalled, leaving logs and scripts running in the device as well as the sdext2 folder linked and mounted at every reboot despire having the script created in /etc/init.d removed.

Thanks to the author for the brilliant idea, but it's a pity that it doesn't work on CM10.1 :(
[Android Apps and Games] lousou76:
I found 3 scripts that you have to do to remove it.

1 remove /system/etc/init.d/*link2sd*

2 remove /system/etc/install-recovery.sh and if exists rename install-recovery.sh.ori in its place.

3 remove /system/xbin/debuggerd and rename debuggerd.bin in its place.

After that you can also remove link2sd log files from /data and delete directory /data/sdext2.
[Android Apps and Games] tobbbie:
Thanks for pointing out the places where link2sd hooks in :)

When testing CM10 on my Xperia Ray (FXP149 I think it was) some time back, I noticed that the dalvik cache was not located in \data\dalvik-cache but instead in \cache\<not sure here>.

So standard linking of link2sd would not work and so "wrong" links from the \data\dalvik-cache to sdext2 will result in re-creating .dex in the CM10 directory \cache\<..>.

I am not sure if the location of dalvik-cache at another place is special to the FXP builds or a general strategy of CM10 - but it is worth to have a look.
[Android Apps and Games] leapinlar:
Actually normally the dalvik cache is split between /data and /cache. The dalvik cache for installed apps are put in /data/dalvik-cache and the dalvik cache for system apps are stored in /cache/dalvik-cache. It may be different for your device, but I think CM10 is uniform in splitting it.

Sent from my Nook HD+ running CM10 on Hybrid SD
[Android Apps and Games] flight243:
Thanks for the message!!

Days ago I removed files 1. and 2. after inspecting my filesystem looking at the files created by Link2SD but I didn't see file 3. Now I have double-checked file 3. and in my device it's not present in xbin but in bin, so in my case (running VJ CM10.1 for HTC Desire) the files to be removed are:

remove /system/etc/init.d/*link2sd*

remove /system/etc/install-recovery.sh and if exists rename install-recovery.sh.ori in its place.

remove /system/bin/debuggerd and rename debuggerd.bin in its place.

Anyway, if somebody has managed to set up and get Link2SD working on similar CM10.1 ROMs for the Desire, please let me know.
[Android Apps and Games] Hawkwing:
Hi.

Can anyone confirm that this works with Sony Xperia V?
[Android Apps and Games] egingell:
On Samsung stock ROMs, some of the system apps are stored in the /preload partition and symlinks in the /system partition point to them. When this app either uninstalls or integrates a system app, it stands a good chance that the file being deleted or overwritten is a symlink and not the actuall app file. My suggestion is for this app to follow the symlink and delete/overwrite the actual file rather than its symlink and also the symlink and relink if necessary so there are no orphaned symlinks.
[Android Apps and Games] fixero:
I use link2sd and have ext2..how to perfect erase data in ext2 without pc..??
[Android Apps and Games] egingell:
Use a file explorer with root access, such as Root Explorer or X-plore, to delete the files from /data/sdext2.
[Android Apps and Games] Syntactic:
Device or resource busy

Hello, android noob here...

Recently, i changed roms from Thillianc's Pureness Mod to gagan.u20's Zelly Cream Mod and i have been experiencing problems with Link2SD. it countinuously tells me "Device or resource busy" when i try to recreate mount scripts.

Im unsure if the Zelly Cream mod contains apps2sd that can mess link2sd but others seems to be having no problems with in

I have tried partitioning to ext2, ext3, and ext4...

I sniffed around the system files but didnt find any apps2sd scripts

Could someone help me?
[Android Apps and Games] nikwen:
If you report a bug, please tell us your device, your ROM (You did that. :good:) and attach a logcat.

If you do not have the Android SDK installed, get it with the app aLogcat.
[Android Apps and Games] Syntactic:
Downloaded the app aLogcat, and am still completely lost as to what to do with the app after looking around a bit :confused:

Oh, Im using Sony Ericsson Xperia Neo V MT11i, suave kernel v6
[Android Apps and Games] nikwen:
Try to do the thing which fails and open aLogcat.

Press the menu button, select save and paste the content of the file here (within [ CODE][/ CODE] tags, remove the spaces).
[Android Apps and Games] nikwen:
Seems to be good. You tried to create the mount script right before taking the log, right?
[Android Apps and Games] Syntactic:
yes. ran link2sd --> tried to recreate mount script --> opened alogcat and saved

i thought a screenshot would help a bit so heres one

http:/ /img22.imageshack.us/img22/ 9066/screenshot2013042315362.png

cant post links till 10 posts grr
[Android Apps and Games] renoob:
Gotcha covered

Sent from beyond the Droid
[Android Apps and Games] egingell:
Guh? Link2SD is trying to mount a disk rather than a partition and it's trying to mount it to /system?
[Android Apps and Games] renoob:
Well, I gave it a go, but no dice.

Although mounted blk2, ands would move apps, it broke my blk3 swap file.

I tried removing as was described here, but wasn't able to find the right combo to restore swap.

So good thing I had a nandroid to restore system

from, and all is back pre-Link2SD.
[Android Apps and Games] egingell:
I wrote a flashable ZIP to clean up Link2SD's trail. I apologize in advance if it doesn't work. I have the stock OS with stock recovery and I'm wary of flashing a custom recovery with the stock OS, so I can't test it - the worst it will do is fail.

It

deletes /system/etc/install-recovery.sh

checks for /system/bin/debuggerd.bin, deletes /system/bin/debuggerd if debuggerd.bin exists, and renames the debuggerd.bin to debuggerd

deletes /system/etc/init.d/11link2sd

If you can't flash it, you can extract link2sdcleanup.sh and execute it with the OS booted or from recovery and ADB, that does work.

Updated: May 2, 2013: Fixed path to init.d script and should now be flashable.

[size=+1]As with all my scripts: you accept all responsibility when flashing it.[/size]
[Android Apps and Games] tobbbie:
Nothing surprising here - link2sd will have to remount \system in RW mode to create the link2sd mount scripts there. If this does not work, then link2sd cannot do its job later.
[Android Apps and Games] egingell:
/dev/block/mtdblock0 is not a valid mountable device. It would be /dev/block/mtdblock0p5 or something like that. On the other hand, if the phone is not rooted, who knows what the app will do, but you also can't use this app, so it's a moot point.
[Android Apps and Games] Syntactic:
Thank you :)

I'll give this a shot and see what comes out of it

[EDIT]Received "installation aborted" without a reason when i flashed on cwm, so i tried executing with OS booted and i got this :

Finished executing script file

exit value: 1

stdout:
null

stderr:
rm: can't remove '/system/init.d/11link2sd': No such file or directory

I then looked at /system/init.d for the 11link2sd file because i saw it there before and was puzzled, and there it was

In the end i just deleted the file myself altogether

Ran "recreate mount scripts" in link2sd again, same error as in the picture

[EDIT2] I noticed another issue with my phone that might be related...

When testing out SU Binary updater on SuperUser app,

it stops halfway and says "Remounting /system as ro...(i assume ro is root) fail!

Could this be related to my problems with link2sd?
[Android Apps and Games] Arch9:
why titanium backup not showing my 2nd partition? in link2sd 2nd partition detected but on titanium backup it does not show?:confused:
[Android Apps and Games] egingell:
Because it's not wired to.

Sent from my E4GT.
[Android Apps and Games] pururava:
Bcos link2sd mounts 2nd partition as "/data/sdext2"

Where as, titanium backup is codded to find 2nd partition as "/data/sd" "/data/sd-ext"

U can use root explorer or "terminal emulator" to symlink folder "/data/sdext2" as "/data/sd"

Then, 2nd partition would appear in both link2sd n titanium backup.

Hope that solves ur problem.

:)
[Android Apps and Games] Arch9:
ok, now i understand :good:
[Android Apps and Games] decmk:
Make 2 empty folders with names app and data on second partition

Symlink /data/sdext2 in same location as sd

Titanium backup will see it and move data will work for apps without libs.
[Android Apps and Games] Mu7ammad3adel:
Please I have a question here ..

Which method saves more internal storage .. "moving the app to SD" or " linking the app to SD with the 3 marks checked" ??

Hint .. All that matters is internal storage, so i assume neglecting the widget issue if apps moved to SD, it doesn't matter that much for me .

Thanks
[Android Apps and Games] Kitschki:
I know that many people asking this got ignored but ill try anyway. So i tried creating a second partition on my sd card (by samsung) but it always says that the sd card is damaged! I always mounted the sd card from my mobile phone though, because theres no dock for microsd cards on my laptop, but the op said that its possible so.. i got a korean rom so that ext recovery app wont work, too! Can anybody help me?
[Android Apps and Games] egingell:
I just noticed in your error that I'm attempting to delete the file from /system/unit.d instead of /system/etc/unit.d. I'll fix it momentarily.

Also, "ro" means "read only" and the "installation aborted" is because you're trying to flash with the stock recovery or maybe it doesn't, I don't know.

Edit: I updated my original post with a new script.

Sent from my E4GT.

---------- Post added at 08:04 AM ---------- Previous post was at 07:16 AM ----------

When you plug your phone into your computer, does it offer to check the disk? If so, let it.

Do you "safely remove" the disk prior to unplugging it from your computer? If not, do!

Edit: Oh, if you're using a computer to partition the SD card, it must be removed and plugged in to the computer with an adapter because Android only tells the PC about the first partition. Nikwen's suggestion is fine, but slightly more difficult.
[Android Apps and Games] nikwen:
On my Samsung Galaxy Ace I needed to create the partition in CWM. Try that. It worked on my phone.
[Android Apps and Games] garzie2000:
Anybody tried this with CM 10?

Sent from my XDA pimped Neo V
[Android Apps and Games] nikwen:
Yep. Working fine. :)
[Android Apps and Games] anakeobal:
Link2sd linked many of my apps on my micromax a25 but the apps force closes plz hlp
[Android Apps and Games] HyperEscape:
Thanks for the app will try it and post.
[Android Apps and Games] cellabonez:
I love your app but I m using ROM that updates with zip files but its installing on ext instead how I can I get it yo install to system folder instead
[Android Apps and Games] commiades:
Thanks for a brilliant app. It's made my Samsung GT-S5690 usable again.
[Android Apps and Games] cellabonez:
Oh yes is it possible to include reverse mount for us xperia users
[Android Apps and Games] nuox:
A great app!

Very great app, save my internal Galaxy Y !
[Android Apps and Games] DrNinjaPhD:
First of all thanks a ton for this app.

It seems to work with smaller applications, but when I try to move an app around 100 mb, it does not update on internal memory, even after restarting my phone. Any idea why this may be the case?
[Android Apps and Games] nikwen:
For me it just takes some time. :)
[Android Apps and Games] DrNinjaPhD:
On the FAQ for the website it says that it should update everything after rebooting the phone. Does it not update for you after you reboot your phone but after waiting for some time while the phone is on it then updates?:confused:
[Android Apps and Games] nikwen:
I never reboot afterwards. However, it might take some minutes.
[Android Apps and Games] DrNinjaPhD:
Right, I suppose I will continue to wait and see if it updates eventually. Thanks mate
[Android Apps and Games] nikwen:
You are welcome. How long have you been waiting?
[Android Apps and Games] daniel_m:
I have a small feature request for people who update their ROM very often: Use userinit.sh (in /data/local) to link the ext partition on the SD card, instead of init.d.

Init.d gets "reset" after an update of the ROM, because it's on the system partition. At least on my CM10.1, there is a script in init.d that calls userinit.sh, which means that any commands in userinit.sh (on the data partition) will survive a ROM update. I know this is somewhat "special", because most people don't update their phone's ROM often, but there are people who like to be up to date (to the extreme) or who like testing new releases to support the developer with useful feedback.

Only problem is that I don't know if init.d on all ROMs calls userinit.sh...

(I copied the commands from the Link2SD script into userinit.sh, updated my ROM to delete the Link2SD script in init.d, and everything works as expected without init.d)
[Android Apps and Games] moby90:
Simply the best!

Inviato dal mio GT-S5570 CyanogenMod 7.2 con Tapatalk 2
[Android Apps and Games] LeClair:
All work.

When you select setting: Install location

the error is:

failure

Segmentation fault

What is wrong?
[Android Apps and Games] ss4adam:
strange problem

I have made the link to all of my apps on my phone. However, when I make the link they are showing up as erased on the internal memory. So basically my phone thinks the apps are still on my internal storage rather than my second partition of my removable SD card. Maybe this is what was intended, but it means that I cant install any new apps because my phone thinks my memory is full even though it is most certainly not!

Another thing to note: something very strange is happening. My second partition says that only 1.08 gb is used. However, I have 5gb of apps installed on my internal memory. I linked all my files from my internal memory so what is making up this difference?

Hooking up my external SD via usb microSD adapter: (pic1)

Disk 2 is used for my android external SD card:

First partition: (please see pic partition1)

Second Partition: (please see pic partition2)

Has anyone seen somthing like this?

Thanks,

Adam
[Android Apps and Games] nikwen:
For me it takes some time until it is displayed correctly.
[Android Apps and Games] ss4adam:
but its been 5 months
[Android Apps and Games] zirooo:
Strange Behavior

Using x10 mini E10i 2.1 update 1 :

Clicking on create link shows the creating link loading bar (i ve granted the application superuser permissions) loading indefinitely !!!

i ve checked the application icon is gone from the app drawer and internal memory decreased showing thus proving that the application was moved (i think) i ve closed the application (still showing loading) with a task killer and restarted the phone

Icon appeared again seems everything is working well but the application doesn't show a confirmation message after "creating link" event is finished ?!

tell me if i can be of any help ..

and thanks alot for your efforts for creating such a brilliant and elegant solution and i hope future updates makes it better.
[Android Apps and Games] viper001:
Excellent app. Thank you.
[Android Apps and Games] parthabhatta:
First of all kudos to bakpinar for developing such an useful app and constantly value adding the same for free.:D

I installed latest 1.4.1 in my x10 Mini. The app is indeed taking more time in linking (without .dex) than the 1.3.1 version. However, its not hanged in my mini. The linked apps from 1.4.1 version are working well. I have not moved the .dex files though and do not have the intentions of moving them right now.

But I would like to request bakpinar to keep the earlier version in post#1 so that anybody facing problem with the current release may switch back to earlier one.
[Android Apps and Games] lije87:
I have exactly the same problem! It seems it works but it's a bit annoying.

The first time I used it I had to remove my sd card to switch on the phone. Maybe this version has some bugs
[Android Apps and Games] viper001:
Ive encountered the same. On a hunch, I turned off background data. It works flawless now. :)
[Android Apps and Games] lije87:
How did you do?
[Android Apps and Games] sirembon:
Need a bugfix! Program indefinitely tolerate the application on a map ... Have to kill it manually. x10 mini
[Android Apps and Games] bakpinar:
I suspect from fixing Market status automaticaly after linking.

I disabled it, can you test with the latest 1.4.2 version.
[Android Apps and Games] sirembon:
thx everything works :p
[Android Apps and Games] ozonbg:
On Hero 2.1 everything works flawlessly. It just free me like 60MB with linking of dalvik cache. Tnx man, keep on with the great job!
[Android Apps and Games] bakpinar:
UPDATE:

1.4.2

- disabled automatic Market status fix after linking

It caused linking process to hang on some phones and I disabled.

Use "Market Fix" after linking and rebooting, as in previous versions.
[Android Apps and Games] Spassdroid:
well unfortunately the new version still does not work on my galaxy 3.

bakpinar, i'm not a tech person, but i am willing to help you get it to work on this model of phone. please let me know how i can help.
[Android Apps and Games] schickimicky:
For The Samsung Galaxy 3 Eclair you need to insmod first mbcache.ko and then ext2.ko from here.

Then you can mount the ext2 partition with

mount -t ext2 /dev/block//vold/179:2 /data/sdext2

The app works now and you can link some apps, but after a reboot you need to insmod the mbcache.ko, ext2.ko and mount the ext2 partiton again.

If i insmod and mount manually after a reboot, i cant see the apps in the drawer, which are on the ext2 partition.

I've searched for the install-recovery.sh, but there is no file where i can change the insmod and mount command.

What can i do, that the commands runs automaticlly after a reboot?
[Android Apps and Games] bakpinar:
Try insmod necesarry modules and open Link2Sd .(without mount manually)

Link2SD will create /system/etc/install-recovery.sh file and ask reboot

Edit install-recovery.sh file and add missing insmod lines before the mount line

Reboot
[Android Apps and Games] schickimicky:
THANKS A LOT!!! It works on my Galaxy 3 i5800 *happy* :D :D
[Android Apps and Games] Mioze7Ae:
Is there a mechanism to disable all dalvik-cache operations in Link2SD? For example in the case that /data/dalvik-cache is a symbolic link?
[Android Apps and Games] pingwin321:
Ough! No answer, no help... Well, I had to help myself.

After hours od seeking the answers I found the solution, and the solution is the following command set:

I had to find it myself, but maybe it will help someone...
[Android Apps and Games] viper001:
Settings>>accounts and sync>>background data - uncheck. Although I suppose its fixed now.
[Android Apps and Games] Vuco:
Bakpinar, You dude rock ! So fast at fixing things :eek:

It's a shame that You don't develop ROM's :D, we would have a 2.3 Android on GT540 in no time :D.

Keep up the good work.
[Android Apps and Games] ChungHung.Chen:
Dear Bakpinar,

First thanks for fast fix. everything is ok now.

Some small suggestion for new features.

Could add "perference" settings for default to move "dalvik-cache" or not?

Because "dalvik-cache" stored program data, someone may not want to move them.

For now I need to manually de-select at every link action.

Sorry for my bad english. And thanks for great work again.

Chung-Hung Chen
[Android Apps and Games] nikwen:
Ok. Let's hope that [MENTION=3258861]bakpinar[/MENTION] will fix it.

Or it is a problem with your ROM.
[Android Apps and Games] ss4adam:
eydroo south

It seems that I cant edit my question so here is just a summary to clear it up.

1. i told every app to link (to second partition) (i have 5gb of apps but looks like only 1gb is on the second partition after the link)

2. the phone thinks the apps are on the internal storage (i think this is what supposed to happen) but once my phone thinks the internal storage is full i couldnt install any more apps. Doesn't this defeat the purpose of this app?

I am using fat32 format.
[Android Apps and Games] nikwen:
Well, I use ext3, but I think that this does not matter.

What did you link? Did you link apk, dex AND lib files?

Yep, they should be shown as internal. However, on my phone the total free space is shown correctly. Maybe it is important to note that my phone has got only 180 MB of internal memory.

Open Link2SD and select internal as a filter. Tell me what you see.

Oh, and it is important to note that Link2SD does not link the data of the app, just the app itself. So data of games (like those Gameloft ones) will stay internal.
[Android Apps and Games] ss4adam:
when i do the internal filter it only shows "link2sd" as that is the only app i have not linked over. so im not sure why it is showing my internal storage as full. Also i thought you have the option (via checkbox on the GUI) to link the data files of the apps?
[Android Apps and Games] nikwen:
No, you cannot link the data. :(
[Android Apps and Games] egingell:
Well, you can, but it requires editing Link2SD's boot script or FolderMount Pro, either way, you'd have to move the folders yourself.

Sent from my E4GT.
[Android Apps and Games] nikwen:
I do that manually but most users do not and there is no feature of the UI.
[Android Apps and Games] Elusivo:
Hi

1st time unsing link2sd and i'm having problems with a few apps, mainly games. I'm using a Samsung galaxy note with a MiuiV5 rom.

I made a 3GB FAT32 2nd partition on the sdcard, link2sd detected it and it allowed me to link apps to it, no problem there, most of the linked apps work fine but some of them force close.

When i unlink them they show up as being installed on sdcard and they do work fine from the sdcard, but when i move them to either the internal storage or i make a new link they will force close again ...

Now when i check the system storage in the android settings, it shows that i am using 2.47GB out of 2.11GB and that i have 0.97GB of available space which should be impossible but i dunno if that's the behaviour of link2sd, also, i didn't check before installing link2sd so i dunno if it was already like that or not.

When i try to move an app to /system it says i do not have enough storage memory even tho i have around 2 GB free of internal memory, dunno if that has anything to do with why these problem apps don't run from internal storage or when linked.

When i try to reinstall app from link2sd option or uninstall the apps that don't work and try to install them again from Google play, or even restoring them from titanium backup, they don't install to internal storage, they install to sdcard and again the same thing, they work fine as long as i don't move them to internal storage or link them to the external partition...

The apps that have this problem, when i move them to internal storage their .apk are indeed moved to the /data/app folder, but they force close when i try to run them...

Also, i tried to install a Lite version of game from Google play that i had never installed before and it also got installed directly into sdcard instead of internal, so it looks like something is making android think that i don't have enough internal storage when i do...

Dunno if it's just me not understanding 100% how link2sd works, but all apps worked fine before using link2sd.

Apreciate any help.

Update: Ok after some more tests, all the .apk that work from internal or linked are around 15MB or less in size ... any bigger apk size and the only way that they don't force close is to use the native app2sd method to move them to sdcard...