[Q] How to create a symlink on every reboot?

326 posts
Thanks Meter: 112
By McDV, Senior Member on 22nd August 2011, 02:29 PM
Post Reply Email Thread

I'm using the Tiamat Custom ROM and am facing the problem, that the external SDcard is mounted on /mnt/external1 and symlinked to /MicroSD. But I'm using an app that needs it mounted on /sdcard-ext.

Now I have remounted / and symlinked /mnt/external1 to /sdcard-ext and that works until my next reboot (the symlink isn't reboot-proof ;) ). Now I'm searching for a way to automatically create that symlink on each reboot.

Can anyone help me?

Thanks guys! :)
22nd August 2011, 08:47 PM |#2  
solarnz's Avatar
Retired Recognized Developer
Flag Sydney
Thanks Meter: 2,127
Donate to Me
Create a script in /etc/init.d to do it.
You'll need to remount / to read+write first though.
23rd August 2011, 06:21 AM |#3  
Senior Member
Thanks Meter: 5
PM me if you need help setting this up -- its really easy to do. You need to name your script with a specific run level (I believe).

I've done this on my phone to set up swap partitions and the like. Its really easy!!!
23rd August 2011, 07:42 AM |#4  
OP Senior Member
Thanks Meter: 112
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:
ln -s /mnt/external1 /sdcard-ext
Works geat! :)
24th August 2011, 02:28 AM |#5  
Senior Member
Thanks Meter: 5
You've got it now -- awesome.
28th August 2011, 11:29 PM |#6  
fokus's Avatar
Senior Member
Flag Rheine - Germany
Thanks Meter: 46
Could this be a way to mount the external1 as rw at boot ?

See here:
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes