How can i mount folder from my linux machine as local folder to my android device using terminal emulator on my android device? I am using android 4.4.2 and my android device is rooted.
Asked
Active
Viewed 4,024 times
1 Answers
1
As you're on Kitkat with a rooted device, there's a question (with answers) on SO matching your need: How Can I Mount A Network Folder Into An Android Internal Folder? The exact answer requires your Linux machine providing the resource via Samba:
mount -o username=<user>,password=<pwd>,file_mode=0777,dir_mode=0777 -t cifs //<NAS IP Addr>/<share name> <mount point dir>
E.g.
mount -o username=guest,password=guest,file_mode=0777,dir_mode=0777 -t cifs //192.168.1.254/public /storage/nas/public
But it would certainly also be possible with other protocols, such as NFS, if your device supports it. If that's too complicated for you, you could use an app named EasySSHFS, which is available from the Google Play Store as well as via my F-Droid repo. That way you'd need neither Samba nor NFS, as an SSH daemon usually comes with your Linux distro by default (if not, you can easily install it from its default repos). EasySSHFS is compatible with Android 4.0 and up.

Izzy
- 91,166
- 73
- 343
- 943
mount: No such device
– user1800997 Oct 24 '18 at 06:47