- Bogdan
> I looked around with no luck. Many places reference that SAMBA indeed
> has a 2GB limit, but no one mentions if there is a way to fix that. As
You just didn't look hard enough:
http://lists.samba.org/archive/samba/2000-August/020286.html
> mentioned in another post, I would like to do a system image over SAMBA
> of my HD, and what's stopping me is what seams to be an arbitrary 2GB
> limit on a file size. Is there way to fix that?
If your system supports files > 2GB, recompiling Samba should help...
configure checks for large file support.
-Joe
Maybe the 2GB is dependent on the underlying file system type.?
FAT32 (and I think EXT2 & EXT3) file systems have a 2GB file size limit.
Others, like ReiserFS, have a much higher limit.
David
When mounting smbfs the default does not include large file support, which
limits files to less than 2 gigs. Using the lfs option will include large
file support. Google "smbfs lfs option", since it seems to be missing
from most documentation.
A better option is to use cifs, if it's supported by your
kernel/distribution/version. When mounting cifs, large files are
supported by default.
So either :
mount -t smbfs //server/share /mountpoint -o lfs other-options
or
mount -t cifs //server/share /mountpoint -o options
Check http://linux-cifs.samba.org/ for more info.
--
- Matt -
>On Tue, 14 Feb 2006 19:13:41 -0800, x0054 wrote:
>
>> I looked around with no luck. Many places reference that SAMBA indeed
>> has a 2GB limit, but no one mentions if there is a way to fix that. As
>> mentioned in another post, I would like to do a system image over SAMBA
>> of my HD, and what's stopping me is what seams to be an arbitrary 2GB
>> limit on a file size. Is there way to fix that?
>
>When mounting smbfs the default does not include large file support, which
>limits files to less than 2 gigs. Using the lfs option will include large
>file support. Google "smbfs lfs option", since it seems to be missing
>from most documentation.
>
>A better option is to use cifs, if it's supported by your
>kernel/distribution/version. When mounting cifs, large files are
>supported by default.
I suspect the OP is trying to use a Samba share from a Windows system.
Best regards, Paul
--
Paul Sherwin Consulting http://paulsherwin.co.uk
If that's the case, the file size limitation would be on the file system
on the Linux box...Which almost certainly isn't limited to 2 gigs...
But, I was assuming they were referring to a smbfs mount, since that seems
to be the where the 2 gig limit is run into the most frequently.
AFAIK, files shared *from* samba are limited in size only by the
underlying file system.
I have a Linksys nslu2, with a usb drive connected + formatted with ext3.
I use it to back up my Windows box, and both Linux boxes, and do not have
any problem creating large files. I did when I was mounting the shares
on linux via smbfs, without the lfs option.
Older versions of Samba may have had limitations, but anything recent can
certainly handle large files.
--
- Matt -
Thank you very much. I will try to do that in few days. What I was
trying to do is dd an image of my harddrive directly to my server over
samba. I will try cifs from the slax live-cd I have.
- Bogdan