DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Are there any suggestions or tips on getting around the 2.0GB Size limit for tar files in Debian Etch? Would like to use tar for backups but have some backups that well exceed 2.0GB and this causes problems with backup scripts.
Have thought about dd to an image file but prefer tar or some other similar utility that will work with my backup scripts. Suggestions are greatly appreciated.
Three things that effect file size limitations are the 1. the kernel, 2. the file system and 3. the application. Since Debian Etch uses a 2.6 kernel I would rule out 1. unless you have
compiled your own kernel and did not include large file support. 2. Would only be a problem
if you are trying to save the file to a FAT32 file system or using a kernel that did not include large file support and 3. would be a problem if using an old version of tar which does not handle large files.
So what kernel are you running, what file system are you trying to save the tar file on and what version of tar are you actually using? Doing some googling there appeared to be single file size limitation of 2GB but again I believe the latest version can handle a single file of 68 GB.
To see if your version of tar has large file support:
strings `which tar`|grep 64
If you are trying to save to a network share then you could have samba limitations depending on version.
So basically it is difficult to say what the problem is without additional information.
You can have bash configured to limit created file sizes. Check that by running:
$ ulimit -a
in a console. If you get a line of output that reads:
file size (blocks, -f) unlimited
Your OK there. I know the Bastille security program can be configured to limit the size of any created files as well. There's probably other examples, but the point is that there is no inherent limitation in tar itself limiting archives to 2GB. I routinely create much larger ones than that. It's probably not a tar problem; it's more likely something in the way your system is configured, unless you are running some really ancient version of tar for some reason.
Yes, depending on the version samba does have a 2gb limitation if you do not mount the share with the lfs option. The latest uses cifs which should not have this problem.
I was able to test the tar file to the local ext3 file system and it worked, backup came out at a nice 3.6GB. The problem lies with samba. So now I just need to get the samba share to allow for taring over 2GB files or tar to the local system and mv to remote share via my scripts. Installed Saber version is unknown, how would I find out samba version. Unable to parse via /etc/init.d/samba --version.
Thanks Michael, Problem Solved and Thread/Issue can now be closed. Adding lfs option to smb mount really helped. I can now run my scripts and not worry about them ejecting because of a file limitation. Again, thanks so much. You made my life much easier. And in the process we've created a help doc for other users that have this problem.
The version of samba that requires lfs option is
Code:
Samba version 3.0.24
Last edited by richinsc; 03-13-2008 at 10:20 AM.
Reason: Samba Version
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.