I've just literally spent about 2 hours trying to simply mount a windows share on linux.
Mounting with cifs
causes deadly hangs as discussed here.
So I tried to mount via nfs
as discussed in this page.
I spent a few minutes searching the nfsshare
program, until I realized I had to install Unix Services for Windows.
After downloading the huge file, I was deterred by Microsoft's scare tactic: this program has known compatibility issues
, and the subsequent, setup has detected that a required System Service (TCP/IP) is not currently installed...
This is even after I enabled the Simple TCP/IP services from Turn Windows features on or off
.
Running
$ sudo mount -t nfs 192.168.1.76:myshare ~/mount3/
on Debian unfailingly gives me:
mount.nfs: access denied by server while mounting 192.168.1.76:myshare
Even though I've opened read, write, full to everyone under windows for the share in question.
$ sudo showmount -e 192.168.1.76
usually gives me:
rpc mount export: RPC: Procedure unavailable
or sometimes:
clnt_create: RPC: Unable to send
I tried using freeNFS.exe
, while still getting the access permission error on Debian. I tried using haneWIN
, which fails with Failed to start PortMapper
.
autofs
or just unmounting withumount -fl
as shown in the accepted answer. I mount various things with cifs and have no issues with it.autofs
will mount an export only when it is accessed and automatically unmount it after a time of inactivity. The Ubuntu docs on that are not bad.