yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Kierrok:
Move2SD Enabler is able to change the default install location. Is it too much to ask for a setting like that in Link2SD? An auto/internal switch is enough.
[Android Apps and Games] SHAUN231:
this question has been asked 4 times in the thread with no help. We have 2 partitions on sd card both fat 32 but when the sd card is in phone only the 2nd partion shows up. does anyone have a fix for this. thank you
[Android Apps and Games] boardlord:
One of my apps just got updated from the Market, and the automatic re-linking and clean up was flawless :) Thanks for taking care of it :)
[Android Apps and Games] Janaboy:
-

Dear bakpinar!

Please help me! Only you can say anything about my problem..

I have an MID (Smartq V7) its run 2.1 rooted. I installed the link2sd but if i make the second partition, my android not mount the whole card (so the first partition is not mounted too). If i delete the second partition my card is working fine (with the lower size of first partition). I do everything as you write!

Thank you!

Janaboy
[Android Apps and Games] -iD:
Still stumped. No combo of scripts or modules would work for me with extX so I reformatted the partition as Fat32. Now L2SD starts and appears to run normally but any app moved disappears after reboot. Running LGB on a Droid 1 with a raidzero kernel.
[Android Apps and Games] bakpinar:
Is /data/sdxet2 mounted after reboot?
[Android Apps and Games] mahyavanshi:
hey guys i m new on xda when i install the titanium back up it showing your phone is not rooted and if i root phone the warranty is void is it true and if yes tell me solution i dont want 2 void my phone warranty
[Android Apps and Games] bakpinar:
Try format your SD card in your phone, this will create one FAT partition on the card.

Then resize down this first partition (without changing its type) and create a second partition with FAT32 as primary (not logical or extended).

Do not create any additional partitions like swap etc, only two partitions.
[Android Apps and Games] danceswithbongs:
Have you tried to use hot reboot when that happened?

Like bakpinar asked, I think the ext isn't mounting upon full reboot but should upon hot booting.

Had this occur in the past and still on occasion, but the hot has always fixed it.

Bakpinar

Love the link statusbar notification.

Great addition that makes you feel good that link is working well.

Thanks

walkin the walk while tappin the talk

danceswithbongs
[Android Apps and Games] Kierrok:
bakpinar, just noticed that dex relink after an update its finally working in my phone. Thanks again for your great work.
[Android Apps and Games] Popples:
mount script cannot be created

