Solved

tar file max size

Posted on 2007-04-02
8
777 Views
Last Modified: 2010-05-18
Can someone tell me, what is the largest tar file that can be created in UNIX in GB
0
Comment
Question by:Greens8301
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 19

Expert Comment

by:NickUpson
ID: 18836195
the biggest file that can go onto the filesystem type (ext, nfs, ...) you are writing it to
0
 
LVL 21

Assisted Solution

by:tfewster
tfewster earned 100 total points
ID: 18838749
Historically, 2Gb (Assuming ulimit, filesystem settings & physical space allowed); GNU tar and most current Unixen allow larger files.  Check `man tar` for your OS and version
0
 

Author Comment

by:Greens8301
ID: 18839639
Is there a limit on the target .tar file size itself
0
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
LVL 19

Expert Comment

by:NickUpson
ID: 18839720
I don't see how "Is there a limit on the target .tar file size itself" differs in meaning from the original question
0
 
LVL 48

Expert Comment

by:Tintin
ID: 18840763
What Unix flavour and version are you running tar on?  
0
 
LVL 38

Accepted Solution

by:
yuzh earned 300 total points
ID: 18841060
It depends on the followings :
1) Does your OS support large files?
2) What version of tar are you using?
3) What is the underlying file system?

You can cheeck /usr/include/sys/features.h for any line containing 'FILE_OFFSET_BITS'. If there
is, your OS very very probably has support for large files.

If you OS doesn't support large file, you have 2GB limit.

The size of files you put into a tar archive (not the archive itself)
is limited to 11 octal digits, the max. size of a single file is 68 GBytes.

The OS native tar command has the limit of 2GB, the GNU tar
can handle large files as long as your OS and filesystem type support it.
0
 
LVL 62

Assisted Solution

by:gheist
gheist earned 100 total points
ID: 18848958
POSIX standard does not allow files larger than 2G into .tar file. Most systems do allow.
0
 

Author Comment

by:Greens8301
ID: 18864838
Thanks for all your help and answers. From the responses, I gatjer that max limit for 1 file is 2 Gb safely and max size for the whole archive is 66 GB This is very useful

Does ant one familiar with MKS emulator on windows 2003. I have a question on MKS "xterm" question. Not sure what topic the questions on MKS go in

Thanks All
0

Featured Post

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

707 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