This discussion is archived
4 Replies Latest reply: Oct 19, 2012 1:09 PM by Dude! RSS

How to resolve CIFS mount return code = -22

blevels Newbie
Currently Being Moderated
Using:
[root@akr-odba1 ~ 10:24 AM]# cat /etc/issue
Oracle Linux Server release 5.8 Kernel \r on an \m

[root@akr-odba1 ~ 10:43 AM]# uname -r
2.6.32-300.11.1.el5uek

On Oracle Database Appliance/Oracle Database 11g RAC (11.2.0.3.0)

Error message received:
mount: wrong fs type, bad option, bad superblock on //akr-cronjob/crm2,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
Error message in /var/logs/messages:
Oct 19 10:07:12 akr-odba1 kernel: CIFS VFS: cifs_mount failed w/return code = -22

Question: How does one resove the Return Code = -22

Thanks,
(BLL)
  • 1. Re: How to resolve CIFS mount return code = -22
    blevels Newbie
    Currently Being Moderated
    FYI, I have setup CIFS mounts on SUSE Linux systems without problems.
    Here I'm using:
    mount -t cifs //akr-nas01/teamdrives -o username=xxxxxx, passowrd=xxxxxx /mnt/win

    Thanks,
    (BLL)
  • 2. Re: How to resolve CIFS mount return code = -22
    Dude! Guru
    Currently Being Moderated
    Error -22 is a generic error and not useful. Perhaps verbose mode will show more info:

    # mount --verbose -t cifs ....

    There have most likely been samba-client updates since the base 5.8 release. You might want to check your current version:

    <pre>
    # yum list samba*client

    Installed Packages
    samba-client.x86_64 3.0.33-3.39.el5_8 installed
    Available Packages
    samba3x-client.x86_64 3.5.10-0.110.el5_8 el5_latest
    </pre>
  • 3. Re: How to resolve CIFS mount return code = -22
    blevels Newbie
    Currently Being Moderated
    [root@akr-odba1 ~ 10:43 AM]# mount --verbose -t cifs //akr-cronjob/crm2 -o username=xxxxxx,passowrd=xxxxx /mnt/crm2
    mount: wrong fs type, bad option, bad superblock on //akr-cronjob/crm2,
    missing codepage or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so

    [root@akr-odba1 ~ 02:15 PM]# yum list samba*client
    Loaded plugins: security
    Error: No matching Packages to list


    The verbose command gives the same amout of information. It looks as if the samba client is not installed.
    Since this is an ODA (Oracle Database Appliance) does this matter?

    Thanks,
    (BLL)
  • 4. Re: How to resolve CIFS mount return code = -22
    Dude! Guru
    Currently Being Moderated
    You don't need the smbclient, but the samba-client also installs mount.cifs, which is used when you use mount -t cifs. The samba-client is installed by default. The kernel cifs module is only the driver, which is also required, but you also need the mount.cifs interface.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points