Geoffrey Hurlus
2002-Sep-16 13:15 UTC
[Samba] How to bypass smbfs 2Gb limit without patching ?
Hello everyone, I would like to send a big tar file (eg: >2Gbytes) from my Linux samba server to a win2K client without patching the kernel. Samba server: I'm using Linux version 2.4.8-26mdk (Mandrake Linux 8.1 2.96-0.62mdk) with samba 2.2.5-2. I'm using tar (GNU tar) 1.13.22 to make the tar file and the command "cp" to copy this tar file to my win2k client. I've never tried smbtar. smb.conf: I've enabled - socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 - large readwrite = yes Win2k client: It is not upgraded to Service Pack 2. It hasn't got disk quotas set. It is formatted in FAT32. It has enough disk space =) Problem: The file copy stops at about 2097 Mb ! A friend of mine tried to copy a file bigger than 2Gb (with dd if=/dev/null of=/mnt/...) from his Linux version 2.4.18-10 (Red Hat Linux 7.3 2.96-110) box, with samba-2.2.5-1, to the win2K client and he had the same problem. I've heard that the culprit was smbfs because it doesn't support file bigger than 2Gb. I know there are patchs to this issue, but is there any way to solve this problem without patching the system ? I've never tried to patch my system as it is in production thus I'd prefer a smooth method. Also, I noticed that the copy of the files was taking a long time. I looked at the size of packets with IPTraf and it showed very little packets tranfers. I then used mcopy from the mtools and the size of the packets were much bigger. Thanks all for your kindness and support. malX mailto:gh@bda.fr
Martyn Ranyard
2002-Sep-16 13:20 UTC
[Samba] How to bypass smbfs 2Gb limit without patching ?
At 03:16 PM 9/16/02 +0200, you wrote:>Hello everyone, > >I would like to send a big tar file (eg: >2Gbytes) from my Linux samba >server to a win2K client without patching the kernel.Why don't you just place the file in an acessible place and copy it from the Win2K side?>Problem: The file copy stops at about 2097 Mb !The other option is to use split adn copy file1+file2 bigfile>Thanks all for your kindness and support.How very polite, Thank you.>malX mailto:gh@bda.fr- Martyn Ranyard Free Software Advocate jabber - joran@amessage.de icq - 122500800 irc - Joran on oftc msn - ranyardm@hotmail.com e - ranyardm@lineone.net
Urban Widmark
2002-Sep-17 17:16 UTC
[Samba] How to bypass smbfs 2Gb limit without patching ?
On Mon, 16 Sep 2002, Geoffrey Hurlus wrote:> I've heard that the culprit was smbfs because it doesn't support file bigger > than 2Gb. I know there are patchs to this issue, but is there any way to > solve this problem without patching the system ?smbfs is a client. If you are using smbfs then your win2k box is NOT a client. To fix the smbfs limit you need to patch and rebuild the kernel. Why fat32, btw? I'd assume it has a size limit much smaller than ntfs. /Urban