Ævar Arnfjörð Bjarmason
2004-Nov-24 11:02 UTC
[Samba] Files being corrupted on export, md5sums don't match.
(smb.conf attached) When i mount the exported shares on my computer on either it or another machine they get damaged during transfer, for example i made a file in my shared folder with the contents "this is a test", mounted that folder at /mnt/losmb/, resaults below: $ cat /home/share/test this is a test $ cat /mnt/losmb/test J?SMB.?$ $ md5sum /home/share/test && du -s /home/share/test e19c1283c925b3206685ff522acfe3e6 /home/share/test 4 /home/share/test $ md5sum /mnt/losmb/test && du -s /mnt/losmb/test 77b6cfbf88d1fc931a994b9914ded559 /mnt/losmb/test 524288 /mnt/losmb/test $ Uname: Linux Rancorwe 2.6.9-rc2 #1 Fri Oct 1 06:47:57 GMT 2004 ppc 7447A, altivec supported PowerBook6,5 GNU/Linux Samba version: 3.07 CFLAGS used to compile samba: -mtune=G4 -pipe -O1
Ævar Arnfjörð Bjarmason
2004-Nov-24 12:19 UTC
[Samba] Files being corrupted on export, md5sums don't match.
[global] netbios name = Rancorwe workgroup = MSHOME server string = Rancorwe GNU/Linux (Samba %v, %h) show add printer wizard = no # Local master, see # /docs/htmldocs/Samba-HOWTO-Collection/NetworkBrowsing.html in the # sourcecode. # domain master = no # yes # local master = no local master = yes # yes # preferred master = no preferred master = yes # 65 # os level = 0 os level = 65 # Logging log level = 2 log file = /var/log/samba/%m.log max log size = 0 security = share # Charset #dos charset = UTF-8 unix charset = UTF8 #unix charset = ISO8859-1 # Securatah! #socket address = 192.168.1.25 interfaces = eth0 #hosts allow = 192.168.1. EXCEPT 192.168.1.1 # Handling of messages # using a hacked shellthingy #message command = bash -c 'printf "From: %m (%M)\nDate: %T\nFile: %s\n\n" >> /tmp/smbmsg;cat %s >> /tmp/smbmsg; echo '%' >> /tmp/smbmsg' & # using a custom perlscript message command = perl /home/avar/bin/smbmsg.pl --from %m --ip %M --file %s & [portage] browseable = no path = /usr/portage comment = The Gentoo GNU/Linux portage tree read only = Yes guest ok = Yes [share] browseable = no path = /home/share comment = Shared Audio and Video files read only = Yes guest ok = Yes [src] browseable = no path = /usr/src comment = Miscellaneous source-code read only = Yes guest ok = Yes On Wed, 24 Nov 2004 12:05:20 +0100, Holger Krull <holger.krull@gmx.de> wrote:> > (smb.conf attached) > > Attachments get striped in this list > Send smb.conf inline please. > >
Ævar Arnfjörð Bjarmason
2004-Nov-24 14:10 UTC
[Samba] Files being corrupted on export, md5sums don't match.
Strangely enaugh, i tried getting samba 3.08 and compiling it with -O2 -pipe -mcpu=7400 -maltivec -mabi=altivec this time which worked. Thanks for your help. On Wed, 24 Nov 2004 14:49:56 +0100, Holger Krull <holger.krull@gmx.de> wrote:> Can't see anything wrong. > Are you using smbfs to mount? Maybe a charset problem as smbfs defaults to cp437 if i remember right. If you are using only unix/linux clients maybe change dos charset to utf8, and mount with utf8. > >