How to mount nfs shares?
Added by Chuck Nutt over 10 years ago
I have some nfs shares on NAS I'd like to mount on my phone (Gt-N7000, Replicant 4.2.002). I see there is an Android app called CIFSManager, but it apparently is not Free Software because I don't find it listed in F-Droid.
I tried to use the normal GNU/Linux mount command, like
sudo mount -t nfs4 -o ro nfs-server:/users /home/users
Sorry to be so clueless. I am new to Android. Was using Maemo/N900 until yesterday. Really happy to have found Replicant.
Thanks in advance!
Replies (3)
RE: How to mount nfs shares? - Added by Paul Kocialkowski over 10 years ago
Try with busybox, perhaps it has support for that:
adb shell busybox mount -t nfs4 -o ro nfs-server:/users /home/users
Note that there is no sudo on Android, just su. If adb shell isn't running as root, make sure to run adb root
first.
It is also possible that NFS is not enable in the kernel: you would have to rebuild a kernel with support for it to have it working.
RE: How to mount nfs shares? - Added by Chuck Nutt over 10 years ago
Thank you!
That results in "device not found" each time.
Bungling along, I learned I should look at /proc/filesystems for something mentioning nfs but did not find anything. lsmod also does not come up with anything nfs-like, whereas on my wheezy system I get six lines with nfs mentioned.
So I guess I should learn how to compile a module? Can anyone recommend a site that explains what I need to do?
Thanks in advance.
RE: How to mount nfs shares? - Added by Paul Kocialkowski over 10 years ago
Please check out ADB for how to use ADB properly. If NFC is missing in the kernel, you'll have to build the module from the Replicant source code (add the proper options to the defconfig, then build with target bootimage and grab the modules from the system/ folder in TARGET_OUT).