02-14-2002
Linux has some ridiculously large max files size, in the hundreds of petabyte range, although I don't know what kernel / FS version that began with, so his system still may have the multi-gig limit.
It very well may be the issue of Posix tar vs. GNU tar, but I have tar'd files on a Linux machine, then ftp'd tem over to an HP-UX box, where they untarred just fine, and vice versa...
This may not be the *best* solution, but what about trying to dump the tape to a file? If you have some disk space, you could use dd, or even cat to dump it:
dd if=/dev/st0 of=/tmp/my_test.tar
If you can get data off of the tape, then it at least exists; if not, you may have a bad tape / drive. Hope this helps a little.
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
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
2. UNIX for Advanced & Expert Users
Hi,
On my Unix Server in my directory, I have 70 files distributed in the following directories (which have several other files too). These files include C Source Files, Shell Script Source Files, Binary Files, Object Files.
a) /usr/users/oracle/bin
b) /usr/users/oracle... (1 Reply)
Discussion started by: marconi
1 Replies
3. UNIX for Dummies Questions & Answers
Hi all,
4 files are returned when i issue 'find . -mtime -1 -type f -ls'.
./ora_475244.aud
./ora_671958.aud
./ora_934052.aud
./ora_934050.aud
However, when I issued the below command:
tar -cvf test.tar `find . -mtime -1 -type f`, the tar file only contains the 1st file -... (2 Replies)
Discussion started by: ahSher
2 Replies
4. Shell Programming and Scripting
HI,
if I have a tarfile called pmapdata.tar that contains
tar -tvf pmapdata.tar
-rw-r--r-- 0/0 21 Oct 15 11:00 2009 /var/tmp/pmapdata/pmap4628.txt
-rw-r--r-- 0/0 21 Oct 14 20:00 2009 /var/tmp/pmapdata/pmap23752.txt
-rw-r--r-- 0/0 1625 Oct 13 20:00 2009... (1 Reply)
Discussion started by: borderblaster
1 Replies
5. Shell Programming and Scripting
Hi all,
I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies
6. UNIX for Dummies Questions & Answers
I would like to confirm my file.tar is been tar-ed correctly before I remove them. But I have very limited disc space to untar it.
Can I just do the listing instead of actual extract it? Can I say confirm folder integrity if the listing is sucessful without problem?
tar tvf file1.tar
... (1 Reply)
Discussion started by: vivien_chu
1 Replies
7. Linux
Hi Guys,
I need some suggestion as how to install
openssl-1.0.1.g-1-i686.pkg.tar.tar
openssl-1.0.1.g-1-x86_64.pkg.tar.tar
on Linux system?
is for 32bit system and other is for 64 bit system linux machine.
How to untar them?
I tried few commands but did not work.
I need to upgrade to... (5 Replies)
Discussion started by: manalisharmabe
5 Replies
8. AIX
Coming from this thread, just wondering if there is an option to check if the Tar of the files/directory will be without any file-errors without actually making the tar.
Scenario:
Let's say you have a directory of 20GB, but you don't have the space to make Tar file at the moment, and you want... (14 Replies)
Discussion started by: filosophizer
14 Replies
9. HP-UX
Hello,
I will like to execute a find, tar & gzip in one command.
find * -type f -mtime -$nb_days -print | xargs tar -cvf $MAITUT/BCK_DATA.tar
gzip $MAITUT/BCK_DATA.tar.gz
The fact that the TAR is very big, at the end I need to generate only a compress file.
Please note... (22 Replies)
Discussion started by: royinfo.alain
22 Replies
TP(1) General Commands Manual TP(1)
NAME
tp - manipulate tape archive
SYNOPSIS
tp [ key ] [ name ... ]
DESCRIPTION
Tp saves and restores files on DECtape or magtape. Its actions are controlled by the key argument. The key is a string of characters con-
taining at most one function letter and possibly one or more function modifiers. Other arguments to the command are file or directory
names specifying which files are to be dumped, restored, or listed. In all cases, appearance of a directory name refers to the files and
(recursively) subdirectories of that directory.
The function portion of the key is specified by one of the following letters:
r The named files are written on the tape. If files with the same names already exist, they are replaced. `Same' is determined by
string comparison, so `./abc' can never be the same as `/usr/dmr/abc' even if `/usr/dmr' is the current directory. If no file
argument is given, `.' is the default.
u updates the tape. u is like r, but a file is replaced only if its modification date is later than the date stored on the tape;
that is to say, if it has changed since it was dumped. u is the default command if none is given.
d deletes the named files from the tape. At least one name argument must be given. This function is not permitted on magtapes.
x extracts the named files from the tape to the file system. The owner and mode are restored. If no file argument is given, the
entire contents of the tape are extracted.
t lists the names of the specified files. If no file argument is given, the entire contents of the tape is listed.
The following characters may be used in addition to the letter which selects the function desired.
m Specifies magtape as opposed to DECtape.
0,...,7 This modifier selects the drive on which the tape is mounted. For DECtape, x is default; for magtape `0' is the default.
v Normally tp does its work silently. The v (verbose) option causes it to type the name of each file it treats preceded by the
function letter. With the t function, v gives more information about the tape entries than just the name.
c means a fresh dump is being created; the tape directory is cleared before beginning. Usable only with r and u. This option is
assumed with magtape since it is impossible to selectively overwrite magtape.
i Errors reading and writing the tape are noted, but no action is taken. Normally, errors cause a return to the command level.
f Use the first named file, rather than a tape, as the archive. This option is known to work only with x.
w causes tp to pause before treating each file, type the indicative letter and the file name (as with v) and await the user's
response. Response y means `yes', so the file is treated. Null response means `no', and the file does not take part in whatever
is being done. Response x means `exit'; the tp command terminates immediately. In the x function, files previously asked about
have been extracted already. With r, u, and d no change has been made to the tape.
FILES
/dev/tap?
/dev/mt?
SEE ALSO
ar(1), tar(1)
DIAGNOSTICS
Several; the non-obvious one is `Phase error', which means the file changed after it was selected for dumping but before it was dumped.
BUGS
A single file with several links to it is treated like several files.
Binary-coded control information makes magnetic tapes written by tp difficult to carry to other machines; tar(1) avoids the problem.
deprecated TP(1)