Leander Schäfer
2014-May-11 09:00 UTC
[Samba] Samba4 bug - "mount error(5): Input/output error"
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
Rowland Penny
2014-May-11 11:26 UTC
[Samba] Samba4 bug - "mount error(5): Input/output error"
On 11/05/14 10:00, Leander Sch?fer wrote:> 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, > LeanderHi, have you tried using 'sec=krb5' instead ? I am not really an expert here, Steve knows far more about this than me, so perhaps he will chime in with some advise. Rowland
Leander Schäfer
2014-May-12 16:55 UTC
[Samba] Samba4 bug - "mount error(5): Input/output error"
FYI - this problem disappeared after I re-compiled samba from ports. I can not tell what the detailed cause was but I'm happy to be rid of the issue ;) Am 11.05.14 11:00, schrieb Leander Sch?fer:> 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
Apparently Analagous Threads
- 2x Samba4 Bugs - "mount error(5): Input/output error" & "recycle: stat for ... AFP_AfpInfo returned No such file or directory"
- unknown tag type 64 / recycle: stat for *:AFP_AfpInfo returned No such file or directory
- Samba 4.1.11 crashes sporadically
- Auth fail getpwuid(3000007) failed
- force group does not work