Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am using bluestacks appplayer beta with a rooted android, I want to redirect all writes and reads from one directory to another, how do I do that? I have a terminal available to put commands in..

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Make a bind mount (use busybox mount if the built-in mount does not support the --rbind option)

mount --rbind  /sdcard/shared /sdcard/whatsapp

You need to call this command on each reboot.

For a permanent solution, you can also replace the directory with a soft/hard link to the target directory:

mv /sdcard/whatsapp /sdcard/whatsapp_old    #rename if needed
ln -s /sdcard/shared /sdcard/whatsapp 
share|improve this answer
    
when the /sdcard/WhatsApp folder doesn't exist I get the error file does not exist (/sdcard/shared exists) and when I create an empty whatsapp folder in sdcard then it says link failed because file already exists, this is very confusing, what to do? (when doing the permanent solution) –  Gizmo Oct 31 '13 at 10:03
    
Update, retried and I get link operation not permitted.. :o –  Gizmo Oct 31 '13 at 10:05
    
Does the target folder need to be something other than NTFS? It's NTFS currently –  Gizmo Oct 31 '13 at 10:06
    
fixed :P forgot su –  Gizmo Oct 31 '13 at 10:13

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.