Solved

tar file max size

Posted on 2007-04-02
8
735 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
8 Comments
 
LVL 19

Expert Comment

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

Assisted Solution

by:tfewster
tfewster earned 100 total points
Comment Utility
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
Comment Utility
Is there a limit on the target .tar file size itself
0
 
LVL 19

Expert Comment

by:NickUpson
Comment Utility
I don't see how "Is there a limit on the target .tar file size itself" differs in meaning from the original question
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 48

Expert Comment

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

Accepted Solution

by:
yuzh earned 300 total points
Comment Utility
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 61

Assisted Solution

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

Author Comment

by:Greens8301
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now