For two days now I've tried for two days now to get cifs working on a redhat 9.0 2.4.20 based linux box. I followed the instructions given at http://de.samba.org/samba/Linux_CIFS_client.html, i.e. compiling cifs-0.6.8 and mount.cifs rev. 1.2.2.1. I successfully loaded the cifs.o as a module and following the given examples I tried: [root@r151-101 cifs]# /sbin/mount.cifs //raid/demo /stud/demo -o user=demo,password=XXX mount error 22 = Invalid argumentRefer to the mount.cifs(8) manual page (e.g.man mount.cifs) This yields the following /var/log/messages block: Apr 22 21:19:44 r151-101 kernel: CIFS: Unknown mount option ip Apr 22 21:19:44 r151-101 kernel: CIFS VFS: Error connecting to IPv4 socket. Aborting operation Apr 22 21:19:44 r151-101 kernel: CIFS VFS: cifs_mount failed w/return code = -111 What does Unknown mount option ip mean here? I also tried various other mount options with same result. Finally I tried the two older versions of mount.cifs (1.2 and 1.1) with no success. The samba server is samba-2.2.5-1 with "unix extensions=yes" configured. I can access this machine via smbclient //raid/demo -U demo. So maybe the mount.cifs helper is not appropriate? I scanned the samba mailing list for the past six months without success. Any hints greatly appreciated! I did not yet receive the samba mailing list confirmation to my subsription request, so please send me a "cc" if possible. Regards, Martin -- Martin Goik Tel. +49-(0)711-685-8365 http://www.HdM-Stuttgart.de/~goik
The mount helper (mount.cifs) now calls into the kernel mount routine with the ip address for the hostname specified (in your case the server "raid") which uses a parm ("ip=") that older versions of the cifs vfs kernel code will not recognize. This new mount parameter requires a newer version of the cifs vfs kernel code which is available via samba cvs for 2.4 (the download instructions for samba cvs extract of the cifs vfs are on the project page) and for the 2.5 version which is available at http://cifs.bkbits.net/linux-2.5cifs and also in the public 2.5 kernel.org kernel (your note reminded me that I should post a newer tar.gz of the 2.4 source code to the Linux_CIFS_client project page to bring it up to the current 0.7.2 version of the cifs vfs). I had held off for a few weeks in posting an updated version more visibly while fixing an obscure bug in the file truncate code that showed up on some kernels running fsx stress test (this fix will be in 0.7.4 version of the cifs vfs). A few weeks ago to support the new mount helper I also added versioning support to the mount helper and cifs vfs kernel code, so it will be easier to handle/recognize version mismatches.>followed the instructions given at >http://de.samba.org/samba/Linux_CIFS_client.html, i.e. compiling >cifs-0.6.8 and mount.cifs rev. 1.2.2.1. I successfully loaded the cifs.o >as a module and following the given examples I tried: > >[root@r151-101 cifs]# /sbin/mount.cifs //raid/demo /stud/demo -o >user=demo,password=XXX >mount error 22 = Invalid argumentRefer to the mount.cifs(8) manual page >(e.g.man mount.cifs) > >This yields the following /var/log/messages block: > >Apr 22 21:19:44 r151-101 kernel: CIFS: Unknown mount option ip >Apr 22 21:19:44 r151-101 kernel: CIFS VFS: Error connecting to IPv4 >socket. Aborting operation > >What does Unknown mount option ip mean here?Steve French Senior Software Engineer Linux Technology Center - IBM Austin phone: 512-838-2294 email: sfrench@us.ibm.com