[Samba] Problems copying large files from a XP share (smb_open,
result=-13)
Erik Mattsson
erikmattsson at home.se
Tue Jan 11 22:54:45 GMT 2005
Hi
I have mounted a share on a Windows XP (SP2), and would like to copy
files (movies, larger than 700MB) to my debian (2.4.26) box. But I get
very strange problems when copying some larger files, smaller files such
as MP3s are copied without any problems.
The strangest thing is that I can copy the file IFF I make a copy of the
file on the XP machine, and then copies the new file through samba. I
have not played the movies, they shouldnt be locked (if Windows doesnt
do anything that it shouldnt do...)
Does anyone have a clue on what could be wrong?
The error I get when copying the file:
-----------------------------------------------------------------------
spirou:~# cp /mnt/piranha/media/Movies/Movie\ cd1.mpg /tmp
cp: läser "/mnt/piranha/media/Movies/Movie cd1.mpg": Åtkomst nekas
-----------------------------------------------------------------------
"Åtkomst nekas" is translated to "access denied"
/var/log/syslog:
-----------------------------------------------------------------------
Jan 10 23:03:26 spirou kernel: smb_open: Movies/Movie cd1.mpg open
failed, result=-13
Jan 10 23:03:26 spirou kernel: smb_open: Movies/Movie cd1.mpg open
failed, result=-13
Jan 10 23:03:26 spirou kernel: smb_readpage_sync: Movies/Movie cd1.mpg
open failed, error=-13
-----------------------------------------------------------------------
/etc/fstab:
-----------------------------------------------------------------------
//piranha/media /mnt/piranha/media smbfs
debug=5,username=guest,guest,ro,workgroup=comics 0 0
-----------------------------------------------------------------------
Output when mounting the path
-----------------------------------------------------------------------
opts: username=guest
opts: guest
opts: workgroup=comics
mount.smbfs started (version 3.0.10-Debian)
added interface ip=192.168.0.160 bcast=192.168.0.255 nmask=255.255.255.0
Opening cache file at /var/run/samba/gencache.tdb
name piranha#20 found.
Connecting to 192.168.0.105 at port 445
socket option SO_KEEPALIVE = 0
socket option SO_REUSEADDR = 0
socket option SO_BROADCAST = 0
socket option TCP_NODELAY = 1
socket option IPTOS_LOWDELAY = 0
socket option IPTOS_THROUGHPUT = 0
socket option SO_SNDBUF = 16384
socket option SO_RCVBUF = 87380
socket option SO_SNDLOWAT = 1
socket option SO_RCVLOWAT = 1
socket option SO_SNDTIMEO = 0
socket option SO_RCVTIMEO = 0
1528: session request ok
size=107
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=49153
smb_tid=0
smb_pid=1528
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[ 0]= 8 (0x8)
smb_vwv[ 1]= 2563 (0xA03)
smb_vwv[ 2]= 256 (0x100)
smb_vwv[ 3]= 1024 (0x400)
smb_vwv[ 4]= 17 (0x11)
smb_vwv[ 5]= 0 (0x0)
smb_vwv[ 6]= 256 (0x100)
smb_vwv[ 7]= 0 (0x0)
smb_vwv[ 8]= 0 (0x0)
smb_vwv[ 9]=64768 (0xFD00)
smb_vwv[10]= 227 (0xE3)
smb_vwv[11]=52736 (0xCE00)
smb_vwv[12]=42227 (0xA4F3)
smb_vwv[13]=11317 (0x2C35)
smb_vwv[14]=50424 (0xC4F8)
smb_vwv[15]=50177 (0xC401)
smb_vwv[16]= 2303 (0x8FF)
smb_bcc=38
size=107
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=49153
smb_tid=0
smb_pid=1528
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[ 0]= 8 (0x8)
smb_vwv[ 1]= 2563 (0xA03)
smb_vwv[ 2]= 256 (0x100)
smb_vwv[ 3]= 1024 (0x400)
smb_vwv[ 4]= 17 (0x11)
smb_vwv[ 5]= 0 (0x0)
smb_vwv[ 6]= 256 (0x100)
smb_vwv[ 7]= 0 (0x0)
smb_vwv[ 8]= 0 (0x0)
smb_vwv[ 9]=64768 (0xFD00)
smb_vwv[10]= 227 (0xE3)
smb_vwv[11]=52736 (0xCE00)
smb_vwv[12]=42227 (0xA4F3)
smb_vwv[13]=11317 (0x2C35)
smb_vwv[14]=50424 (0xC4F8)
smb_vwv[15]=50177 (0xC401)
smb_vwv[16]= 2303 (0x8FF)
smb_bcc=38
Serverzone is -3600
size=85
smb_com=0x73
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=0
smb_pid=1528
smb_uid=2048
smb_mid=2
smt_wct=3
smb_vwv[ 0]= 255 (0xFF)
smb_vwv[ 1]= 85 (0x55)
smb_vwv[ 2]= 3 (0x3)
smb_bcc=44
1528: session setup ok
size=49
smb_com=0x75
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=2048
smb_pid=1528
smb_uid=2048
smb_mid=3
smt_wct=3
smb_vwv[ 0]= 255 (0xFF)
smb_vwv[ 1]= 49 (0x31)
smb_vwv[ 2]= 1 (0x1)
smb_bcc=8
1528: tconx ok
-----------------------------------------------------------------------
Cheers
//Erik
More information about the samba
mailing list