Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

In order to increase free space on /data , I moved some 15Mb of application files to an ext2 partition on external SD card that is mounted on /data/HWUserData/mnt

Specifically, I moved

/data/data/com.opera.browser/lib/*

to

/data/HWUserData/mnt/lib

and symlinked.

This worked fine until reboot, as the SD Card partition is not mounted at boot time - The Phone now says that Opera is not installed.

Is there some way I can tell android to rescan, or redo what ever it needs to do to detect that opera is installed and integral once again after mounting the sd-card? Does it have to do with the dalvik cache?

Another issue/solution is getting the sd-card mounted at boot-time, I know, but that is not this question.

share|improve this question
    
Reading this discussion may help: android.stackexchange.com/questions/36779/… –  ArtemStorozhuk Apr 7 '13 at 18:41
add comment

1 Answer

From this XDA discussion:

Create a script in /etc/init.d to do it. You'll need to remount / to read+write first though.

And solution:

Thanks for your help! I'm quite firm in shell-operations, I just didn't think I could just put a script to /etc/init.d! :)

I'v created a shell-script named 07sdcard and with the content: Code:

#!/system/bin/sh rootrw ln -s /mnt/external1 /sdcard-ext rootro

Works geat! :)

share|improve this answer
    
As far as I understand, (and this has been my experience), any changes to / will be reset on reboot as the root image is unpacked. –  Keith Apr 7 '13 at 19:13
    
/etc is actually simlinked to /system/etc which will remain unaffected by a reboot, although, reinstalling/upgrading the ROM will most likely wipe out any customizations. –  bassmadrigal Apr 8 '13 at 1:02
    
Also, to add to the instructions. Once the sdcard is auto-mounted on boot, you can use other apps to help you clear up space. S2E is a great one, although, it is only officially supported on CM. Link2SD is a bit more to set up, but I think it supports many different ROMs. –  bassmadrigal Apr 8 '13 at 1:05
    
on the Huawei U8350 (Android 2.2.2) there is no /etc/init.d and no init scripts in /etc - the init scripts are in the root. –  Keith Apr 9 '13 at 12:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.