Error tar'ing files to tape


 
Thread Tools Search this Thread
Operating Systems Solaris Error tar'ing files to tape
# 1  
Old 10-05-2005
Error tar'ing files to tape

I'm trying to tar a bunch of files off to a tape, but for one specific file (it is fairly large, roughly 10Gb) I get the error:

too large to archive

Does tar have a limit of the size of file it can write off to tape? I'm using SunOS 5.8.

Thanks!
-Fred
# 2  
Old 10-05-2005
Well the tar man page says:
Quote:
USAGE
See largefile(5) for the description of the behavior of tar when encountering files greater than or equal to 2 Gbyte ( 2**31 bytes).
So why not read the largefile man page?
# 3  
Old 10-05-2005
The man page for largefile says that tar is "large file aware" ... so why would I have received that message to begin with?
# 4  
Old 10-05-2005
Hmmm... good question! Sun has made the source code available. Looking at tar.c, I see that the limit is from this line:
#define TAR_OFFSET_MAX 077777777777

That is only eleven octal digits and it looks like 12 should be able to fit. So I guess that I don't know why that is. Smilie
Code:
$ bc
ibase=8
77777777777
8589934591

So I guess that 8,589,934,591 is the limit.
# 5  
Old 10-06-2005
Would tar-1.15.1 be able to "tar" files of 10Gb+?

Would tar-1.15.1 be able to "tar" files of 10Gb+?
# 6  
Old 10-06-2005
Fred - you asked "So is it possible to tar a 10GB+ file? How???" in the wrong thread - I deleted it but posted this to keep the info in your thread.
# 7  
Old 10-06-2005
Quote:
Originally Posted by FredSmith
Would tar-1.15.1 be able to "tar" files of 10Gb+?
I do not use GNU tar, but I read the documentation. It seems to support a variety of archive format and some of them should be able to do it. The default archive format is selected at compile time so I guess you should specify the format to be sure.
--format=gnu.
--format=posix

are the two formats which the docs claim support unlimited files. The posix format is a newer format than Sun uses.
--format=ustar
would select the older posix format in use by Sun.

So while I haven't tried this, I think it should work.


Edit: The GNU tar docs is a very useful document so I will include a link.

Last edited by Perderabo; 10-06-2005 at 11:56 AM.. Reason: Add link
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

tape tar error

Hi, I am trying to determine if a tape is full because on 2 different tapes, im receiving 2 different kind of errors: # uname SunOS # /bin/tar cvf /dev/rmt/0n /export/home a /export/home/jerry/wlserver_10.0.tar.gz 28528 tape blocks tar: write error: unexpected EOF # mt -f /dev/rmt/0n... (5 Replies)
Discussion started by: mosies
5 Replies

2. UNIX for Advanced & Expert Users

Speed problems with tar'ing a 500Gb directory on an eSATA drive

I'm trying to compress a directory structure on an external hard drive, connected by eSATA cable to my linux (Ubuntu 10.04) desktop. The total volume is 500Gb with half a million files, ranging from Kb to Mb in size. The drive is 2Tb, with 0.8Tb free space before compression. running "tar -pcf... (10 Replies)
Discussion started by: omnisppot
10 Replies

3. UNIX for Dummies Questions & Answers

Tar-ing folders in a folder

How do I create individual tars of a all the directories in a directory? I have a directory called 'patients', each patient has a directory in the patients directory. I want to create tars such that each patient has their own tar file. Thanks! (5 Replies)
Discussion started by: HappyPhysicist
5 Replies

4. Shell Programming and Scripting

grep'ing and sed'ing chunks in bash... need help on speeding up a log parser.

I have a file that is 20 - 80+ MB in size that is a certain type of log file. It logs one of our processes and this process is multi-threaded. Therefore the log file is kind of a mess. Here's an example: The logfile looks like: "DATE TIME - THREAD ID - Details", and a new file is created... (4 Replies)
Discussion started by: elinenbe
4 Replies

5. UNIX for Dummies Questions & Answers

Tar-ing the correct directories

Hi all, my directory structure is as follows /a/b/c. I would like to tar the /a directory including the subdirectories b and c. i intend to use the command tar -cvfz a.tgz a/ My question is where do i execute the command? do i execute it at the '/' prompt or at '/a' prompt ? My concern at... (1 Reply)
Discussion started by: new2ss
1 Replies

6. UNIX for Dummies Questions & Answers

tar'ing and regular expressions

Hi, How do I tar all but a specific set of files in a directory? Is it possible to use regular expressions in the tar command? I want to tar all files except those beginning with D. I tried this tar -cvf files.tar ^ but this didn't work. Anyone any ideas. Thanks (2 Replies)
Discussion started by: sirbrian
2 Replies

7. UNIX for Advanced & Expert Users

tar: tape blocksize error

Hi, I have tar: tape blocksize error when launching # gunzip < TierDB.tar.gz |tar -xvf /data/ora/DREC tar: tape blocksize error Can you please help me ? It is urgent. Many thanks. (1 Reply)
Discussion started by: big123456
1 Replies

8. UNIX for Advanced & Expert Users

Does tar do crc checking on a tape or tar file?

Trying to answer a question about whether tar table-of-contents is a good tool for verifying tape data. (1 Reply)
Discussion started by: tjlst15
1 Replies

9. UNIX for Dummies Questions & Answers

tar'ing and zipping files

If I have a directory /directory1 and want to tar and zip everything in it into a file new_tar.tar.gz on disk (not tape) How can I do it? I tried tar -cv /new_tar.tar /directory1/* But I got an error: tar: /dev/rmt/0: No such device or address (4 Replies)
Discussion started by: FredSmith
4 Replies

10. UNIX for Advanced & Expert Users

Tar: tape blocksize error

When trying to extract a tar file in HP-UX using tar -xvf command it exits with the following error :"Tar: tape blocksize error". Tar file is created using the following command with MKS toolkit(Unix Simulation Kit for Windows env) under Windows 2000 Professional: "$tar -cvf test.tar test.txt... (1 Reply)
Discussion started by: ramkumar
1 Replies
Login or Register to Ask a Question