Solved

How to create a tar file larger than 2GB

Posted on 2001-09-12
10
475 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
  • 3
  • 3
  • 2
  • +2
10 Comments
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
did you get errors from tar?
0
 
LVL 2

Author Comment

by:jonalee
Comment Utility
# 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
Comment Utility
hmm, should work.
Do you have gtar also?
0
 
LVL 14

Expert Comment

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

Author Comment

by:jonalee
Comment Utility
Maybe I have not apply the patch. I'm running SUNOS5.6
Some one tell me the patch number?
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 1

Expert Comment

by:filiep
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
I'm using veritas
0
 
LVL 1

Accepted Solution

by:
filiep earned 100 total points
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
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…
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…
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…

744 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

18 Experts available now in Live!

Get 1:1 Help Now