mount -o bind valid for root only. Users do not see the mounts

30 posts
Thanks Meter: 4
By kyva1929, Member on 21st August 2014, 04:50 AM
Post Reply Subscribe to Thread Email Thread

My device is on 4.4.4:

I did the following as root

mount -o bind /system/test /sdcard/test

As root user, command mount returns the following

/dev/block/mmcblk0p12 /storage/sdcard0/test ext4 ro,seclabel,relatime,user_xattr,barrier=1,data=ordered 0 0
However, a normal user do not see the mount points being applied at all.

i.e. doing mount as a normal user does not return
/dev/block/mmcblk0p12 /storage/sdcard0/test ext4 ro,seclabel,relatime,user_xattr,barrier=1,data=ordered 0 0
How to make it such that normal user would see the mount options executed by root?


I used an app called Folder Mount (requires root)

doing mount it returns the following for both normal user and root user:
/dev/block/mmcblk0p12 /mnt/media_rw/sdcard0/UCDownloads/cache/com.UCMobile.intl/httpCache ext4 ro,seclabel,noatime,nodiratime,user_xattr,barrier=1,data=ordered 0 0
So it looks like mounting with this app does propagate the mount options to also the normal user and not just root user. How do I achieve this?

Edited 2:

Another observation:

Running the exact same command

mount -o bind /system/test /sdcard/test

on another device (4.4.4) works. Now this looks like a device specific issue (but still, folder mount works on the original device). I would really appreciate it if someone know a little about what could possibly be the reason here and share it here.

Thank you.
Last edited by kyva1929; 21st August 2014 at 05:42 AM.
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