Solved

How to create a tar file larger than 2GB

Posted on 2001-09-12
10
485 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

Independent Software Vendors: 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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
FTP on FreeBSD server 2 152
how to check for shares on HP-UX 1 71
How to Change Interface on Cisco IOU 11 119
Unix/bash: scripted arithmetic 13 102
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…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

735 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