01-23-2016
Lots of questions to ask about this.
Do you know for certain that it's a tar tape and not cpio or some other proprietary format?
Sometimes tape formats have a header so use a no rewind 'nr' device to prevent rewinding, stopping the tape where it is, and then try again.
Do you know the blocking factor the tape was written in?
If you're trying to read it raw with dd, trying appending each of bs=512, bs=1024, bs=2048 and bs=4096 to the dd command. Perhaps tar was configured to write a different block factor to what dd is defaulted.
DAT's always know internally (without reference to the O/S) if they are reading junk. The DAT mechanism writes enough checksums (created by the drive) to know when the integrity of the data is compromised.
---------- Post updated at 01:57 PM ---------- Previous update was at 11:57 AM ----------
Other thoughts are:-
also try bs=10240 in case it's written with the commonly used block size of 10k
Was the tape written by this DAT drive? Tape transports can go out of alignment (the posts that guide the tape) so you may well find that if you put the tape into the drive that wrote it, it will read with no problem.
9 More Discussions You Might Find Interesting
1. Solaris
Hi
I have taken a backup using
/usr/sbin/ufsdump -0uf /dev/rmt/0n
I want to recover one file from it but finding it hard nut to crack.
Can you please give me a simple way of recovering it?
Thanks (2 Replies)
Discussion started by: krishan
2 Replies
2. 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
3. UNIX for Dummies Questions & Answers
Hi Guy`s I`m a newbie to Unix and I`m starting to love it
I got stuck donig backups of tar files to tape
I use this to find all tar files
find . -name '*.tar.*' > output
in output there would be n of file eg. 6
the size output is 156 but tar files are:
9.3M Jul 18 09:48... (1 Reply)
Discussion started by: donovan
1 Replies
4. UNIX for Dummies Questions & Answers
hi
after using rm command how to recover the deleted file (7 Replies)
Discussion started by: arulkumar
7 Replies
5. UNIX for Dummies Questions & Answers
Hey there I am just looking for a way to find a corrupt tar file. I want to write a script to help sift through the 1000's of tar files we go through daily and move any corrupt ones to a different directory structure. Is there an easy way to do this. (4 Replies)
Discussion started by: car2nst2006
4 Replies
6. UNIX for Dummies Questions & Answers
Hello, I am currently dumping 30-40 reports on a Unix folder located here /home/apps/reports/prode/excel
I use K-shell to do this task. In that, I use the gzip command to compress these files. I want to be able to use a tar command to first load the entire directory into one file then gzip that... (2 Replies)
Discussion started by: Pramodini Rode
2 Replies
7. Shell Programming and Scripting
how to recover the file in unix.
Thanks in advance.:wall: (1 Reply)
Discussion started by: krbala1985
1 Replies
8. Shell Programming and Scripting
I've got a KSH/AIX question that I haven't been able to figure out yet.
I've got a tape archive program that "tar's" data to a tape. After creating the archive, I'd like to somehow verify that the tape is actually good. So, what I'd like to do as a simple "sanity" check that I can read the tape... (9 Replies)
Discussion started by: dernsdorff
9 Replies
9. UNIX for Dummies Questions & Answers
Hello Team,
Would you please help me with a UNIX command that would check if file is a tar file.
if we dont have that , can you help me with UNIX command that would check if file ends with .tar
Thanks in advance. (10 Replies)
Discussion started by: sanjaydubey2006
10 Replies