Announcements

ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such softwareNintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)CUSTOM ROMS You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)ROMs must give full credit to the original authorISSUES If you have any issues with this policy, please contact PaulOBrien directly via PM.

Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspension / ban.

Share this post

Link to post

Share on other sites

I have always used link2sd, no reason why, it just seems to work without a problem, and I have quite a few apps installed and loads of space available

Andrew

Thanks, I'll give it a try, seems link2sd needs special preparing and is quite advanced:

"What you need:

- root permission.

- a second partition on your SD card.

You should have two partitions on SD card and both should be primary.

The first FAT partition is your standard SD card storage. The second partition is used for application files and can be ext2, ext3, ext4 or FAT32.

Some phones lack the ext2, ext3 or ext4 file system support and you may get mount errors like "no such device", "invalid argument". These phones need ext2.ko or ext3.ko modules and even some additional modules to be able to mount. Using FAT32 on the second partition will eleminate such problems, because FAT32 is supported on all phones.

Link2SD does not create the second partition, you need to create it yourself. You can use any partition manager such as Minitool, Paragon, Easeus etc. for this."

Share this post

Link to post

Share on other sites

Is there a way to add an app manually in SuperSU? It doesn't ask me for root access... tried uninstalling and re, but nothing.

Link2sd app is very advanced, but it is fighting me, I get an error saying it cannot get root access.

Tillaz, I relied on the Auto setting, and it did put a lot of apps on sdcard by default.

Link2SD can be used to freeze/ unfreeze apps. Also to do a backup between ROM changes:

Q. I upgraded/changed my ROM and I can not see my linked apps, their files are on the 2nd partition but the system can not see the apps. How can I make them available, do I need to reinstall and relink them again?

No, if you didn't wipe data when updating ROM the only thing you need to do is to run "Recreate mount scripts" from "menu -> more" within Link2SD and do a normal (not quick) reboot.

If you wiped data, after executing "Recreate mount scripts" and rebooting, run "Relink all application files" from "menu -> more" and then reboot. All of your linked apps should be available again after reboot.

If you also wiped dalvik-cache, in addition to the above step run "Link dalvik-cache files".

Also, for all those using Link2SD, these 2 points are also worth noting:

Q. Library files that I linked get unlinked after restarting my phone, why?

On Android 2.3 and 2.2, the links to the lib files are being lost after rebooting because the PackageManager service unpacks all native libraries from the apk files at boot time.

You can use "relink lib files at boot option" as workaround.

Link2SD does not link application's private data files that are located in /data/data directory, they remain in the internal storage. Thus each app you install will still have some data on the internal storage so you can still potentially fill up your internal storage even if you are moving all of your apps over.

Share this post

Link to post

Share on other sites

I've binded /HWUserData to /data/sdext2 and used link2sd to move the apks. This way you can use that internal storage... Works pretty well.

How exactly did you do that? I've just tried and it seemed to work but after I rebooted it forgot about the test apps I'd moved across even though they were still there. Maybe I've missed something.

EDIT: Looks like links2sd never creates a startup script because it doesn't find the second partition. Could someone please post a copy if the links2sd script that runs at boot so I can manually create a modified version..

Edited 21 Jul 2012 by Hogweed

0

Share this post

Link to post

Share on other sites

I did not launch link2sd to let it create the start up script. I just created the sdext2 directory in /data and then created a script in init.d that says: mount -t vfat -o bind,rw /HWDataUser /data/sdext2. Reboot the phone and then you can launch link2sd. All linked apps will go to the internal sd card...

0

Share this post

Link to post

Share on other sites

I was running my bind mount script from ROM Toolbox script manager with run at boot option. All I used was mount -o bind /HWUserData /data/sdext2 which I think should be good enough. Certainly it worked fine until the reboot. Maybe ROM Toolbox runs the script too late. I'll try it in init.d later.

I thought i might have been to do with not relinking lib files in the script but if you don't need that then that can't be it. Thanks for the info.

Share this post

Link to post

Share on other sites

Ok simply putting the bind script in init.d seems to have done the trick and my moved apps now survive reboot. I can't find any scripts crested by link2sd itself. Where does it normally create them and what are they called?

If I try to recreate the boot scripts I get an error "second partition not found" - which is correct as I don't have one. However everything does seem to be working.

Edited 22 Jul 2012 by Hogweed

0

Share this post

Link to post

Share on other sites

No need to recreate the scripts as you already created your own. I found out that link2sd creates three mount scripts: install-recovery.sh in /etc, debugd in /system/bin and another one in init.d. If you have your own script in init.d you don't need any of those...

Share this post

Link to post

Share on other sites

What we are doing is using the internal 2GB logical "SD" as the partition for link2sd instead of a second partition on the external SD card. So now I have an extra 2GB of space to install apps. They will be backed up by CWM and I can format or change the real physical SD card without losing the moved apps.

Share this post

Link to post

Share on other sites

Anyway, did you any of you guys encounter random reboots on the Atomicmod if you use it? I've installed this rom on two phones and both of them have this issue. One random reboot in two-three days...

I'm running Paul's Gr2 ROM so I can't comment on Atomicmod. Never had a random reboot since I installed it (touch wood!) . I did have one random reboot while on stock B885 IIRC. I also restored my stock B885 and updated to B892 then restored my Gr2 backup so I could get the low level firmware fixes. I no longer have the slight screen misalignment I used to have.