tar file max size

Can someone tell me, what is the largest tar file that can be created in UNIX in GB
Greens8301Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Nick UpsonPrincipal Operations EngineerCommented:
the biggest file that can go onto the filesystem type (ext, nfs, ...) you are writing it to
0
tfewsterCommented:
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
Greens8301Author Commented:
Is there a limit on the target .tar file size itself
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Nick UpsonPrincipal Operations EngineerCommented:
I don't see how "Is there a limit on the target .tar file size itself" differs in meaning from the original question
0
TintinCommented:
What Unix flavour and version are you running tar on?  
0
yuzhCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gheistCommented:
POSIX standard does not allow files larger than 2G into .tar file. Most systems do allow.
0
Greens8301Author Commented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.