Solved

How to create a tar file larger than 2GB

Posted on 2001-09-12
10
486 Views
Last Modified: 2013-12-27
I try to package lot of files. The total file size is about 3GB. I do not like to split the package into several small packages.
So, the question is how to create a big tar file which is larger than 2GB? I see the larger(5) manual that tar is large file awared, but how to use it?

Thanks.
0
Comment
Question by:jonalee
[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
  • 3
  • 3
  • 2
  • +2
10 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6477598
did you get errors from tar?
0
 
LVL 2

Author Comment

by:jonalee
ID: 6477652
# tar cvf bigfile 817solaris.cpio   file2 file3 file4
a 817solaris.cpio 772600K
a file2 772600K
a file3 772600K
tar: write error: unexpected EOF
#


0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6477705
hmm, should work.
Do you have gtar also?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 14

Expert Comment

by:chris_calabrese
ID: 6477729
Perhaps the filesytem is from an older system and doesn't have large file support.
0
 
LVL 2

Author Comment

by:jonalee
ID: 6478131
Maybe I have not apply the patch. I'm running SUNOS5.6
Some one tell me the patch number?
0
 
LVL 1

Expert Comment

by:filiep
ID: 6478907
What type of FS do you use?
If it is Veritas VxFS, did you enabled the Largefile option when you created the filesystem?
If not, you can use the 'fsadm'
command (part of VxFS packages) to turn on the large file support for that filesystem.

If you uses UFS, I don't know if you can modify it to Largefile mode. In that case, as for as I know, you will need to recreate the FS with the largefile option.

F.
0
 
LVL 1

Expert Comment

by:filiep
ID: 6478991
If you are using VxFS, you can check if your FS has Largefile support which the next command:
fsadm <mount_point>

See also manpages of fsadm

F.
0
 
LVL 2

Expert Comment

by:jonke
ID: 6484861
You can tar to a non root ufs - and will need to mount with a largefiles option - this is available in 2.6 ufs.
0
 
LVL 2

Author Comment

by:jonalee
ID: 6485394
I'm using veritas
0
 
LVL 1

Accepted Solution

by:
filiep earned 100 total points
ID: 6486736
In that case check if you have a filesystem with largefile enabled (in /opt/VRTSvxfs/sbin)
fsadm <mount_point>

if it isn't enabled you can use the command :
fsadm -o largefiles <mount_point>

F.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Unix/bash: scripted arithmetic 13 103
Python Assistance 7 98
How do disable only TLSv1.0 in Oracle Sun One 7.1 Server 9 150
aix unix tar error 3 89
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
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 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.

710 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