Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Samba file size limitation?

  1. #1
    Mentor
    Join Date
    Jun 2001
    Posts
    1,672

    Samba file size limitation?

    I have a 2.6GB file on a Linux machine that I'm desperately trying to copy to a Windows machine using Samba. The copying goes well until exactly 2GB of the file is copied. Then I get a message "File size limit exceeded" and the copying stops. The hard drive on the Windows machine is 80GB with FAT32, so that shouldn't be the problem. Does smbfs has a 2GB file size limit? Is there any way of overriding it?

  2. #2
    Senior Member
    Join Date
    Jul 2001
    Posts
    280

    Re: Samba file size limitation?

    You could solve the symptoms by splitting the file into two separate files, copy them over, and rejoin them.

  3. #3
    Mentor
    Join Date
    Jun 2001
    Posts
    1,672

    Re: Samba file size limitation?

    You could solve the symptoms by splitting the file into two separate files, copy them over, and rejoin them.
    Can you tell me how?

  4. #4

    Re: Samba file size limitation?

    hi clovem,
    making a tar -Mcf file.tar will create a muilti file tarball, you may need to add a -L 2000000 to specify the size (it is -L N*1024) where N is number of of bytes

  5. #5

    Re: Samba file size limitation?

    Filesize limitation for FAT32 is 2.1GB. Even if you do split it up you wouldn't be able to splice them back to one file. If it's a W2K/WXP (or maybe NT4 with SP6+) box I'd reformat/convert the drive as NTFS which has a higher filesize limit of 4GB.

    Other solutions:
    What type of file is it? If it's an archive, try a higher compresstion. If it's some type of multimedia file that you made(AVI, MPG,etc), try lowering the bitrate abit.

  6. #6
    Mentor
    Join Date
    Jun 2001
    Posts
    1,672

    Re: Samba file size limitation?

    Thanks, this will solve the symptom.

    But what about the problem? Is there a 2GB file size limit in Samba? I did not see it documented anywhere. >

  7. #7
    Mentor
    Join Date
    Jun 2001
    Posts
    1,672

    Re: Samba file size limitation?

    Filesize limitation for FAT32 is 2.1GB.
    Not true. I have a 4.3GB file sitting on a FAT32 partition. Anyway, I even tried NTFS on the Windows box and it crapped out at 2GB. This must be a limitation of Samba.


  8. #8
    Senior Member
    Join Date
    Jul 2001
    Posts
    280

    Re: Samba file size limitation?


    Can you tell me how?
    There are plenty of programs that will do this avalible for both windows and linux. I don't know if they would be compatible, though, but I don't see why they wouldn't be.

  9. #9

    Re: Samba file size limitation?



    Not true. I have a 4.3GB file sitting on a FAT32 partition. Anyway, I even tried NTFS on the Windows box and it crapped out at 2GB. This must be a limitation of Samba.

    Duh....You're right.
    Code:
    File System * * * * * * * * * Maximum File Size Supported 
    FAT16 * * * * * * * * * * * * * 2 Gigabytes 
    FAT32 * * * * * * * * * * * * * 4 Gigabytes 
    NTFS * * * * * * * * * ** * * * 2 Terabytes
    I was thinking about why I can't get AVI's bigger than 2.1G.
    The standard AVI file format limits the maximum size of a captured AVI file to approximately 2.1 gigabytes.
    I did a Google search and found some patches you can use in the kernel to get 4GB+ files from samba.(Particulary the smbfs-2.4.16-lfs.patch) http://www.hojdpunkten.ac.se/054/samba/




  10. #10
    Senior Member
    Join Date
    Jul 2001
    Posts
    280

    Re: Samba file size limitation?

    From Linux-tips.net
    Got a file that you want to transfer by floppy, but it just won't fit on one?
    Try This:
    Assume you have a 50MB file called bigfile.

    To compress:
    [tt]gzip bigfile[/tt]

    Now you have bigfile.gz - it's probably around 25MB. To split it:
    [tt]split -b 1440k bigfile.gz bigfile-part[/tt]

    You'll now have a bunch of pieces called bigfile-part?? where ?? will be letters starting at aa and going up from there.

    To recombine the parts:

    [tt]cat bigfile-part* > newbigfile.gz[/tt]

    And to decompress:
    [tt]gunzip newbigfile.gz[/tt]

    This is more reasonable for a smaller file, but if you don't have a burner and have a lot of floppys, go for it!

    I can't claim this one myself. Credit goes to ShavenYak at MandrakeUser Forum.

Similar Threads

  1. SAMBA file sharing
    By mielle in forum Linux - Software, Applications & Programming
    Replies: 4
    Last Post: 08-02-2011, 06:15 AM
  2. Checking size of file/folders
    By tech291083 in forum Redhat / Fedora
    Replies: 2
    Last Post: 10-20-2007, 09:14 AM
  3. test samba.conf file
    By cliff in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 10-13-2005, 03:12 AM
  4. samba file server
    By taydu in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 04-07-2005, 06:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •