Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i am using samsung s2 and a custom rom, external sd card is mounted to /emmc but i want it to mount to /mnt/sdcard/external_sd, how could i mount it using init.d?

i made a file called "99mount" with a the content

mount -o bind /emmc /mnt/sdcard/external_sd

however, it isn't being executed an start tried also

busybox mount -o bind /emmc /mnt/sdcard/external_sd

and no luck, do i need to add 99mount to some xx.rc file?

share|improve this question
Would creating a symbolic link from /mnt/sdcard/external_sd to /emmc work for your purposes? – Matthew Read Apr 18 '12 at 19:58

Your SD card isn't prepared at the time that the bind command is executed, because the mounting process hasn't ended yet. To bind, you have to wait several seconds for the mounting of SD card & external SD to be finished.

sleep 10    
n="$(dumpsys mount | grep -c 'external')"    
until [ $n -eq 1 ]    
sleep 1    
n="$(dumpsys mount | grep -c 'external')"    
mount -o bind source target

Note: n="??" is changeable by according to your own system.

share|improve this answer

Your Answer


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.