[alt.sys.sun] Copying O/S distribution tapes

adams@ucunix.san.uc.edu (James Warner Adams) (02/10/91)

Forgive me if this is a naive question, but I didn't notice anything in
the docs on this (I only have the online man pages).

Is there some way to make an identical copy of the SunOS 4.1.1
distribution tapes?  I don't want to keep using the original ones I got
from Sun.  I'd like to make a backup copy to use and then store the
original tapes offsite.

dd will copy the tape, but it stuffs everything into one output file. 
Using dd on a file-at-a-time basis would mean waiting for the tape to
rewind 28 times.  I could write a C program, but I was wondering if
there's just a simple command to copy tapes with multiple files in
non-tar or cpio format.

BTW, this is on a Sun 3/60 with a 141 MB disk/60 MB tape shoebox and a
second 600 MB SCSI disk, so I will need to copy to a scratch file on
the disk and then back to the new tape.

Also, does anyone know how Sun maps SCSI addresses?  I have the second
disk jumpered to SCSI address = 1 and it shows up as /dev/st2 when the
system boots.

-- 
       Jim Adams              Department of Physiology and Biophysics
adams@ucunix.san.uc.edu     University of Cincinnati College of Medicine      
Anatidaephobia:  The fear that somewhere, somehow, a duck is watching you.

eap@bu-pub.bu.edu (Eric Pearce) (02/12/91)

In article <1991Feb10.000235.5209@ucunix.san.uc.edu> adams@ucunix.san.uc.edu (James Warner Adams) says:
>
>Forgive me if this is a naive question, but I didn't notice anything in
>the docs on this (I only have the online man pages).
>
>Is there some way to make an identical copy of the SunOS 4.1.1
>distribution tapes?  I don't want to keep using the original ones I got
>from Sun.  I'd like to make a backup copy to use and then store the
>original tapes offsite.

For 1/4 inch, there shouldn't be any special tricks, as long as you
copy onto the tape with a block size which is a multiple of 512.

1/2 inch is more complicated.  Under 4.0 and 4.0.3 at least, the
third and fifth files have their first block of 512 bytes and the
rest of the file is in 8k blocks.   

I used scripts like this:

dd if=/dev/nrmt8 of=0 bs=8k 
dd if=/dev/nrmt8 of=1 bs=512
dd if=/dev/nrmt8 of=2.a bs=512 count=1
dd if=/dev/nrmt8 of=2.b bs=8k 
dd if=/dev/nrmt8 of=3 bs=10k 
dd if=/dev/nrmt8 of=4.a bs=512 count=1
dd if=/dev/nrmt8 of=4.b bs=8k
dd if=/dev/nrmt8 of=5 bs=8k
dd if=/dev/nrmt8 of=6 bs=10k
            ...
dd if=/dev/nrmt8 of=25 bs=512
  
I wrote a little C program to copy them two-part file back into single
files on tape.

Once you have it on disk, you can crank out copies.

-e
--

 Eric Pearce eap@bu-pub.bu.edu                             "Get Some!"
 Boston University Information Technology                  - Dispatches