Cannot mount file system that works with smbclient
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cifs-utils (Ubuntu) |
Fix Released
|
High
|
Dave Walker |
Bug Description
smbclient -U guest -N "//server/share location"
works fine, but:
$ sudo mount -t cifs -o guest "//server/share location" /mnt
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
dmesg only shows the same error again:
[111147.812171] CIFS VFS: cifs_mount failed w/return code = -22
I have also tried using a user name, with the same success with smbclient, and the same error with mount.cifs.
This used to work under natty. I can find references to a problem with the 3.0 kernel, but I've tried it on an oneiric machine with the latest natty kernel, and get the exact same error.
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: cifs-utils 2:5.0-1ubuntu2
ProcVersionSign
Uname: Linux 3.0.0-14-generic x86_64
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Tue Dec 13 19:27:05 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
SourcePackage: cifs-utils
UpgradeStatus: Upgraded to oneiric on 2011-10-07 (66 days ago)
Changed in cifs-utils (Ubuntu): | |
status: | Triaged → Fix Released |
I'm seeing what may be the same bug (although my error message is different) in Ubuntu 12.04.
smbclient connects immediately:
sudo smbclient //pc1n7i01d03. us.dell. com/dttuatnas2 -A /etc/.smb_creds.txt
But mount.cifs fails (with "mount error(13): Permission denied"):
sudo mount.cifs //pc1n7i01d03. us.dell. com/dttuatnas2 /mnt/ -o credentials= /etc/.smb_ creds.txt
my credentials file is formatted as follows (with the proper values, of course) and both smbclient and mount.cifs were instructed to use this file:
username=mynamehere
password=password
domain=MyDomain
I remember on a previous occasion (http:// ubuntuforums. org/showthread. php?t=1420895) having resolved a similar problem by including a mount option "noserverino". I've tried that to no effect. I've also tried "sec=ntlmv2"
The syslog contains this message in response to each failed attempt:
CIFS VFS: cifs_mount failed w/return code = -13