I tried this command:
mount -t cifs //server/share/directory /mnt/directory -o credentials=/path/to/cifs.credentials --verbose
mount.cifs kernel mount options: ip=<IP of server>,unc=\\server \share,user=<username>,prefixpath=directory,pass=******** mount error(2): No such file or directory Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
However, if I try the same command without the prefix path:
mount -t cifs //server/share /mnt/directory -o credentials=/path/to/cifs.credentials --verbose
It works, and I can access /mnt/directory/directory.
I get the same error if I specify the prefixpath explicitely in the options, i.e.:
mount -t cifs //server/share /mnt/directory -o credentials=/path/to/cifs.credentials,prefixpath=directory --verbose
- I am able to connect to the desired path using
smbclient //server/share -U username -W domain -D directory
- mount.cifs version: 5.5
- Debian kernel 3.2.0-4-amd64
- I am able to connect on another machine using mount.cifs version 4.5 on Debian kernel 2.6.32-5-amd64
Any ideas why the prefixpath seems to cause a problem? This same path had been working recently; I suspect an update to a package on the Linux side or a Windows update is behind the new behavior.