yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] ChungHung.Chen:
Dear bakpinar,

So it will be a feature of Link2SD?

If yes, I will suggest some warning when user doing this action.

And this "force move" will take effective if default install location were set to "External".

Perhaps some warning or notice will be better if someone confused again.

Thanks for your reply, and thanks for this great app.

Chung-Hung Chen
[Android Apps and Games] homo XDAus:
feature-request:

automatically link apps to sd restored with titanium backup. Automatically move NEW installed apps works fine, but titanium only restores to internal phone memory, no moving via link2sd even if option is turned on in settings
[Android Apps and Games] rignfool:
Windows doesn't do ext? file systems properly...

Most times you have to reboot and the partition software will run some kind of finalization on the ext? partition at boot time
[Android Apps and Games] internetuser2004:
Link2sd

Hello,

I have moved for the first time a app. But i didn't make a partion on my SD card.

Is it normaly that it works ?

Where is the app moved on the SD card ?

Mark
[Android Apps and Games] Kierrok:
You used the Move to SD option which is just the native way of moving apps to SD. To use Link2SD the right way you have to use the Create Link option but the 2nd partition has to be created.
[Android Apps and Games] skezza:
Can/should we move system app updates to the SD card using Link2SD? Things such as google search google market etc?
[Android Apps and Games] Kierrok:
I do it. If there's any problem with the SD the original ones are still in /system/app. I also link dex files of the apps I don't link.
[Android Apps and Games] skezza:
Thanks buddy :) :)
[Android Apps and Games] karlo87tp:
Thank you for hard work..all perfect.
[Android Apps and Games] bakpinar:
UPDATE:

1.9.11

- fixed "Mount warning" issue on some devices that do not have operational init scripts to mount 2nd partition at boot, e.g. new Samsung Gingerbread roms

** if you have this problem run "Recreate mount scripts" from the menu after installing the new version of Link2SD

- added Basque translation

- some fixes and tweaks
[Android Apps and Games] n756gkj:
Hi.

I applied the latest update on CM9a1 on an Epic4G. My sdcard has 2 parts: 29GB fat32 & 2GB ext4.

As promised, no longer an issue with the script generation.

After install and reboot, the mounts are:

$ mount | grep sd
/dev/block/vold/179:2 /data/sdext2 ext4 rw,relatime,barrier=1,data=ordered 0 0
/dev/block/vold/179:1 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0

And, i can apparently link2sd-link apps & data.

But, if i check "storage info" in link2sd, there's no usage of the sdcard indicated, and its the wrong size:

Checking info @ shell *on* the device,

$ df | grep sd
/mnt/secure/asec: Permission denied
/data/sdext2 1G 199M 1G 4096 /mnt/sdcard 27G 12G 15G 16384

Something's off... I cant tell if its real or an artifact.

EDIT:

checking usage @ adb shell from my attached desktop,

# df | grep sd
1878688 204412 1578840 11% /data/sdext2
29343728 13448304 15895424 46% /mnt/sdcard
# cd /data/sdext2
# du -h -d 1 .
16.0K ./lost+found
23.8M ./dalvik-cache
89.5M ./data
164.9M .

indicates correct usage of the ext partition.
[Android Apps and Games] skezza:
Another question, i've noticed Link2SD is on the SD too, should I keep that on the device? I avoided creating a link to Superuser as I might sometime need to take the SD out.

I downgraded to 1.7 to build the scripts, then upgraded to 1.9 but I might do this interval update.

Do you have any plans to store data too? This method is far better than Data2SD from the Market. Haven't tried Data2Ext
[Android Apps and Games] Kierrok:
@pgn@xda: Read this.

You should keep Link2SD in internal memory. From a few versions ago it even don't let you link itself.
[Android Apps and Games] skezza:
I thought as much. I'll move it back :)

Will there ever be support for data :o
[Android Apps and Games] azcv:
I am using root explorer to manualy move app data.i have issues with lib linking with link2sd.Wnen app is updated and the lib is with the new name link2sd links the new lib automaticaly,but the old lib files remain on the ext partition.This way my ext partition memory decreases.If data linking will be added soon it will fix a lot of issues.
[Android Apps and Games] n756gkj:
that clears up the @shell bit,

# df --> wrong values

# busybox df -> correct values

thanks.

is there some way to convince Link2SD app to use the 'correct' busybox df?

i'm not sure that replacing aliasing 'df' -> 'busybox df' is the right approach, as not clear what *else* depends on 'df' ...

i suppose this needs to be fixed in-app?
[Android Apps and Games] n756gkj:
'restoring' with Link2SD + TitaniumBackup correct original locations

hi,

i've installed link2sd (on CM9a2, atm) on an Epic4G with a 2-partition sdcard (FAT32 + ext4). since the most recent update, working well!

i use TitaniumBackup for backup/restore.

though i keep most apps link2sd-linked, i've a bunch i keep "on phone" -- early system apps, admin tools, widget-containing apps, etc.

after a wipe, i'd hope that a restore via TB with Link2SD active would reinstall apps to the locations they were originallly installed to -- phone, sdcard, or linked.

i have been unable to figure out the right combination of setting in Link2SD & TB to make that happen.

apps get reinstalled to some (random?) set of locations. many still go to linked storage, but others end up on the phone (filling up memory and interfering with an automated restore), or to sdcard. bottom-line, after a 'restore', I have to manually reloacte the files back to their original/intended locations.

digging around, it seems that this inability to get the locations right is known ...

http://android.stackexchange.com/questions/15038/does-titanium-backup-work-with-system-using-link2sd

*IS* there a way around this -- namely, to config Link2SD & TB so that stuff gets put back -- correctly -- where it started?
[Android Apps and Games] Kierrok:
The problem is not everyone has busybox installed. Link2SD could be packaged with his own bb binary though.
[Android Apps and Games] n756gkj:
Good point ...

Maybe just the busybox 'df' binary, not the whole env? In any case, unless it gets fixed at the android/ROM level, it causes 'apparent' brokenness in Link2SD.

I hope it might be addressed 'here' -- chances are that'd happen soonest ...
[Android Apps and Games] bakpinar:
# df --> wrong values

# busybox df -> correct values

Can you post both outputs?
[Android Apps and Games] n756gkj:
this is now on CM9alpha2 ...

$ df | grep sd
/mnt/secure/asec: Permission denied
/data/sdext2 1G 639M 1G 4096
/mnt/sdcard 27G 13G 14G 16384
$ busybox df | grep sd
/dev/block/mmcblk0p2 1878688 655344 1127908 37% /data/sdext2
29343728 13636448 15707280 46% /mnt/sdcard
df: /mnt/secure/asec: Permission denied
$

and, here's what Link2SD 'sees' in-app:

Note that the in-app data agrees exactly with the !busybox 'df' result.
[Android Apps and Games] Kierrok:
Native df use human readable format by default but ignores the fraction part. i.e a 1.9GB partition is reported as 1GB which is dumb for such low values. busybox df -h really shows 1.9G.
[Android Apps and Games] n756gkj:
sure, for comparison ...

$ df | grep sd
/mnt/secure/asec: Permission denied
/data/sdext2 1G 640M 1G 4096
/mnt/sdcard 27G 13G 14G 16384
$ busybox df -h | grep sd
/dev/block/mmcblk0p2 1.8G 640.7M 1.1G 37% /data/sdext2
28.0G 13.0G 15.0G 46% /mnt/sdcard
df: /mnt/secure/asec: Permission denied
$
[Android Apps and Games] bakpinar:
Thanks, I'll fix this in the next version.
[Android Apps and Games] skezza:
Just moved more apps over with Link2SD. This app is a breath of fresh air. It's so useful and as of yet, I've not noticed a performance hit, even from a class 4 car. Well, there's a tiny delay, but you're talking seconds, not minutes (ala Data2SD from Market).

If you ever do support private data, that would be the next big step or is the aim to keep that internal to support fast read/writes?
[Android Apps and Games] Kierrok:
Some time ago I did some tests and if they were accurate my phone internal memory behaved like it was a class 2. Therefore linked apps should load faster in a fast SD card than in internal memory.

The main problem with data linking, in my opinion, is the constant write some apps do. Flash memory has limited write cycles so life time depends on that. When linking apk, dex and lib files it only writes once.

What I would like to see soon is system apps dex files linking. This can free a lot of space.
[Android Apps and Games] skezza:
Couple of interesting points. You know, I say there is a tiny delay, I haven't actually based that on anything, it could be just a placebo effect of having done it. When you do something like Link2SD, you hyper analyse performance to see if there's any negative effect.

Yes, you are spot on about data linking and I need to keep my mouth shut ;) flash memory does have a limited number of write cycles and as you said, private data is constantly being written to. I could see it having the same effect as NTFS originally did on SSD's years ago (****ed them after like 6 months).

I like the idea of system apps too, but I can't see it being 100% reliable. Even with root, certain write permissions are required for the NAND. Some phones support them which means you can do little nuances like converting system app to user app (HTC's seem to) but others (Galaxy i9000 is mine) don't and every system app I try to convert gets fried and is unusable. What's more, you can't go back, Nandroid it is.
[Android Apps and Games] Kierrok:
I forgot to mention that I tweaked the read-ahead cache for my SD. This can increase read speeds a lot.

And I was talking about the dex files of the system apps, not the system apps themselves. System apps dex files are stored in /data/dalvik-cache too.
[Android Apps and Games] decmk:
System apps dex files

System apps dex files can be moved to /system/app.

I do it for 5 apps, gmail, youtube, search, mail and maps.

1. make nandroid backup.

2. force close app if running

3. move appropriate dex file to /system/app

4. rename it like app name ex. gmail.dex

5. remame only extension from dex to odex ex. gmail.odex

6. set permision to be same like apk file

I use same trick for dex on apps on native app 2 sd moveing to appropriate folder in /mnt/asec/ and renaming to pkg.odex
[Android Apps and Games] skezza:
Interesting, Kierrok how did you tweak the read-ahead cache? In ROM Manager?

Moving the dex files would be great and save a good portion of space.

decmk, what benefit would that do? You'd still be storing the dex files on the System Partition?
[Android Apps and Games] Kierrok:
I've used the SD Card Speed Booster app for a while but then found a script that runs at boot and increases the read-ahead cache in all the partitions. It was here, in xda, but I can't find it now. My phone default was 128kb and now I use 2048kb. But there are devices with the default value as low as 4kb.
[Android Apps and Games] Cosmo123:
Hello guys,

I need help with my setup. I've been using Link2SD for a while now, but recently I ran into a problem. When I link lib files the affected apps don't work anymore after a reboot. Re-link lib files at reboot is activated.

When I check the apps the lib files have 0.00kb

To fix those apps I need to reinstall them and if I link lib files they will only work until the next reboot.

Any ideas would be appreciated

Thanks

Using CM7.2 RC0 on an HTC Liberty
[Android Apps and Games] decmk:
Benefit is more free space on data partition /data.

Yes.

Gingerbread 2.3.3 RUU Rooted S-Off with Link2SD partition 512MB
[Android Apps and Games] bakpinar:
Which version of Link2SD do you use?
[Android Apps and Games] Kierrok:
bakpinar, Link2SD still links lib files which weren't linked before when I update the apps. Maybe this is related?
[Android Apps and Games] Cosmo123:
I'm using the latest version 1.9.12
[Android Apps and Games] n756gkj:
inconsistent auto-linking on install. some do, some don't.

i'm running link2sd v1.9.12 on cm9a2/epic4g

my link2sd settings are:

[x] Auto link
Auto link settings
[x] Link application file
[x] Link dalvik-cache file
[x] Link library files
Install location
[x] External

when I install apps from Market, most get installed & auto-linked, as intended.

some -- e.g., i just installed IVONA TTS & IVONA US English beta -- get installed to SD-Card, and are NOT auto-linked.

i *am* able to manually link them, and they function with no apparent problems ...

atm, i can identify no consistent pattern to which apps will get linked, and which won't.
[Android Apps and Games] bsoplinger:
Some apps have special info in the apk file directing that they should be installed on the SD card so that is what happens. I have no idea if link2SD could stop that. If it can't then you'll always have to manually link them.

Sent from my HTC Flyer P512 using Xparent Purple Tapatalk
[Android Apps and Games] bakpinar:
Can send the output of the followings. (for an app the lib files have 0.00kb as you said)

ls -l /data/data/<package>/lib

ls -l /data/sdext2/data/<package>/lib
[Android Apps and Games] lousou76:
All xperia roms lack the init.d structure.

There for the mount scripts are not created and link2sd is not working.

I fixed that by adding the mount command manually to /system/etc/hw_config.sh .

This worked fine so I suggest if you can incorporate this in to the latest version I would be grateful.

I use a Xperia Neo V firmware .62 (latest at this moment).

Thank you for the great work.

I also want to state one thing.

I tried linking entire /data/app on sd but thephone ended up in bootloop because the second partition is mounted very late.

I was unable to install a2sd darktremor scripts and functionality to my rom for the same reason.

/data/app / app-provate must in boot time otherwise you end up in boot loops if the card is absent. That is one reason that I prefer link2sd rather than a2sd (besides all others).

Keep up the great work.

Thank you.
[Android Apps and Games] bakpinar:
Did you try with the latest version of Link2SD.

This version should create a working script to mount the 2nd partition at boot.
[Android Apps and Games] lousou76:
I Did. it does not. gives device or resourse buzy error
[Android Apps and Games] draiyan:
how can i merge 2 ext2 partition? i got 500 only on my ext2 and i want to increase it to 800. please help me, without deleting my data on both partition.
[Android Apps and Games] Munch97:
Guys why is my phone's internal memory depleting when linking apps lib files using link2sd app from internal storage to sd card? Shouldnt my phone be gaining more internal storage instead? and by the way which is more effective if i wanted to gain more space on my device between move to sd and link to sd, im confused
[Android Apps and Games] erfandl:
Problem with new a2sd script

hi. thanks for this app its very good

But I have a problem with new A2SD script http://xdaforums.com/showpost.php?p=21222591&postcount=1374 used in this new ROM http://xdaforums.com/showthread.php?t=1068553

is it problem with this rom and script or Link2sd?

thanks please help
[Android Apps and Games] Kierrok:
Link2SD FAQ

---------- Post added at 11:02 AM ---------- Previous post was at 11:01 AM ----------

You have to choose between A2SD or Link2SD. You can't use both.
[Android Apps and Games] swpross:
Additional concern for Pandigital Novel 9"

The guidance from Kierrok on page 245 worked great for me with a few modifications, however the BOOTSUCCESS record for the Pandigital Novel 9" (OPDN9) is located in the init.smdk6410.sh file and a command must be added to keep the unit from doing a factory reset after a certain number of reboots. I think the number is 6. Without this command being included, the unit thinks that the boots are unsuccessful and keeps counting them until "bam" factory reset. I entered the following to use Link2sd and correct the factory reset issue:

rm /system/etc/init.smdk6410.sh

echo '#!/system/bin/sh' >> /system/etc/init.smdk6410.sh

echo 'sleep 2' >> /system/etc/init.smdk6410.sh

echo 'mount -t ext2 -o rw /dev/block/mmcblk1p2 /data/sdext2' >> /system/etc/init.smdk6410.sh

chmod 755 /system/etc/init.smdk6410.sh

echo '/system/bin/turboutil -v -f /system/etc/turboboot.ini -i BOOTSUCCESS -c 1' >> /system/etc/init.smdk6410.sh

chmod 755 /system/etc/init.smdk6410.sh

I hope that this saves someone the aggravation of having to do a complete restore after getting everything working and then having a random factory reset happen for no apparent reason and wipe everything out.

Thanks Kierrok for taking the time to post and help out a nube like me!
[Android Apps and Games] Kierrok:
You're welcome, but I hope you didn't lose something important that could be in the file when you deleted (rm) it.
[Android Apps and Games] ChungHung.Chen:
Dear bakpinar,

Which script did Link2SD created? I've noticed two scripts, /etc/install-recovery.sh and /etc/init.d/11link2sd.

But I've copied these two script to my custom update zip ( not openrecovery ), Link2SD still told me about "mount warning".

Solution is "re-create mount script" by Link2SD, and everything will be ok.

Is any thing more about Link2SD's mount script?

I wish I can create my custom update zip without "re-create mount script" after I flashed it.

Thanks for your help.

Chung-Hung Chen
[Android Apps and Games] Kierrok:
Did you restore the original owner and permissions in the updater script?
[Android Apps and Games] ChungHung.Chen:
Dear Kierrok,

Yes I do restore the original owner and permissions by updater script.

/etc/init.d/11link2sd => 0755 root root

/etc/install-recovery.sh => 0755 root root

And I'm also compared with the new scripts created by Link2SD.

That's why I am confused.

Chung-Hung Chen
[Android Apps and Games] Kierrok:
Not sure if this is the cause of the problem, but never use /etc/, use /system/etc/ because /etc is just a link to /system/etc provided only to be backwards compatible with the firsts Android versions and I'm not sure if it exists in custom recovery.
[Android Apps and Games] ayman22:
Question about link2sd..

Currently, I'm using link2sd on my Galaxy s2.. I have 3 options as far as i'm concerned with link2sd.

1.) internal memory

2.) "move to sd" which i'm assuming is the internal USB storage

3.) "link 2 sd" which creates a symbolic link to trick the phone into thinking it's on the internal system memory but it's really on the microSD card.

So here's my dilema... all my apps work fine regardless of which method of storage i use for my apps, but when i select the "move to sd" option (which again i'm assuming is the internal USB storage), and create a homescreen shortcut, the shortcuts disappear after rebooting. If they are on the internal memory or i use the "link 2 sd" feature, the homescreen shortcuts are fine and do not disappear. Why do they only disappear when i use the 'move to sd' option? The thing is, I don't want to link some of the apps and would prefer to just store them on the USB storage rather than my microSD card or the internal memory.

Is there a way around this? I hope I explained myself clear enough for others to understand and help answer my question.

I can't say for sure if I had this problem before upgrading to the latest 1.9.12 version because I simply don't remember or possibly did not test it out on older versions. I looked for an older version to see if it makes a difference but can't find the older versions either.

Thanks, sorry for the long post..
[Android Apps and Games] ChungHung.Chen:
Dear bakpinar & Kierrok,

I've found the answer of Link2SD script problem.

My custom ROM from CM7 was missing "/system/bin/sysinit" which used to run /etc/init.d at boot.

I've copied sysinit from my previous backup and Link2SD is work again even without /etc/install-recovery.sh.

So I suggest Link2SD can check if "/system/bin/sysinit" exists.

And warning user about mount problem.

File : /system/bin/sysinit

Owner / Group : root / shell

Permission : 0755

And here is the script.

#!/system/bin/sh

export PATH=/sbin:/system/sbin:/system/bin:/system/xbin
/system/bin/logwrapper /system/xbin/run-parts /system/etc/init.d

Chung-Hung Chen
[Android Apps and Games] skezza:
ayman, im amazed you even considered putting Link2SD on a SII, they have plenty of internal storage. You could put 100s of apps on an SII before needing Link2SD I would have thought?
[Android Apps and Games] Kierrok:
That's not a generic way to enable init.d support. My phone doesn't have /system/bin/sysinit but runs that command as a service in init.rc. Like install-recovery.sh.

Maybe your ROM does it that way, but that doesn't explain why install-recovery.sh wasn't running too.
[Android Apps and Games] ayman22:
Well the way apps install to the phone is weird. Look at this screenshot: http: / / i.imgur. com/FiF02 . png (Apparently I cannot post links yet because i haven't reached 8 posts. screenshots would be helpful in this post and idk how else to show you fellas.. i'm not spamming and these are legitimate links lol. please fix the spacing in the web browser to see pics)

The "Internal" memory is like 2 gigs worth of system memory. Some apps install themselves entirely to this section of the phone, which I'm fine with, but other apps i prefer not to be on this part of the phone memory.

Notice the "SD Card" memory with a total of 11.25? This use to be FULL because I have a few gameloft games that take up so much space with their data files. I am using a combination of link2sd and GL to SD to move all the gameloft games over to my microSD which worked great and freed up all my "Internal USB Storage" which is the "SD Card" memory in that screenshot. It's misleading how they label it.

The last part in that screenshot is my 2nd partition on my microSD card. Of those 3 storage meters, only the last one is actually reading off of my microSD card, while the top 2 are part of the phone's internal memory.

What I wanted to do was move some of the apps from the internal 2gb capacity memory onto the internal 11.25 capacity memory. Like I said that works fine but when I add shortcuts to the homescreen and they are on the "SD Card" a.k.a. internal usb storage, they disappear from the homescreen after rebooting.

I notice a difference in the phone speed when I free up more memory from the 2gb system storage which is why I want to put them on either the 11gb partition or the microSD, but preferably the 11gb internal partition so that I can disconnect my microSD card without having issues with apps running.

The gameloft games I don't care about so I keep them on the microSD. I care less to have those if my microSD isn't present.

And here's a quick screen of my microSD capacity: http: / / i.imgur. com/xMPby . png (Apparently I cannot post links yet because i haven't reached 8 posts. screenshots would be helpful in this post and idk how else to show you fellas.. i'm not spamming and these are legitimate links lol. please fix the spacing in the web browser to see pics)

The apps don't install to that 11gb internal partition otherwise I wouldn't have asked my question. So when I move them over to the 11gb internal storage via link2sd, the homescreen icons are not preserved, although they appear just fine in the app drawer.
[Android Apps and Games] Kierrok:
@ayman22: Perhaps the internal storage partition is being mounted too late to allow the launcher to see the apps. Native App2SD has problems with widgets for the same reason, I think.
[Android Apps and Games] ayman22:
Funny, I had the same thought! I do believe this is why because I actually noticed some more after testing...

It seems that there were rare occasions where certain homescreen shortcuts appeared at some boots and not at other times of boot. '

I do believe you are correct... oh well... I don't mind to have it the way it is, but nice to think that I have at least found the possible reason as to why it was doing that.

Thanks for the input Kierrok