Tuesday, 14 April 2009

CIFS VFS: cifs_mount failed w/return code = -22

Last week I upgraded a Gutsy 7.10 server to Hardy 8.04.

Today I got a report that a mounted drive was missing.

Turns out that the ip=hostname part of an /etc/fstab line works in smbfs, that is, if you've defined the hostname in /etc/hosts, but under cifs, it doesn't work.

In addition, it seems that smbfs uses a fallback when a user authentication fails and falls back to the guest user, but cifs doesn't.

No comments: