LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 01-16-2004, 05:41 PM   #1
SparceMatrix
Member
 
Registered: Aug 2002
Distribution: SME Server, CentOS
Posts: 219

Rep: Reputation: 30
Samba: Cannot write greater than 2 GB to share


I have been having a real problem getting a good back up share available in Samba for my Windows XP Pro system. I'd like to be able to do a complete system backup which would be about 16 GB. I've never had any luck completing a large backup and I just recently observed that the backup stopped when the file was about 2 GB and I would get an error report:

Quote:
Error: The device reported an error on a request to write data to media.
Error reported: Unknown error.
There may be a hardware or media problem.
Please check the system event log for relevant failures.
The operation was ended.
Backup completed on 1/16/2004 at 3:11 PM.
Directories: 357
Files: 64774
Bytes: 2,096,356,000
Time: 38 minutes and 26 seconds
First, my XP installation is in NTFS. I've tried a few things. I am running Samba on Red Hat 9.0, I think and the FAT32 partition to be shared is on another drive. I tried formatting the MS created partition in FAT and NTFS. I can't seem to mount the FAT formatted share and I think I understand that you cannot write to NTFS in Linux yet. So a FAT32 formatted partition is the only file system that I can get Samba to share. I've also tried the mount option in /etc/fstab specifying "fat=32" and still no change. I also tried changing the block size specified in the share to show "block = 512" from the default "block =1024" to no effect.

So what can I do? I've looked up the specifications for FAT32 for MS and it says that you should be able to write up to 4 GB, but I'm not getting that. Is this just a natural limitation of Samba? How can I get Samba to write large files for purposes of backup? Is this an XP problem?

And and all tips or clues would be appreciated.
 
Old 01-16-2004, 05:55 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
AFAIK FAT32 max file size is 2GB.

I'm not sure I really understand what you are trying to do. Are you trying to run a backup on a dual boot computer or a network computer? If on the same computer then you do not need samba and can mount the NTFS partition as read only. If a network computer you should be able to mount a NTFS partition as read / write.
 
Old 01-16-2004, 06:25 PM   #3
SparceMatrix
Member
 
Registered: Aug 2002
Distribution: SME Server, CentOS
Posts: 219

Original Poster
Rep: Reputation: 30
Yes, this is Samba being run on a seperate computer. I thought I might have made that clear here:

Quote:
So a FAT32 formatted partition is the only file system that I can get Samba to share.
Are you sure you can get Linux to write to NTFS files? It seems to me I've read in a couple places that this is not possible. I'll certainly give it a try.
 
Old 01-16-2004, 06:49 PM   #4
SparceMatrix
Member
 
Registered: Aug 2002
Distribution: SME Server, CentOS
Posts: 219

Original Poster
Rep: Reputation: 30
I've tried formatting the partition as NTFS and mounting it as NTFS and I am getting a system error on boot saying, "NTFS fs not supported by kernel". My fstab file has "ntfs" as the file type to be mounted for that partition entry. Actually, I see in the manual for "mount" (man mount) that ntfs is listed as a file type for option -t, so that would suggest to me that it might be available some way.
 
Old 01-16-2004, 07:42 PM   #5
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
RH9 does not support ntfs for either read or writing. I understand there is an rpm that will give you ntfs read functionality. I have never used it. There is no support for NTFS writing in Linux. It is still at an experimental stage, I believe. Also the max file size in fat32 is 4 Gb. Since that's the case you'll never get a 16 GB file saved on the drive. Could you format the drive w/ ext3 maybe? Or are you trying to keep it formatted in Microsoft file type.

Where you have fat=32 in your /etc/fstab.... This is confusing to me. I use "vfat". Maybe you could put your fstab file up here for us. First you need to reformat your drive back to FAT32.
 
Old 01-16-2004, 09:36 PM   #6
SparceMatrix
Member
 
Registered: Aug 2002
Distribution: SME Server, CentOS
Posts: 219

Original Poster
Rep: Reputation: 30
There is an effort here, http://linux-ntfs.sourceforge.net/ to give NTFS support to distributions that do not have it. The effort does not include the functionality to write to NTFS. You simply cannot set permissions to write for the mounted file system. More information on the functionality of this particular effort is here, http://linux-ntfs.sourceforge.net/info/ntfs.html#3.2.

If anyone thinks that it is possible to write to an NTFS file system in any way from Linux, be sure to tell us how.

The fat=32 setting is placed in the same space as "rw", "default" and other options like that. It is a mount option described for the vfat file system in the manual for mount. If I want to keep backups for XP Pro on a Samba share, would I be able to do that with a mounted ext3 file system? I thought the whole point of Samba was to serve MS type file systems mounted on a Linux machine. Sure, I can see the other file systems when the shares are available, but I never figured the mounted drives would be any use.

I'll give it a try.
 
Old 01-16-2004, 09:53 PM   #7
dellcom1800
Member
 
Registered: Apr 2003
Location: Connecticut, USA
Distribution: Gentoo Ubuntu
Posts: 69

Rep: Reputation: 15
if u want to backup your drive i reccomend an NFS hosted share on your linux box and a win32 nfs mount client for the windows machine this should work for your needs
 
Old 01-16-2004, 10:14 PM   #8
SparceMatrix
Member
 
Registered: Aug 2002
Distribution: SME Server, CentOS
Posts: 219

Original Poster
Rep: Reputation: 30
That's a new angle. So where do I get an NFS client for my XP Pro?
 
Old 01-16-2004, 10:28 PM   #9
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
Yes, you can definately share partitions/folders using the ext3 format. It is better than fat32 in all ways(probably, anyways). If you are sharing w/ samba on Linux then it would be the prefered method.

The Win/Lin NFS idea does sound interesting. Do tell more.
 
Old 01-16-2004, 10:30 PM   #10
dellcom1800
Member
 
Registered: Apr 2003
Location: Connecticut, USA
Distribution: Gentoo Ubuntu
Posts: 69

Rep: Reputation: 15
i have never used the win32 client i have muli linux box's however this looks promising

http://download.com.com/3120-20-0.ht...ent&tg=dl-2001

u can also do a google/yahoo search for "windows xp nfs client" and get some more results

you will be able to mount this share as a shared drive and then u can set window's up to a automatic update say ever week or so to the NFS share.

for more info "man nfs"

Last edited by dellcom1800; 01-16-2004 at 10:35 PM.
 
Old 01-16-2004, 10:57 PM   #11
SparceMatrix
Member
 
Registered: Aug 2002
Distribution: SME Server, CentOS
Posts: 219

Original Poster
Rep: Reputation: 30
I'll have a look at that. What is "muli linux box's"?
 
Old 01-16-2004, 11:03 PM   #12
dellcom1800
Member
 
Registered: Apr 2003
Location: Connecticut, USA
Distribution: Gentoo Ubuntu
Posts: 69

Rep: Reputation: 15
sry multiple linux box's

 
Old 01-17-2004, 12:39 AM   #13
SparceMatrix
Member
 
Registered: Aug 2002
Distribution: SME Server, CentOS
Posts: 219

Original Poster
Rep: Reputation: 30
Well, all this time I never thought once that I could write an MS file to an ext3 file systems and I just wrote a huge backup to an ext3 share in Samba. So ...

Problem Solved.

Thanks to all who tuned in and offered some suggestions.
 
Old 01-17-2004, 02:13 AM   #14
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
By the way, Microsoft's Sevices For UNIX is now free (used to be $99) and it includes an NFS client and NFS server. You can check out the System Requirements
 
  


Reply



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
Can't write to Samba Share perihelion Linux - Software 21 03-12-2012 10:39 AM
can't mount samba share and then write to the share calbazon Linux - Software 8 10-10-2010 01:35 AM
Can't write to Samba share erikcw Linux - Software 3 01-26-2005 03:59 AM
Unable to write to Samba Share sephiro499 Linux - Newbie 8 11-30-2004 12:05 PM
Can't write to Samba share...any suggestions? _TK_ Linux - Newbie 4 02-11-2001 03:27 PM

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

All times are GMT -5. The time now is 02:54 PM.

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
Open Source Consulting | Domain Registration