Hi. I've installed the app on my Htc Wildfire with Eclair 2.1 but it doesn't work. After I select the file system of the second partition (I've tried both EXT2 and FAT32, set as primary), it appaer the msg " mount script cannot be created. :cannot create /system/etc/install-recovery.sh: not enough memory".

The second partition size is 980 MB (but I've tried also a lower size - less than 500 MB - but with the same result). Please help me to solve these problems and allows me to use this app.

Thanks in advance.
[Android Apps and Games] -iD:
ding ding ding! good hunch bro. on fresh boot, any linked apps are missing from the drawer, and do not show in the app list when Link2SD is launched.

I use the Quick Reboot, and after finishing, the apps are now in the drawer again and accessable, and show as linked in the list in Link2SD.

I had read that in older Android builds newly linked apps would disappear until the device had been rebooted, but it was not my understanding that this was needed each time the device was restarted, just once after linking to SD. Apparently, as you guessed, my partition is not fully mounting on initial boot, but is after a quick reboot. Now just need to fix this so that it mounts correctly initially.

One confusing thing: on first boot, previously moved apps do not show, but when i run Link2Sd *before* quick rebooting, it must be able to "see" the partition since I can move additional apps to it, and all appears successful, and they still work (until a fresh reboot w/o subsequent quick reboot) SO my question there is, why can Link2SD "see" and "use" the partition before the quick reboot for adding apps, but can't see previously linked ones until after a quick reboot?

Here my n00bness shows: I think so, but not sure. Root Explorer shows a folder named sd-ext with a fresh (current) creation timestamp, but it's empty; both after initial boot and after a quick reboot. Shouldn't I be able to see sd-ext's contents if apk and dex files have been moved there?

FYI, I removed the ext2.ko module from /system/lib/modules (since i wanted to remove kernal compatibility issues from the equation so i reformatted the partition to FAT32 which should not need any additional modules), restored my original 04insertmd so that it no longer references that module and only installs ipv6.ko, and removed all "custom" scripts in /etc/init.d so that the only one that's not native to the "stock" LGB setup is the 11link2sd script that Link2SD installed. Perhaps worth noting is that Link2SD appears to have installed an additional copy of the same script in /etc/install-recovery.sh

I've attached the output from initial boot and after quick reboot for

set

mount

df /data/sdext2

ls -l /dev/block

They look the same to me but maybe you will notice something. I'm encouraged that after quick-rebooting the links work, just need that final nudge to get the partition to mount correctly at initial boot.

TIA!
[Android Apps and Games] mugel0190:
Hey!

I just stumbled across link2sd and I am very impressed by this little app. Simple interface and selfexplanatory. Just like a software should be.

I resized the only Partition on my SD and created a new FAT32 Partition with gparted on my linux box without any problems and link2sd works like a charm! No problems at all...

This is just what I was missing on my Milestone. Now I have no urgent need for Froyo anymore :)

Big thanks!
[Android Apps and Games] bakpinar:
In fact the second partition is mounted at initial boot.

You can see "/dev/block/vold/179:2 /data/sdext2 vfat" in initial_boot.txt file (last line of the mount output).

That means that partition is mounted.

The problem is that, for some reason, it is mounted later than it should be in the boot sequence. It should be mounted before the PackageManager scans the applications but it seems that 2nd partition is mounted after this. That's why linked applications are missing from the system.

When you issue "Quick Reboot" PackageManager restarts and finds the apps, because the partition is already mounted.
[Android Apps and Games] durdur:
OTA Update

Hi,

First of all, Thank you very much for your app. I have a 1 Gb ext2 with 250 Mb of installed and linked apps. It works well and my frustration and my disapointment towards HTC Desire lack of memory is more less.

Right now, I have Froyo 2.2 rooted and S-Off. Question : What will happen if I get an OTA Update from 2.2 to 2.3? Will the update go smooth? Or I have to uninstall all my apps before and redo all the partition and linking?

Thanks for your reply and your help.
[Android Apps and Games] danceswithbongs:
Actually since you are rooted the OTA would end up causing your phone to lose root and you would then have to re root the phone. Since you are rooted, hopefully there is a 2.3 custom ROM you can flash so you get the update, but don't lose root.

And just so you know the OTA doesn't require you to do anything other than accept the update
[Android Apps and Games] dueltothedeath:
please respond... program was working great, linked several apps with no problem. days later, used program again an now its saying the second partition not found on your sd card. make sure you have two partitions and both are primary.

if second partition doesn't mount you cannot use apps linked to sd card.

PLEASE HELP:confused:
[Android Apps and Games] danceswithbongs:
did you flash a new kernel between when it worked and now?
[Android Apps and Games] -iD:
would getting it to mount earlier be as simple as renumbering the scripts in init.d and making the link2SD script 01, moving everything else up +1 in number?
[Android Apps and Games] danceswithbongs:
way beyond my level of knowledge

sorry

:eek:
[Android Apps and Games] dueltothedeath:
I never flashed the kernel.. how do you renumber the script making link2sd script 1?
[Android Apps and Games] Popples:
Nobody installed this APP on the WILDFIRE and can help me????
[Android Apps and Games] danceswithbongs:
that stinks man, sorry to hear

I keep seeing your post and feel bad that there hasn't been anyone to help, but I have really only figured things out through reading posts googling and finding random scripts to try if link app doesn't mount it.

I just don't know anything regarding htc phones as I have always had my OG Droid as far as smartphones go.

HEEEYYY SOOOMMEEEEOOONNEEE HEEELLLLPP THIS GUUUUUYY!

best I can really do buddy, sorry

danceswithbongs:eek:
[Android Apps and Games] bakpinar:
Some HTC phones have NAND lock and do not permit to write /system directory even if you are root.

You need to do S-OFF (security off)
[Android Apps and Games] danceswithbongs:
dun dun dun

super-bakpinar to the rescue

bakpinar any thoughts on a donate link for the excellent app and beyond belief support.
[Android Apps and Games] besmp5:
Works great on my SE X8!

Thanks!!!!
[Android Apps and Games] exsulis:
I've got a pre-market version. Should I A just install the current 1.5.4 app from the market, or should I uninstall the current version as the market does not see it to update it?

Thanks :D
[Android Apps and Games] xcxa23:
as far as i know, until nw wildfire seems like not able to root.. unless u able to root, u cant use this apps. sorry mate
[Android Apps and Games] Popples:
How can I do S-OFF on my phone?

P.s.: Thanks to danceswithbongs for the support ;)
[Android Apps and Games] Kierrok:
I think it's safe to install the latest version from the market.
[Android Apps and Games] dueltothedeath:
Ok Bulent...i love your app. i only got one more question.. I can only link a few apps otherwise the ext2 partition wont mount. How can I fix that so more of my apps can be linked
[Android Apps and Games] Janaboy:
Thanks for your idea, but its not working! Can be possible to check something find out why not mount my whole card if i have two partition?
[Android Apps and Games] justpassntime:
Link2SD Working on Garminfone!

The latest update allows it to work on Garminfone. Thank you!
[Android Apps and Games] jessica00:
hi , i love link2sd so much but recently i began to lack of phone memory again . Is it possible to move the whole application to sdext2 ? Or maybe in the future ? thanks
[Android Apps and Games] peshovec:
android 2.1 reboot after "linking"

Hi,

I have run some tests:)

It turns out, that when app is copied and then linked, the system_server mark it as removed (uninstalled). So far so good.

I figure out, that the system_server somehow look at the apps folders.

So i devide to give it a try

update application

/data/app# ls -al com.p.raykov.blue.zone.apk
-rw-r--r-- 1 1000 1000 160649 Mar 18 16:39 com.p.raykov.blue.zone.apk

/data/app# pm list packages | grep raykov
package:com.p.raykov.blue.zone

move and link it

/data/app# cp -ai com.p.raykov.blue.zone.apk /system/sd/app-clean/
cp: overwrite '/system/sd/app-clean/com.p.raykov.blue.zone.apk'? y

/data/app# ln -sf /system/sd/app-clean/com.p.raykov.blue.zone.apk
/data/app# ls -al com.p.raykov.blue.zone.apk
lrwxrwxrwx 1 root root 47 Mar 18 16:41 com.p.raykov.blue.zone.apk -> /system/sd/app-clean/com.p.raykov.blue.zone.apk

/data/app# pm list packages | grep raykov
/data/app#

as expected the app is gone...

then i tried, to trigger a system_server reread of the app folder

to be honest, i don't know which of the folowing do the trick, but it can be tested easily

The main idea is to "modify" the file, so the system_server to run package stuff:)

/data/app# cp -ai com.p.raykov.blue.zone.apk emp
cp: overwrite 'emp'? y
/data/app# cp -ai emp com.p.raykov.blue.zone.apk
cp: overwrite 'com.p.raykov.blue.zone.apk'? y
/data/app# ls -al com.p.raykov.blue.zone.apk
lrwxrwxrwx 1 root root 47 Mar 18 16:41 com.p.raykov.blue.zone.apk -> /system/sd/app-clean/com.p.raykov.blue.zone.apk
/data/app# pm list packages | grep raykov
/data/app#

/data/app# touch com.p.raykov.blue.zone.apk
/data/app# pm list packages | grep raykov
/data/app# mv com.p.raykov.blue.zone.apk emp
/data/app# mv emp com.p.raykov.blue.zone.apk
/data/app# pm list packages | grep raykov
package:com.p.raykov.blue.zone
/data/app# ls -al com.p.raykov.blue.zone.apk
lrwxrwxrwx 1 root root 47 Mar 18 16:41 com.p.raykov.blue.zone.apk -> /system/sd/app-clean/com.p.raykov.blue.zone.apk

so the app re-appear without reboot:)
[Android Apps and Games] bakpinar:
This is the trick, I will implement in next release.

Thank you!
[Android Apps and Games] josuearisty:
Im using a cliq xt...

when I do a nandroid backup + ext (using ext3) via recovery, it does a normal backup, does not backup my ext partition where I have some apps linked with this application... :(

What to do??
[Android Apps and Games] 16navi:
i have installed the rom cm 6.1.3 in my x10, and i can't make it work, when i had the android 2.1 i installed link2sd and everything worked fine, but in froyo keeps saying: "Mount script cannot be created. mount: No such device or address". i really need help cause this is a great app, and it's help me a lot with the memory space of my phone.

sorry for my english...
[Android Apps and Games] bakpinar:
UPDATE:

1.5.5

- changed link creation, reboot is not required on Android 1.6 and 2.1 anymore

After linking, reboot and "Market Fix" are not needed anymore on Android 1.6 and 2.1 because the app does not disappear from the system (like 2.2+).

You only need to, if any, re-add the shortcut and the widget of the app to homescreen.

Seem a small change but it is an important improvment.
[Android Apps and Games] mhyke13ph:
WOW!!! your so fast bakpinar :eek: Many Thanks for your effort in improving our 2.1 Android

:D
[Android Apps and Games] mrkallak:
Awesome job bakpinar! Works like a charm - no reboots any more!

And that's not a small change??? It is one of the biggest and most important improvement since I started using link2sd!
[Android Apps and Games] Hung Ming Hsieh:
great job! I can app2sd so smoothly on my xt701 even working android 2.1.
[Android Apps and Games] ayushbond220:
My phone's internal memory is less ! Is there any way we can transfer the data files to the memory card...

By the Way The app is GREAT . Thanks !!
[Android Apps and Games] ozonbg:
Big thanks Bakpinar for the latest update letting us to avoid the tedious reboot. Cheers!
[Android Apps and Games] johnnyrocketII:
Wipe dalvik - what happens next?

Hi bakpinar (or anyone else who knows the answer),

Noob here, please forgive the novice question -

But I'm unclear on what would happen if:

I've loaded hundreds of apps and moved them with link2sd.

I then Wipe Dalvik cache with recovery...

Reboot phone...

System starts rebuilding dex files and then runs out of room in dalvik cache after "dexing" only half the apps....

What happens next?

Does link2sd move the dex files as they are created to the ext partition?

Or does the phone just stop building dex files with an error? or ????

What would a noob like me do in this situation to finish building the dex files?

Also, once I've moved an app and its dex, can Titanium Backup still back them up?

Thanks for what looks like a great app!!!
[Android Apps and Games] rignfool:
So... after much reading... i realize i must post...

When the quick reboot feature went in... i used this feature... and had the phone lock-up... i pulled the battery and in the process lost some linked apps...

I have tried using root explorer to delete any mess leftover... and whatever links i could still find... but i get an error when i try to install lost apps... any suggestions on how to fix without a reformat of the sd card?
[Android Apps and Games] darren1:
Is it possible to change location of SD card? On Archos Internet Tablets there is an internal flash drive which is recognized as an SD card, and there is no way of pointing your program to a real SD card. Thanks.
[Android Apps and Games] bakpinar:
Hi,

To determine the external storage (SD Card) location, Link2SD use Environment.getExternalStorageDirectory, not hard coded "/sdcard".

Can you run "set" command from terminal on your tablet and check EXTERNAL_STORAGE environment varible.

This should be your external card mount point.
[Android Apps and Games] darren1:
Hi, "set" command gives EXTERNAL_STORAGE=/mnt/storage that is the internal flash, /mnt/storage/sdcard is the external card mount.
[Android Apps and Games] josuearisty:
Backup ext partition

Hello everybody here, I found a way to backup the whole EXT partition...

Any question ask PM...

I think is good to backup EXT, because if you make a backup of your rom, you want to backup EXT partition too. ;)
[Android Apps and Games] klaus74:
why PM?

