Errors with smbtar

Simon Hyde shyde at
Thu Mar 19 21:05:22 GMT 1998

On Thu, 19 Mar 1998 20:14:16 +1100, you wrote:

>Hi all
>	I have been using samba for some time now with no
>problems. Recently I decided to try and backup NT workstations
>with smbtar/smbclient to DAT tape. I get the following:-
>getting file \DOS\COUNTRY.SYS of size 26936 bytes as a tar file
>COUNTRY.SYSError writing to tar file - I/O error
>Didn't get entire file. size=26936, nread=3856
>Padding with 23080 zeros
>This happens every few files. Note the 'nread' value is the same on each
>occasion. I have no
>such problem if I am writing to disk, it is as if it write does not
>block properly when waiting for
>the dat drive to write the data to tape.
You're almost at the solution there, doesn't block properly? Perhaps you
should try changing the blocksize? I came accross this exact problem around
6 months ago, changing the blocksize seemed to fix all my problems (512
fixed it for me if I recall correctly). Basically, there is a parameter to
smbtar which specifies the blocksize (-b if I recall correctly, take a look
at man smbtar for more info) and you need to use it.

>The kit is HP running 10.20, the version of samba is 1.9.18p3. I have
>the same problem with version
>1.19.17p4 but with different error messages.

Ah, yes, don't try using the blocksize parameter to smbtar in the 1.9.17
branch, there's a small bug in smbtar that causes it to incorrectly pass on
this information to smbclient in 1.9.17.

Hope this is of help,

Simon Hyde
Simon Hyde

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.

More information about the samba mailing list