yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] ravilov:
Hello,

Sadly, I'm having issues with this app. I apologize if this has already been answered/discussed, but I really can't go through 80+ pages of posts... :(

So, here's the thing. I already have my ext partition created and auto-mounted by the system (I use it for much more than just extended app/data storage), so therefore I don't need Link2SD to do this for me. So when L2SD tries to do that, it fails with "device or resource busy" (not so unexpected). However, L2SD should be able to detect that, or at the very least detect the presence of the /data/sdext2 directory (which I symlinked to /sd-ext), and not keep trying to enforce its own mounts/auto-scripts/whatever. This way, I'm left with a relatively useless app - all it does is list the apps and allow basic app management, but it can't do what it's supposed to do - I can't link apps to SD because the button is disabled, and there appears a message saying "mount failed".

So is there any help with this? I would really prefer Link2SD to *not* mess with my bootup scripts, I prefer to maintain these myself. Any ideas? Symlinking /data/sdext2 to /sd-ext obviously doesn't work, would bind-mount help?

(And yes, before someone asks, my ext partition is indeed mounted on /sd-ext, I know because, like I said, I use the partition for my own purposes too.)
[Android Apps and Games] shaunbu:
Yes a bind mount should work.

mount -o bind /sd-ext /data/sdext2
[Android Apps and Games] shaunbu:
Thought I'd got it but /data/sdext2 was mounted ro(read only) so Link2SD couldn't use it.

Figured out this was because when I did the bind mount /system was still ro. So I added the command to remount /system rw before the bind mount. So this is what I've added to /system/etc/hw_config.sh

mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
mount -o bind /system/app2 /data/sdext2

WARNING: Check where your /system is mounted its /dev/block/mtdblock2 on mine but might well be /dev/block/mtdblock3 on yours. Use the mount command in terminal to check. If you put the wrong value it will brick your phone and you'll have to restore!

Yes its still linked after a reboot.

Yeah I'm glad I found this out, will be adding many more commands to it now. :)

To the guy who said /system/etc/hw_config.sh doesn't exist on his system, what other .sh files exist in /system/etc? Try editing some of those (ones with bt in the name might be for bluetooth so don't edit them was only executed when I turned bluetooth on for me)

Big thank you to everyone who helped me figure this out! (And for making the app of course)
[Android Apps and Games] ravilov:
Well whaddaya know - it worked! :)

Stupid me, should've thought of that before... :embarrassed:

Also, I took it a step further - I created a directory on the ext partition and bind-mounted that instead of the ext partition's mountpoint directly.

mkdir /sd-ext/link2sd
mount -o bind /sd-ext/link2sd /data/sdext2

So now Link2SD has its own dedicated storage space on the ext partition. :D

EDIT:

Umm, I don't want the Link2SD stuff to go to /system. :eek:

So I'm perfectly okay with /system being ro, in fact I prefer it that way (less chance of something/someone doing bad things there).

Now all the Link2SD stuff goes to my SD card, which was the whole point. :)

Also, AFAIK, if the target filesystem is rw, it shouldn't matter that you're bind-mounting it to a mountpoint that's on a ro filesystem...
[Android Apps and Games] MongooseHelix:
shaunbu is using /system because his phone strangely allocates lots of extra space there and he doesn't have an ext partition as far as I know but still wanted to use the GUI and capabilities of Link2SD.

I have been bind mounted to a folder on /sd-ext also which makes is nice and clean since all of the apk files aren't just sitting on the base of /sd-ext. Come to think of it bakpinar, you might consider having Link2SD automatically create a folder on the 2nd partition(only needs to be done the first time) once it has been mounted to store the linked apps.
[Android Apps and Games] ravilov:
Ah, I see. Thanks for the explanation.

That would indeed be nice, but only in cases where the ext partition is not mounted previously. In my particular case, I already bind-mounted the specific directory, so no point in creating another level of directories (ie. no point in having /sd-ext/link2sd/link2sd/*).

Also, I think an option to link the data folders (/data/data/*) to SD as well would nicely complete the abilities of this app. :)

Shouldn't be too hard to do IMO, just another checkbox in the interface (similar to "Link dalvik-cache file too", so something like "Link data folder too"), with the exception that system app's data folders can be linked too, and a folder structure in /data/sdext2/data/* to match whatever app is being linked. And then of course a symlink, from /data/sdext2/data/com.some.package to /data/data/com.some.package. I have just manually linked a few data folders like that and no problems so far, so clearly it works. :)

EDIT:

Excuse my confusion, I've only just noticed this is the GT540 forum, while I actually have the HTC G1/Dream. :(

What can I say, I'm new around here. :o

Hope that's not a big problem though, what I'm talking about is application-specific and should therefore be relevant to all phones.
[Android Apps and Games] punisher1:
nobody knows ?
[Android Apps and Games] shaunbu:
You will need to root every time you want to use the app so perm root would be better. But I can see no reason for apps you link with root to get unlinked when you lose it (until they get updated).

Yeah I didn't want to use my SD card cos its only class 2 and I have loads of space on /system being wasted. Sorry if my posts are confusing ppl. Dunno how many other phones this applies to.

(Also got about 1/3 ram not available but mounted at /dev (I think its ram disk anyway), just need to figure how to use that now. Yeah can't wait til my bootloader gets fully unlocked and I can use this phone to its full potential!)
[Android Apps and Games] rignfool:
From what ive read on the subject... sd card class only affect minimum data transfer rates... i only use a class 2 card... with little problems... (i think slacker radio gets angry about it)
[Android Apps and Games] mohsin2cool:
are we getting new update from u...

so many thanks fr ths one..

looking fr new version.. coz it still uses some of ur phone memory.. bt indeed a good job...
[Android Apps and Games] tong5563:
thx dude.....
[Android Apps and Games] Ricopoulos1:
link2sd

My question is: when I have installed link2sd and it works, can I unroot the phone?

thanks in advance Ricopoulos1
[Android Apps and Games] ashu258:
Thanks a lot man.. from last few days, i was trying 2 do the complicated procedure of installing app2sd but didnt succeed.

And now this charming app did the job in just couple of minite. currently i have installed 20+ apps and moved them all to sd. and still 139MB of phone memory is free.

Thaaaaaankssssssssss again.

works perfect on galaxy 5 GT-i5503.
[Android Apps and Games] lavero.burgos:
help needed. i love this app

Hello is there a way i can make this app work with the latest 2.3.3 v1.8 of Mur4ik because i am getting mount script error, i have been trying with ext2 and fat32 as 2nd partition but with no luck. it works perfectly well in custom 2.1 i had. please help i really like this app because when i move my apps to sd it keeps the widgets with app2sd normally it wont let me use them, they dont even appear

LG GT540

and +1 for the dev, very good work!
[Android Apps and Games] Ricopoulos1:
link2sd

My question is: when I have installed link2sd and it works, can I unroot the phone and does link2sd continue working? I dont like to have a rooted device cause virusattaks from the internet.

thanks in advance Ricopoulos1
[Android Apps and Games] MongooseHelix:
What type of mount error are you getting and which script is causing the error, /system/etc/install-recovery.sh? If you can, attach the script file here that gives the error and a logcat showing the error.
[Android Apps and Games] MongooseHelix:
For Link2SD to work, you will need to be rooted whenever it needs to do any linking/unlinking actions like moving an app to sd, moving app back to internal from sd, updating link when app is updated from the market, or removing a link for a linked app that was uninstalled.

As for rooting in general, it doesn't necessarily make the phone less secure given that the superuser app will let you know anytime something requests root access and you have to make the decision to allow it or not. As long as you aren't blanket accepting each request superuser presents you with, then there's no reason to think the phone is less secure while rooted.
[Android Apps and Games] weslyr:
Has anyone got this working with the latest cyanogen7?

It still cannot find my second partition (not matter which format i try).
[Android Apps and Games] MongooseHelix:
Does your second partition get mounted but Link2SD doesn't recognize it? My ext2 partition gets mounted by a script names 05mountsd in my /ect/init.d directory but then, like some others, use another script to bind the directory Link2SD is looking for(/data/sdext2) to a folder on my ext2 partition(/sd-ext/link2sd). The command I have in my 05mountsd script to mount the ext2 second partition of my sd card is:

mount -o noatime,nodiratime -t ext2 /dev/block/mmcblk0p2 /sd-ext;

Then, I have a script inside /sd-ext/userinit.d to bind mount /sd-ext/link2sd and /data/sdext2 together. That command is:

mount --bind /sd-ext/link2sd /data/sdext2

This script gets run by the /etc/init.d/20userinit script. You must also make sure that those two directories exist before binding together and if not, mkdir them. For me, Link2SD works once I've done that but YMMV.
[Android Apps and Games] MongooseHelix:
Try booting into recovery and then running e2fsck on your ext2 partition by running the following in adb shell:

e2fsck -f /dev/block/vold/179:2

That error could be caused by a corrupted partition so if e2fsck doesn't make any headway I would suggest backing up the files you have on your sd card to your computer and then reformat/repartition. Then see if Link2SD can mount the ext2 partition to /data/sdext2
[Android Apps and Games] mycroart:
help me!

help!

I can't mount 2nd partition. I followed the instruction. Here the step I did.

1. I installed universal androot 1.6.2 beta 5. Then root my galaxy i5503.

2. Installed titanium backup and get busybox.

3. Installed link2sd 1.5.5 and partitioning my 2GB card into 1.3GB FAT32 first then about 500MB FAT16 on the 2nd.

4. I restart the phone but it still can't mount the 2nd partition automatically.

Did I miss some step? or my phone is not supported?

Sorry for my bad english.
[Android Apps and Games] bakpinar:
Hi all, I have been extremely busy so the new release will be late a little bit.

I work on this in my spare time and sometimes, it's hard to find time. ( I have a full time job, twin girls and a wife )

Anyway, I'll try to finish all the requests thought, here is the my "todo" list

- linking data directory. This is almost finished, but there is an issue when updating the app, @ravilov did you try to update the app after linking data directory?

The issue is that installer can't create cached shared lib if shared lib dir is linked, I found a workaround and testing it...

- automatic linking when you install a new app (will be optional).

- multi select and multi link / unlink / reinstall? / uninstall?

- backup / restore apps (for swapping SD card or installing new rom)
[Android Apps and Games] lavero.burgos:
sounds great +1

can you help there are some with the latest CM7 of MUR4IK that cant make this app work including me. we get a mount script error. i have tried with ext2 and fat32 as 2nd partition but same thing
[Android Apps and Games] bakpinar:
What is the full error message you get?
[Android Apps and Games] MongooseHelix:
Does Link2SD recognize the 2nd FAT partition and ask you to specify what format it is but then can't mount it or is the partition not even recognized?
[Android Apps and Games] MongooseHelix:
Having a busy life outside of Link2SD is certainly understandable and should take priority. I know I am very satisfied with the functionality already so anything else is just a bonus. Also, I think moving this thread to the more general "Android Development and Hacking" -> "Android Apps and Games" forum would allow for many more people to hear about and use this great app but understand if you want to keep it here in the GT540 section.
[Android Apps and Games] szabof1:
Hi/Szia,

The second partition must be "primary". MiniTool default is "logical", so you must change it to primary!

Check this writing on this topic (it's in Hungarian): http://androidunderground.info/mithogy/579-programok-sd-re-telepitese-android-21-22-alatt-app2sd-es-tarsai?start=1
[Android Apps and Games] lavero.burgos:
"Mount script cannot be created.

mount: mounting /dev/block/vold/179:2 on /data/sdext2 failed: Invalid Argument"

thats in CM7 v.18 by Mur4ik , in 2.1 i have no problems with this app

Link2SD recognize the partition and ask me to select the format ext2 , 3. 4. fat32/16 but then i get the mounting error

I have first and second partition as primary and swap s 3th partition

I hve tried with ext2 and fat32 format but same not working
[Android Apps and Games] bakpinar:
Can you post outputs of the following commands.

mount

cat /proc/partitions

ls -l /dev/block/vold

And also can your run these

mount -t ext2 /dev/block/vold/179:2 /data/sdext2 (if your 2nd partition is FAT32 write "-t vfat" instead of "-t ext2")

mount -t auto /dev/block/vold/179:2 /data/sdext2
[Android Apps and Games] mycroart:
Yes. It asking to specify the format and tell me to reboot. But it's looping, after rebooting it asking the same question again.

The 2nd partition is recognized but can't be mounted at boot.
[Android Apps and Games] nikctsh:
Dear bakpinar , glad to hear that you are on your way to release the new version soon . I have a question , regarding the broken permission . Since you said that the application force close is due to broken android permission at boot time right ? So i have been searching up and down and finally i found that rom manager has a fix permission option . So i have installed busybox and tried it , however , though it did run , after completed it requires me to reboot , but after i reboot , those application still force close . Recently , i have found another application that can fix permission , that is the root tools . I was kinda worried to test it because i will have to "ruin" the whole application purposely . If failed , then again , just like i did with the rom manager , i will have to reinstall again . Is there any likelihood for this to work ?
[Android Apps and Games] bakpinar:
No, the only way (as far as I know) is re-instaling the app.

The issue is that, if an app can not be found by the package manager at boot time its permissions become missing.

Even if it is avaliable for subsequent boots the permission problem continues and only re-installing repairs.

Monitoring adb logcat while the phone is booting shows what is going on;

/data/system/packages.xml file, which stores which apps are installed and which permissions they have, shows:

as you can see the permissions block is empty. But it should be like this:

I tried manually editing it but packages.xml always returned to this state.

What fixes it to re-install the application.
[Android Apps and Games] nikctsh:
Oh i see...thanks for your reply
[Android Apps and Games] timpoldo:
Great app!|

@bakpinar

If i decide to shift to a modded ROM with 2.3, can i continue to use Link2SD? Works?

Link2SD move also devlink-cache... i don't think that 2.2 or 2.3 move also this dir to SD... right?
[Android Apps and Games] bakpinar:
Thanks.

You can continue to use Link2SD, it works on 2.3.

You're right, native app2sd (2.2+) does not move dalvik-cache files, only apk files.

The good news is that Link2SD will move data files along with apk and dex files in the next version.
[Android Apps and Games] sasa g:
The good news is that Link2SD will move data files along with apk and dex files in the next version.[/QUOTE]

That's good news.

Great app.

TNX
[Android Apps and Games] 9inch:
And when to expect the new version?
[Android Apps and Games] von0304:
Thanks for your good job! It's running perfectly on my ZTE-C R750（android 2.1）.

But there is something puzzle me，I've got most of my apps link2SD，except keep some tool apps such as z4root/Root Explorer/TitaniumBackup/SystemApp Remover/Widgetsoid/LauncherPro/Lookout/ATK and Link2SD itself still remained in internal storage. Because I saw somewhere that it would cause unstable when make tool apps App2SD.

Does Link2SD have the same question？Is there any type of apps should you NOT suggest to link to SDcard？Or they all can be linked？
[Android Apps and Games] gets0ul:
I have all my apps linked including TitaniumBackup and Root Explorer. I do not have any problem with that. Well, I hope I won't get any :-).

The only exception is the Link2SD itself, I put it on sd card with Froyo's app2sd.
[Android Apps and Games] nders:
my friend's Desire, after selecting ext3 from link2sd, showed the error "not enough memory to generate mount-script" or something, any idea?
[Android Apps and Games] bignick13:
Cannot install large apks

Hi,

Cheers for app, works great on GT540 v2.1.

However, I cannot reinstall angry birds (or seasons) after removing it to make room for z4root, link2sd, etc.

I get the 'out of space' error even though I have over 5oMB free space. Can install other files of 9-10mb no problem.

Everything else seems fine, and there are a couple of mentions regarding link2sd having problems with large files.

Any advice would be appreciated.

Cheers,

Nick
[Android Apps and Games] nikctsh:
Well , i think every android phone will have such problem , as well as me . This is because the application need to be unpackaged before it can be installed , and the problem is , the unpackaging process consume a lot of phone memory , temporarily . That's why you will still receive the message "out of memory" though you did have enough memory to reinstall the app . The only way you can do is redownload the application from the market ( it will not experience the problem that you mentioned earlier ) , or by free up more space on your phone ( this is quite annoying ) . It isn't the problem of link2sd as if you use appsaver to make a backup of that app on your sdcard and install it manually , the result will definitely be the same .
[Android Apps and Games] dpaine88:
Hey all, this app looks awesome but I have been trying for several hours now and still running into issues.

Orgininal Droid, Project Elite 4.2 with Deprimed Kernel.

Everything works fine, except when I reboot. I must hit the "Hot Reboot" option in the Links2SD options. Then, everything works fine. Otherwise, I cannot see all my apps that are linked.

I do not have a "05mountsd" file in my /init.d

All I have related is "11link2sd"

Any help would be awesome!
[Android Apps and Games] JoeArny:
Hi guys I'm experiencing the following error:

I saw more people with the same, but unfortunately nobody points any solution.

Anyone here had solved it?! What can I do?!

Thank you very much guys!!! :)
[Android Apps and Games] nolek19:
HTC Device?

Maybe this could help: http://xdaforums.com/showthread.php?t=794314

Link2SD didn't work on my HTC Desire (same error msg) until I made a S-OFF.
[Android Apps and Games] bakpinar:
Hopefully I can release a new version by the end of next week. It will be version 1.6.0.
[Android Apps and Games] bignick13:
Cheers nikctsh,

I finally thought of the same idea late last night and it worked perfectly, and just read your reply this morning. All my apps are legit, so market download wasn't a problem.

FYI I was trying to reinstall from appmonster backup.

Again, thanks to dev for the awesome app. Can finally have a decent offline navigator and more than one decent game installed at the same time!
[Android Apps and Games] elcede:
Hi all.

I have a problem. I have switch my sd card in to my friend's phone, and when android starts it boot my second partition where I have all my linked apps, link2sd say that it could not find another partition. How to make it boot from normal partition. Both my partitions are fat32 and both phones are se xperia x10 but different roms.

How can I fix this?
[Android Apps and Games] Pajallen:
I'm running LINK2SD on my OG Droid running CM7 (36) and latest deprimed kernel (33). I have no problem with apps not showing up, but if I try to enter USB storage mode, the FAT partition never shows up on my PC. I can still run the apps on my ext partition so that's staying mounted. This was not a problem before partitioning and running LINK2SD so it seems related. Any ideas where I should begin looking?

Thanks.

PAJ

Update: This happened at work and I found my drivers had been removed (not company approved software). All is well now.
[Android Apps and Games] lavero.burgos:
hello i need help this is the last place i can ask for help as i havent found a solution. My sdcard Sandisk 16gb stoped working i have tried everything windows recognize it but says cant format it, i have tried with many tools from sdcard.org, HP usb formatt tool, and so but nothing . i also have tried with command diskpart but at first did not recognize disk1 then i tried again and recognized it but with a huge size 2054 GB??? and tried command clean i got an error , tried command create partition 1 got an error again. Everything started when i removed the sdcard when the phone was off then turned it on placed the sdcard and since then doesnt want to work :eek: gave me the option to format but did nothing. i even tried placing it in a camera with a sdcard adapter.

PLEASE HELP!!!
[Android Apps and Games] trixie52:
hello! Is there anyway you can fix this app for Samsung i5503 galaxy 5 (eclair)? thanks in advance. i'll be waiting for the next update.
[Android Apps and Games] Kierrok:
I think bakpinar would like to know what needs to be fixed...
[Android Apps and Games] nikctsh:
Perhaps you can try minitool partition wizard . Instead of format your sdcard , you can just simply resize your current partition and make a new one as well . I loss none of my data stored in sdcard by using that software .
[Android Apps and Games] dueltothedeath:
Link2sd

Any chance someone could help me?

The only way my fat23 partition will mount using link2sd is having 13 apps linked

using app2sd.

If I move 1 more app to phone storage and go back to link2sd it says second partition not found on sd card..

Am I the only one that has run in to this problem?

Why must i use app2sd to use link2sd?:(
[Android Apps and Games] curiouso9:
Trixie52, Lol. Its not because link2sd, but it eclair G5 prob. U need to edit system setting so it given more time on boot to detect 2nd partition. Just use motafoca 2.0.9.2 rom, all will works. Go to www.g5devteam.com
[Android Apps and Games] roninxt:
You don't need app2sd. Looks like you made the wrong setup. You need to have a 2nd partition and specify the filesystem on the first run of link2sd. If it can't find the 2nd partition then you need to repartition.

If you are using fat32 on your sdcard, try to make the 2nd partition ext2, ext3 or ext4 depends if your phone supports it.
[Android Apps and Games] rignfool:
So... since you put the auto ask thing in... i can no longer install something i wanted to keep on internal memory... it was "installing" a 800kb program overnight... had no problem installing something to sd... i had to delete the program
[Android Apps and Games] enotar:
Anyone find a solution for the X5A

Stuck on formating the card and it is not recognize by the tablet after creating the second partition.

I tried /dev (have some space there)and it works until reboot where links are gone

I tried /nand and the same happend, tried repartitioning 2gb /nand but couldnt.

any ideas?

Thank you
[Android Apps and Games] bakpinar:
I saw this in the market comments.

I will change the script for Samsung in the next release.