Joined: 19 May 2003
Location: Newport News, VA
|Posted: Thu May 13, 2004 12:56 am Post subject: Samba and files larger than 2gb
|For a while now i've been struggling with getting files greater than 2gb to copy to/from a machine running Samba 3 and an XP box from my workstation. I've searched all over, and never did get a straight answer, but I did find the option to enable it finally. If you too are struggling to get files to copy that are larger than 2gb, here's how you do it...
When invoking smbmount/mount -t smbfs use the following switch: -o lfs (lfs = large file support).
If you are calling from fstab to auto mount your Samba partitions upon boot, you'd use something like this:
//my/FileServer /mnt/someplace smbfs credentials=/root/.smbpasswd,uid=1000,gid=407,lfs 0 0
For security reasons, I would not put user=foo,pass=bar into fstab. Instead use a creditials file like I have above and in it put:
..and the uid/gid bits change to whichever user you wish to have own the files. Also notice the lfs at the end of the options.
Hope this helps...
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq' | dc
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' |dc