Solved

tar file max size

Posted on 2007-04-02
8
757 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
ID: 18836195
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
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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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…
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.

832 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