Joe Healey
Joe Healey

Reputation: 1252

mount error(95) cifs-utils on ubuntu 12.04

I can see a lot of these threads, but so far nothing has worked and it seems to be something cryptic that I'm at a loss to figure out.

I have the same problem as described here roughly. I have 2 servers, both Ubuntu, but 1 on 12.04 and the other on 14.04.

I'm mapping an SMB shared drive from my university's infrastructure, but it works on 14.04, and not on 12.04.

I have the highest version of cifs-utils installed on each that I can (2:6.0-1ubuntu2 on 14.04, and 2:5.1-1ubuntu1 on 12.04).

On 12.04, for the command:

sudo mount -t cifs "//foo.bar.warwick.ac.uk/HCSS1/Shared291/" ~/petabyte/ -o username=username,password=******,domain=ADS

I get the error:

mount error(95): Operation not supported
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

All the suggestions I can find so far suggest that the sec or ver should resolve any conflicts that seem to arise from old/unsupported SMB protocols - and this is what the sys admins at Uni think is the problem too, since they've said the servers are set up to reject SMB1.

However, I've tried the command with sec=ntlm and ver=3.0, and it makes no difference. Meanwhile on the 14.04 server, ver=3.0 works fine.

The mismatched server versions/cifs versions might be a total red herring, but I am running out of other ideas as to what the problem could be.

Upvotes: 2

Views: 5824

Answers (1)

tukan
tukan

Reputation: 17345

Too long for a comment so it maybe as well an answer:

The smbmount is a utility that mounts smbfs (internally calls smbmnt). It should not need any record in /etc/fstab. The utility actually calls mount.smbfs (-t smbfs). You are right about that it has been superseded by mount.cifs, but I wanted you to test it if that would work for you. My guess is that you are actually having issues with the newer SMB protocol (as you have probably guessed). Could you check if your package on Unt 12.04 supports (NTLM auth & the newer version of SMB protocol?).

My guess now is that you maybe have an old kernel with 12.04. Which kernel version do you use?

If they reject SMB1, it could be they allow SMB2. Could you try the following?:

sudo mount -t cifs "//foo.bar.warwick.ac.uk/HCSS1/Shared291/" ~/petabyte/ -o username=username,password=******,domain=ADS,vers=2.0 

(vers not ver)

Upvotes: 1

Related Questions