Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Mount an NFS share on Android
# Mount an NFS share on Android
# Requirements:
# - Busybox
# - A kernel supporting nfs (either built-in or as a module)
# On my Nexus 7 2012 I use the following kernel:
# Remember: if you have problems of system space, simply delete some of the default stuff.
# Yes, we need to set permissive SeLinux in order for this to work
# At least on Android 5.0, obviously
setenforce Permissive
# Create the mount directory, if needed
# And actually mount what you need
# You can't mount to /sdcard/ but you CAN mount to /data/media/0
# Better mount ro, BTW
busybox mount -t nfs -o nolock,ro $REMOTE_URI $LOCAL_DIRECTORY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment