Cifs mount fails with "failed w/return code = -22"

Solution Unverified - Updated -

Issue

  • CIFS mount fails with "failed w/return code = -22"
[root@example-kudryavka ~]# mount -t cifs -o rw,username=testuser //kudo-server/logs /mnt/kudologs
mount: wrong fs type, bad option, bad superblock on //kudo-server/logs,
  missing codepage or other error
  In some cases useful info is found in syslog - try
  dmesg | tail  or so

[root@example-kudryavka ~]# dmesg | tail
fs/cifs/cifsfs.c: Devname: //kudo-server/logs flags: 0 
fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 10 with uid: 0
fs/cifs/connect.c: Domain name set
fs/cifs/connect.c: Username: example-user
fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 10) rc = -22
CIFS VFS: cifs_mount failed w/return code = -22

Environment

  • Red Hat Enterprise Linux 5 and older

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.