HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Showing results for 
Search instead for 
Did you mean: 

data transfer mode in samba

Regular Advisor

data transfer mode in samba


We are facing data corruption while copying the data using samba share. In what mode samba data is transferred. ( Is it in binary mode as in ftp?). I read somewhere that its in RAW mode. Any idea on this ?

Steven E. Protter
Exalted Contributor

Re: data transfer mode in samba


Data corruption issues could be due to a number of factors.

I believe data transfer mode depends on type of data.


Determining the data transfer mode probably will not help.

Updating the samba software, installing bug fixes or finding a problem on the logs is a better path.

Steven E Protter
Owner of ISN Corporation
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Honored Contributor

Re: data transfer mode in samba

"Core mode" and "Raw mode" in SEP's link refer to data transfer block size and other details of the SMB/CIFS protocol.

Samba does not have FTP-style data transfer modes (binary/ASCII). In FTP terms, Samba transfers everything in "binary mode", always.

There are several things that must be taken into account when transferring files between Windows and Unix-like systems:

* In ASCII text files, the standard line terminator in the Windows world is the CR+LF combination; in Unix systems, LF is used alone.
- When a text file created on a Windows system is transferred to Unix-style system, there may appear to be garbage ^M characters (control-M, aka CR) in the end of every line.
- Conversely, a Windows system does not understand Unix line terminators and may assume that a Unix-style text file contains just one long line of text.

* Different character sets: in Windows, text files typically use a locale-dependent character set (ISO-8859-1 aka ISO Latin-1 in US and Western Europe), but may use DOS codepages (CP 850 or CP 437) in some cases.
If Euro currency symbol is used, Windows may use CP1252.
Linux/Unix systems increasingly tend to use UTF-8 by default, but may use a different character set if configured.
If a proper conversion is not applied, typically all non-ASCII characters will be corrupted.

Regular Advisor

Re: data transfer mode in samba

Hi Matti,

Thanks for you reply however is there any supporting DOC which states that SAMBA always transfers in binary mode.Please let me know if there is any doc.