LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 08-31-2004, 09:31 PM   #1
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Rep: Reputation: 30
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
 
Old 08-31-2004, 09:48 PM   #2
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
The filesize limit for fat32 is 2 GB's. Perchance are you writing those files to a fat32 partition?
 
Old 08-31-2004, 09:51 PM   #3
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Original Poster
Rep: Reputation: 30
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
 
Old 08-31-2004, 10:25 PM   #4
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
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
 
Old 08-15-2005, 08:27 PM   #5
taiwf
Member
 
Registered: Jun 2005
Distribution: debian, ubuntu, redhat,knoppix
Posts: 194

Rep: Reputation: 31
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
 
Old 08-21-2005, 06:27 PM   #6
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Original Poster
Rep: Reputation: 30
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
 
Old 08-21-2005, 07:21 PM   #7
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
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
 
Old 08-22-2005, 09:24 PM   #8
taiwf
Member
 
Registered: Jun 2005
Distribution: debian, ubuntu, redhat,knoppix
Posts: 194

Rep: Reputation: 31
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)...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating files larger than 2GB Nerox Programming 11 08-03-2007 07:09 PM
/proc filesystem has too many 2gb files hard disk getting full sadun Suse/Novell 5 09-16-2005 08:40 AM
apache > 2GB files RDove Linux - Software 1 03-11-2005 11:53 AM
Can't copy files larger than 2GB? Rotwang Linux - General 6 03-09-2005 01:17 AM
samba limit on file sizes about 2GB adler321 Linux - Software 7 09-22-2004 08:59 AM


All times are GMT -5. The time now is 10:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration