[Samba] Samba4 bug - "mount error(5): Input/output error"

Leander Schäfer info at netocean.de
Sun May 11 03:00:31 MDT 2014


Hi Rowland,

do you maybe have any idea what could potentially cause this bug? 
smbclient thrwos me back a

mount error(5): Input/output error

when I try to mount the remote smbFS. It doesn't happen with my MacOSx 
and Windows 7 as client but it happens with Linux OSs and with a Konica 
Minolta copy machine with a scanner to samba function. The first try to 
mount fails with the above error. The second try will be a success right 
away without any errors. I don't understand what causes this behaviour?! 
I thought you may have an idea?
Thank you



Samba Server is Version 4.1.7 and it's running on a FreeBSD 10.0 RELEASE 
(fresh installation)
Samba client (eg. on Linux) is Version 3.5.4-0.83.el5_7.2
mount cmd on (eg. Linux is):

mount -t cifs //10.0.0.200/MYSHARE -o 
username="${SMB_USR}",password="${SMB_PWD}",sec=ntlmv2 /mnt/MyShare

Below is my config, if useful:

cat << EOF > /usr/local/etc/smb4.conf
# ================================== #
#        Samba4 - FileServer         #
# ================================== #


# ============= Global ============= #

[global]

   # Basic server settings
   workgroup          = $( echo ${DOMAINNAME^^} | awk -F'.' '{print $1}' )
   realm              = ${DOMAINNAME^^}
   netbios name       = ${SERVERNAME^^}

   # Password backend
   passdb backend     = tdbsam

   # Logging
   log level    = 4
  #log level    = auth:3
   max log size = 0

   # NTLMv2
   ntlm auth          = No
   lanman auth        = No
   client ntlmv2 auth = Yes

   # Printing
   load printers = No
   printing      = BSD
   printcap name = /dev/null

   # Default masks
   unix extensions      = No
   create mask          = 0777
   force create mode    = 0777
   directory mask       = 0777
   force directory mode = 0777

   # Miscellaneous
   veto oplock files  = /*.doc/*.xls/*.ppt/*.mdb/*.docx/*.xlsx/*.ppt
   veto files         = 
/.snap/.windows/.zfs/Thumbs.db/.DS_Store/._.DS_Store/.apdisk/.TemporaryItems/
   wide links         = No


# ============= Shares ============= #

[...]

[MyShare]
   comment     = MyShare - Storage
   path        = /mnt/MyShare
   guest ok    = No
   read only   = No
   valid users =  myuser, leander, patrick
   force user  =  myuser
   vfs objects = recycle, zfsacl, streams_xattr
   nfs4:mode   = special
   nfs4:acedup = merge
   nfs4:chown  = yes
   zfsacl:acesort = dontcare
   recycle:repository     = /mnt/vMachines/.Trashes
   recycle:directory_mode = 0777
   recycle:keeptree       = Yes
   recycle:versions       = Yes
   recycle:touch          = Yes
   recycle:touch_mtime    = No
   recycle:exclude        = ?~$*,~$*,._*,.smbdelete*

[...]
EOF
chmod 0644       /usr/local/etc/smb4.conf
chown root:wheel /usr/local/etc/smb4.conf


Kind regards,
Leander


More information about the samba mailing list