Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba and files larger than 2gb
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
chammer
n00b
n00b


Joined: 19 May 2003
Posts: 43
Location: Newport News, VA

PostPosted: Thu May 13, 2004 12:56 am    Post subject: Samba and files larger than 2gb Reply with quote

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:

username=foo
password=bar

..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... :D
_________________
http://www.thezengarden.net
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq' | dc
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' |dc
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum