LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba and 2GB + files (https://www.linuxquestions.org/questions/linux-networking-3/samba-and-2gb-files-225039/)

TheRealDeal 08-31-2004 08:31 PM

Samba and 2GB + files
 
Hi.

I've been trying to copy some iso images to a server on our network.

The files are larger than 2GB, most are 3 - 5 GB.

I am copying the images from a linux machine, to servers which are also running linux and samba.

It seems that when it gets to 2GB copied it stops copying and gives me a "File Size Limit Exceeded".

Is this just a limitation or is it me?

All machines are running ext3.

Thanks alot,

Regards,
Craig

Thoreau 08-31-2004 08:48 PM

The filesize limit for fat32 is 2 GB's. Perchance are you writing those files to a fat32 partition?

TheRealDeal 08-31-2004 08:51 PM

Hi.

All the machines are running ext3. All of our servers are running ext3. Definately not fat.

I was wondering if this was just a limitation of the smb/cifs protocol.

Thanks
Craig

Thoreau 08-31-2004 09:25 PM

Well, if you are using the samba client to mount and not smbfs in the kernel, then you should be without issue unless you are using 2.x. Upgrade to the latest.

If you are using smbfs and are on kernel 2.4, then that is the limit to the kernel modules for samba. In which case, upgrade to 2.6.

For reference:

http://www.redhat.com/archives/fedor.../msg00173.html

taiwf 08-15-2005 07:27 PM

hmm i have the same problem here as well. But after i upgrade my samba to 3.014a and kernel to 2.6.8-2-386, i still have the file size exceed limit error when doing dd if=/dev/zero of=myfile_k6 bs=1024 count=3000000 on NT server.


Does anyone else have the same problem? I kinda suspect the problem is on my NT... it use winxp embedded... Maybe thats the problem?

thanks in advance

TheRealDeal 08-21-2005 05:27 PM

Hi taiwf.

Windows XP, 2003, 2000 use cifs protocol. NT, 95, 98 use smb protocol. The smb protocol has a limit of 2GB.

cifs can go above this. So when copying to a XP share you can use mount -t cifs /something /somewhere.

I'm pretty sure that NT can only accept 2GB max files.

Craig :)

MS3FGX 08-21-2005 06:21 PM

I run a SAMBA file server and recently when running Linux clients, I came across the same problem.

SMB can handle files that large, all you have to do is mount the shares with the "lfs" option.

This enables large file support in the Samba client, and will allow you to transfer files larger than 2 GB.

So to mount from the command line, you would do:

Code:

mount -t smbfs -o lfs //Server/Share /mountpoint
Or to do it from fstab:

Code:

//Server/Share    /mountpoint    smbfs    user,rw,password=password,lfs    0  0

taiwf 08-22-2005 08:24 PM

MS3FGX , thx so very mcuh!!!!! Finally i am able to transfer file larger then 2G.

By the way, where i can find more info about -o ? I didn't find the option of "lfs" (under man)...


All times are GMT -5. The time now is 03:39 PM.