Solved

how to copy large files from/to smbfs file system

Posted on 2010-08-12
7
769 Views
Last Modified: 2013-12-15
I have two Windows drives smb mounted on my Linux slackware (kernel version 2.6.21.5) computer. I want to copy a file from one drive to the other. There is plenty of actual space on the target drive. The file is: 85,484,137,984 KB, i.e. +83GB.

On the linux machine I used a simple: cp src dest. It copied about 2GB then halted with the message 4616 File size limit exceeded

I went to Windows and used Windows Explorer to copy the source file and paste it to the destination. It copied just fine.

why can't Linux to do the copy? Is there a way to fix this? This is rather important because the Linux host is supposed to be responsible for copying backup archives to offline storage. I would be shocked if Windows was capable of something Linux was not.
0
Comment
Question by:jmarkfoley
7 Comments
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 167 total points
Comment Utility
Apparently you need to 'enable large file system' support.  Found a lot of Googles about the 2GB limit.

I found this but I'm not sure what it means: http://www.linuxquestions.org/questions/linux-networking-3/samba-file-size-limit-372039/

mount -t smbfs -o lfs //server/share /localdir

the 'lfs' tag tells the server to enable large file support. obviously, replace //server/share and /localdir with the appropriate paths.
0
 
LVL 16

Assisted Solution

by:santoshmotwani
santoshmotwani earned 166 total points
Comment Utility
0
 
LVL 7

Assisted Solution

by:expert1010
expert1010 earned 167 total points
Comment Utility
There were problems with older samba. smbfs had a limit of 2GB a few years back. With kernel version 2.6.21.5 it points to at least 3 years old kernel. If  samba is that old, or older it might be an issue. There could also be the "large file size" problem. Try mounting with -o lfs, or you might try mounting it with -t cifs instead.
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 1

Author Comment

by:jmarkfoley
Comment Utility
We're getting there, but still troubles

the mount -t cifs, as shown in santoshmotw...'s link or any other way I try it does not appear to be supported by my mount command. I get mount's mini-help in response as if I made some kind of syntax error. My mount version appears to be 2.2r.

I also tried mount.cifs directly:

mount.cifs //OHPRSSTORAGE/Backups /OHPRSstorage -o user=usr%pw

I also tried the domain option. In all cases I get:

mount error: could not find target server. TCP name OHPRSSTORAGE/Backups not found
No ip address specified and hostname not found

I'm not sure what to do with that information as the resource //OHPRSSTORAGE/Backups is legitimate and I use it successfully with smbmount.

I did try the smbmount command with the lfs option. That seemed to work better, but after about 10 minutes of copying I get the error:

cp: reading `/OHPRSstorage/Acronis/MAIL/Archive(1)_2010_08_10_02_00_16_490D.TIB': Input/output error

I've tried a couple of times. It dies after copying between 4GB and 5GB, or as I said, about 10 minutes.

I've set debug level to 10 in smbd, but I see no additional info in log.smdb.

Thoughts? I'm really trying to get this accomplished today before the backup runs just after midnight.
0
 
LVL 1

Author Comment

by:jmarkfoley
Comment Utility
Tried it again, this time it took 27 minutes to generate the Input/output error, but only copied 1.4GB Any ideas at all would be appreciated. I always thought samba was more robust than this.
0
 
LVL 7

Expert Comment

by:expert1010
Comment Utility
It might have to do with this. https://bugs.launchpad.net/ubuntu/+source/samba/+bug/46514. If it is the only thing to do is to upgrade. Ok, it's not Ubuntu but it's still old samba, right?
0
 
LVL 1

Author Closing Comment

by:jmarkfoley
Comment Utility
Points all around. No one had the exact answer, but the responses put me on the right path of discovery. Thanks.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Over the past decade, as Internet security has become a chief concern of IT professionals, one of the most common questions administrators and users ask is, “Which is more secure, SFTP or FTPS?” In short, both file transfer protocols offer a high…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now