Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1096
  • Last Modified:

how to copy tape content to disk

I first use "tar xvf /dev/rmt/n", but system prompts wrong block size 1844. Also I tried using "cpio" command, but system said "I/O error, 0+0 input, 0+0 output".
Then I use "dd if=/dev/rmt/n of=/tmp/tapetest bs=10k count=1", then "file tapetest", the result is "ascii text".
How can I copy the content of the tape to disk? Thanks.
0
frog77
Asked:
frog77
  • 6
  • 3
  • 2
  • +1
1 Solution
 
shivsaCommented:
use tape tool

To correct the block size, choose Block I/O from the Tape Tool Properties window. In the text field that appears, type the correct block size (the one from the tape).

.
0
 
shivsaCommented:
also to check tape device and all, man mt.

0
 
shivsaCommented:
First check that the tape is readable  by Solaris. Use the "tcopy" command to check if you can see blocks and sizes, with this information retry your command. Try also using 20b as the block size.
man tcopy
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
shivsaCommented:
i just noticed what r u using for /dev/rmt/n, i think u should be using /dev/rmt/0 or somethine whatever is there in /dev//rmt configured.
0
 
jlevieCommented:
To get the data off of the tape you need to know what mechanism (tar, cpio, dump/ufsdump, etc) was used to write the tape and whether the data might be byte-swapped w/respect to  Solaris, i.e., what OS wrote the tape. There are a lot of ways on placing data on tape and you won't be able to recover the data unless you use a complementary reading tool.
0
 
frog77Author Commented:
Thanks, jlevie. The problem is I do not know how the data are written to tapes. The previous S.A. has gone. Are there any command to see what way of the data are previously put into the tape? Thanks.
0
 
jlevieCommented:
Were these tapes written on a Sun? If so the obvious choices would be tar, cpio, or ufsdump. Since you've tried tar & cpio with no luck I'd suggest trying 'ufsrestore if /dev/rmt/?' and see if that works.
0
 
frog77Author Commented:
I guess tapes were written on Sun. But I've already tried "ufsrestore" command. The system prompts that wrong block size. I've no idea how to make it work.
Thank you.
0
 
jlevieCommented:
Since none of the standard (tar, cpio, ufsdump) methods work it would seem to me that you might be looking at a tape written:

1) In some proprietary backup format (Networker, Veritas, ArcServe, etc)
2) On something other than a unix system with a native tool (NT backup, etc)
3) Via some non-standard method (user program, dd direct to raw tape, etc)

In all of those cases I'd say that you'll have to find out from the previous SA how the tape was written to be able to read it. Of course it is also possible that the tape was orginally written with a standard mechanism and has been damaged or has gone bad. Knowing what should work would probably answer that question.
0
 
shivsaCommented:
please read man page for mt.
and take all the information from tape.

did u read man page for tcopy also. it might be useful determining these information.
0
 
sagar24Commented:
hi
I am not sure but try using any one file from the directory
/dev/rst/ ..just try any file which identifies the tape device you are using

sagar
0
 
shivsaCommented:
u can try to set density to 0 and then try to read the tapes.
mt -f /dev/rmt/n setdensity 0

it will be slower but it will automatically adjusted to default block size.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 6
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now