Sign up ×
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.

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

1 Answer 1

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.