[Bug 491288] Re: File corruption after copying files via samba from Karmic to Karmic

littlebat dashing.meng at gmail.com
Wed Apr 7 11:06:16 BST 2010


I met the similar bug when I copy a file from Ubuntu 6.06 Server into
Ubuntu 9.10 via samba server on Ubuntu 9.10.

Server end:
OS: Ubuntu 9.10 upgrade from Ubuntu 9.04 Netbook Remix
samba server version: Samba 3.4.0
the version result of "dpkg -s samba" is: Version: 2:3.4.0-3ubuntu5.6

the content in /etc/samba/smb.conf:
[global]
    workgroup = WORKGROUP
    security = share
    guest ok = yes
[test] 
    comment = For testing only, please
    path = /var/sambatest
    browseable = yes    
    writeable = yes

Client end:
OS: Ubuntu 6.06 Server
mount.cifs version: 1.10
mount commend line: sudo mount.cifs //192.168.1.100/test /media/tmp -o guest,rw

When copy a *.tar.gz file from Ubuntu 6.06 into Ubuntu 9.10, the file
become corrupted.

execute "file" command in Ubuntu 6.06 on the initial good file:
file wpaudio.tar.gz
wpaudio.tar.gz: gzip compressed data, from Unix

execute "file" command in both Ubuntu 6.06 and Ubuntu 9.10 on the corrupted file:
file wpaudio.corrupted.tar.gz
wpaudio.corrupted.tar.gz: data

the corrupted file can't be extracted with "tar xfvz wpaudio.corrupted.tar.gz", it reports:
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Exiting with failure status due to previous errors

I attached these two files.

After read this reported bug, I also test copy a mp3 file through samba. Although the copied mp3 file on Ubuntu 9.10 can be played by smplayer, but when I execute "file" command on it, it says:
file *.mp3 
test.mp3: data

When I execute "file" command on the good one in Ubuntu 6.06, it says:
file *.mp3
test.mp3: MPEG ADTS, layer III, v1, 192 kBits, 44.1 kHz, JntStereo

I think this mp3 is corrupted too.

I compile a samba 3.5.1 from source on Ubuntu 9.10, and repeat the copy
process from Ubuntu 6.06 to Ubuntu 9.10 through samba 3.5.1 server on
Ubuntu 9.10. And no error found.


** Attachment added: "wpaudio.tar.gz"
   http://launchpadlibrarian.net/43337170/wpaudio.tar.gz

-- 
File corruption after copying files via samba from Karmic to Karmic
https://bugs.launchpad.net/bugs/491288
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.



More information about the Ubuntu-server-bugs mailing list