if you know how to back up ext, why don't u post it in the thread?
[Android Apps and Games] -iD:
ClockworkMod automatically backs up the contents of sd-ext when you make a nandroid backup.
[Android Apps and Games] mallaccra:
my zte v9 is rooted with default fat32 partition on the sd card. everytime i created the second partition with whatever format it always said that the sd card is damaged. i couldn't format the first partition as fat because there is no option for that.

i've followed exactly the steps as per the instructions....what shall i do?
[Android Apps and Games] thorn11166:
so what do i have to do to get this working in CM 7? i have been looking all day for a way. phones a motorola droid if that helps any.
[Android Apps and Games] MongooseHelix:
In adb shell or terminal emulator, run the command:

df -h

Is the filesystem /dev/block/mmcblk0p2 mounted? If so, what is it mounted to?

Here's the output on my Eris:

sh-3.2# df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 95.3M 44.0K 95.3M 0% /dev
tmpfs 95.3M 0 95.3M 0% /mnt/asec
tmpfs 95.3M 0 95.3M 0% /mnt/obb
/dev/block/mtdblock3 170.0M 108.9M 61.1M 64% /system
/dev/block/mtdblock5 159.5M 81.4M 78.1M 51% /data
/dev/block/mtdblock4 130.0M 42.3M 87.8M 33% /cache
[COLOR="Red"]/dev/block/mmcblk0p2 457.4M 37.1M 395.9M 9% /sd-ext
/dev/block/mmcblk0p2 457.4M 37.1M 395.9M 9% /data/sdext2[/COLOR]
/dev/block/vold/179:4
5.7G 21.4M 5.7G 0% /mnt/sdcard
/dev/block/vold/179:4
5.7G 21.4M 5.7G 0% /mnt/secure/asec

It shows my mmcblk0p2 ext partition mounted twice since I had to bind where it is mounted by the system to where Link2SD is looking. Mioze7Ae got it to work so I used his approach from post #490 and created a script inside /sd-ext/userinit.d/ to bind at boot so Link2SD recognizes the partition. The script below creates two directories if they don't already exist. /link2sd on /sd-ext(system mount point) and where Link2SD looks(/data/sdext2) which are then bound together:

#!/system/bin/sh
#
BB="logwrapper busybox"

if [ ! -d /data/sdext2 ]
then
log -p i -t bindext "/data/sdext2 not found, creating..."
$BB mkdir /data/sdext2
$BB chown system:system /data/sdext2
$BB chmod 771 /data/sdext2
else
log -p i -t bindext "found /data/sdext2"
fi

if [ ! -d /sd-ext/link2sd ]
then
log -p i -t bindext "/sd-ext/link2sd not found, creating..."
$BB mkdir /sd-ext/link2sd
$BB chown system:system /sd-ext/link2sd
$BB chmod 771 /sd-ext/link2sd
else
log -p i -t bindext "found /sd-ext/link2sd"
fi

mount --bind /sd-ext/link2sd /data/sdext2
if [ "$?" = 0 ]
then
log -p i -t bindext "/data/sdext2 successfully bound to /sd-ext/link2sd"
else
log -p e -t bindext "unable to bind /data/sdext2 to /sd-ext/link2sd"
fi

To give userinit.d and the script correct permissions:

chmod 755 /sd-ext/userinit.d
chown root:shell /sd-ext/userinit.d/Script_Name
chmod 750 /sd-ext/userinit.d/Script_Name

After reboot, the df -h command should show the ext partition as mounted at both /sd-ext and /data/sdext2
[Android Apps and Games] curiouso9:
Just format it using ubuntu disk utility.. make both partition as fat32 then edit partition 1 as partition magic type. Done.
[Android Apps and Games] pongscript:
this is great now we dont have to reboot after linking... i know this is late post, just want to share my gratitude and happiness to the creator of link2sd..
[Android Apps and Games] mfas:
Link2SD removes homescreen shortcut

Hi,

First of all thanks for a great app - this really helps on my X10 mini.

One thing I have stumpled on is, that when an app is updated in the market, and Link2SD has moved the updated app to sdcard, then the shortcut for my app has gone from my homescreen.

Is there any way to check for shortcuts on the homescreens when moving an app to sdcard, and re-creating it if it exists?

Again - thanks a lot for the app :-)

Kind regards,

mfas
[Android Apps and Games] josuearisty:
Backing up my partition!!

Well... its a little bit difficult but here I go!!

Excuse my english

1) Download this application EASEUS Partition Master Home Edition, I think is the best for our needs.

2) Im using FAT32, but you can create a EXT2 or EXT3 partition, but if create it you will need to install Ext2 IFS for windows to access in Windows because EXT2, 3 or 4 are Linux Partitions. Remember to create as primary.

3) Now install Link2SD and select the type of your partition, EXT2, FAT32, etc.

4) Move Apps to SD using Link2SD

This is the most important thing and why Im doing this little TUTO, to see you hidden partition and backup your EXT. If you find an easier way to do it, please let us know.

5) Mount your SD card as USB and open EASEUS Partition Master Home Edition You will see the partitions you made

6) Now you have to convert your the main drive (not your EXT partition) from Primary to Logical. Apply changes

If you want you can unmount and mount SD card again, I do it always.

Now go to your SD card on My PC, and you will see your files of your EXT partition. now you can back them up.

7) After you do what you wanted, convert it from Logical to Primary.

Thats what I did because I have a Cliq XT and recovery does not backup my EXT partition using Link2SD, just backup Apps2SD.

REMEMBER: Backup your SD files before doing this, that is if you do something wrong. After you do it the first time, it will be easy for you.

Do it at your own risk!!

You can try it first any USB flash disk if want, thats what I recommend you ;)

Im open to Any Questions!!

EDIT: I found an easier way. you dont have convert main partition from primary to logical :D:p:p:p:p:p have to make EXT2 or EXT3 partitions... I'll write something about it tonight
[Android Apps and Games] peshovec:
keeping shortcuts when linking

Guys,

I'd like to know if this works for you.

a simple (and ugly yet) way to preserve shortcuts, when "linking".

Prerequisites: More than one launcher:) ( i suppose, almost everybody has the stock home + a custom one). So let assume that you use custom launcher.

Please follow this steps and let me know if it works.

1. Update some apps.

2. Switch to stock launcher

3. "Link" the apps

4. Switch to usual launcher

5. Check if the shortcuts are intact and if they work as expected

p.s.

6. let me know:) (ok, as i know there is possibility for automatic launcher switch, so if this works it can be automated too:)
[Android Apps and Games] sw99:
Love this app. The main reason I use it is to move some apps and da vim cache to keep me from running out of space. I've had to move my dalvik-cache out of the /cache mount because it did not have enough free space. However, now I have entire empty /cache mount. I was wondering if you could add the ability to link files to the /cache mount in your next release. This would give the speed of internal memory rather than on then SD card.

Thanks a bunch.
[Android Apps and Games] lavero.burgos:
Hello i would like to know if i remove my sd card after linked my apps all the apps will be there when i put my sd card back to the phone, if not what can i do for recover the links back