LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-30-2008, 03:48 PM   #1
Pain++
LQ Newbie
 
Registered: Apr 2008
Posts: 6

Rep: Reputation: 0
Large file sizes listed incorrectly in a samba share


Hi guys,

I'm attempting to move large files (>4GB) from a PowerPC-based embedded system running a 2.4 kernel architecture to an PC running a 2.6 kernel. I've got samba compiled, installed, and running on the embedded box. I also have the directories from the PPC system mounted and accessible from the PC.

I have two problems: larger file sizes do not list correctly, and large files transferred from the embedded box to the PC are not complete; IE they're dropping data along the way. I'm familiar with the 2GB file size limit on samba, and have mounted the PC side using the lfs flag.

Problem 1: Incorrect listing

Here's a list of the directory from the embedded box:
-r--r--r-- 1 root root 52646396 Jan 5 06:46 file1.ch10
-r--r--r-- 1 root root 60755936 Jan 5 06:46 file2.ch10
-r--r--r-- 1 root root 47606684 Jan 5 06:46 file3.ch10
-r--r--r-- 1 root root 4920604376 Jan 5 05:51 file4.ch10

Here's that same listing, but of the samba mount of that directory on the PC:

-r-xr-xr-x 1 root root 52646396 Jan 5 2007 file1.ch10
-r-xr-xr-x 1 root root 60755936 Jan 5 2007 file2.ch10
-r-xr-xr-x 1 root root 47606684 Jan 5 2007 file3.ch10
-r-xr-xr-x 1 root root 625637080 Jan 5 2007 file4.ch10

As you can see, files 1-3 list fine, but file4 is showing way short. I'm guessing this might be some sort of overflow condition, any ideas?

Problem 2: Loss of data during transfer of large files.
When I try to transfer file4, i only get 41xxxxxxxx or so of the
total file size. This is the more pressing issue.

Any help you guys/gals could provide would be great. Thanks!
 
Old 05-01-2008, 01:33 PM   #2
Pain++
LQ Newbie
 
Registered: Apr 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Anybody have an idea?
 
Old 05-01-2008, 07:41 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.10, Centos 7.5
Posts: 17,707

Rep: Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497
2^32 is 4G; looks like the 2.4 kernel/filesystem has limit of that for file sizes.
Personally, for Linux to Linux I'd use scp to move files or NFS to share them. Samba is really for talking to/from MS.
 
Old 05-02-2008, 07:01 AM   #4
Pain++
LQ Newbie
 
Registered: Apr 2008
Posts: 6

Original Poster
Rep: Reputation: 0
I'd like to use NFS too, but eventually this system has to work from Linux to PC. Thanks though
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
K3B reads DVD sizes incorrectly Mark_667 Linux - Software 1 09-09-2007 06:45 AM
share partition with windows with >4Gb file sizes john72carter Linux - General 1 09-07-2006 09:14 AM
Samba OS X to Linux Samba file share error ttoomey Linux - Software 1 08-16-2005 11:12 AM
RH 9.0 / Samba Large File Transfers rjesse Linux - General 3 01-26-2005 10:59 AM
samba limit on file sizes about 2GB adler321 Linux - Software 7 09-22-2004 08:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration