Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP kyva1929

21st August 2014, 04:50 AM   |  #1  
OP Junior Member
Thanks Meter: 4
 
29 posts
Join Date:Joined: Jun 2013
Hi,

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

Code:
/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
Code:
/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?

Edited:

I used an app called Folder Mount (requires root)

doing mount it returns the following for both normal user and root user:
Code:
/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
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes