The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
tar'ing and regular expressions sirbrian UNIX for Dummies Questions & Answers 2 07-10-2007 08:17 AM
tar: tape blocksize error big123456 UNIX for Advanced & Expert Users 1 03-26-2007 07:57 AM
tar'ing and zipping files FredSmith UNIX for Dummies Questions & Answers 4 05-02-2006 04:09 PM
Tape error. krk123 SCO 1 12-07-2005 11:04 AM
SCSI Tape Error Andre UNIX for Dummies Questions & Answers 1 05-23-2002 07:42 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-05-2005
FredSmith FredSmith is offline
Registered User
  
 

Join Date: Sep 2005
Posts: 88
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 (permalink)  
Old 10-05-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,123
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 (permalink)  
Old 10-05-2005
FredSmith FredSmith is offline
Registered User
  
 

Join Date: Sep 2005
Posts: 88
The man page for largefile says that tar is "large file aware" ... so why would I have received that message to begin with?
  #4 (permalink)  
Old 10-05-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,123
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.
Code:
$ bc
ibase=8
77777777777
8589934591
So I guess that 8,589,934,591 is the limit.
  #5 (permalink)  
Old 10-06-2005
FredSmith FredSmith is offline
Registered User
  
 

Join Date: Sep 2005
Posts: 88
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 (permalink)  
Old 10-06-2005
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
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 (permalink)  
Old 10-06-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,123
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:33 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0