help with "mt" and "dd"

Bob Beaulieu bobb at netcom.UUCP
Tue Jan 1 17:10:07 AEST 1991


I would like to be able to write multiple archives (probably tar'd files)
to a single tape. I am using a Pyramid M/120 at 4.51. 

Let say I have 2 tar'd files: 
                                     file_one.tar
                                     file_two.tar

Assuming I have the proper tape and drive shouldn't I be able to do this:

TAPE=/dev/rmt/Q120-0
mt -f $TAPE rew	
dd if=file_one.tar of=$TAPE bs=5120
mt -f $TAPE append
dd if=file_two.tar of=$TAPE bs=5120

Now when I try to get data from the tape, its not working. Can someone tell
me what I'm doing wrong?

TAPE=/dev/rmt/Q120-0
mt -f $TAPE rew
dd if=$TAPE of=recovered_file_one.tar
mt -f $TAPE eof
dd if=$TAPE of=recovered_file_two.tar

I am always able to recover the last file put on tape, I seem to be writing
over the previous archive. Any help would be greatly appreciated...

Thanks
bobb
-- 






o\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\o
o                               Bob Beaulieu                            o 
o                               San Jose, CA.                           o
o                              (408) 723-0556                           o 
o                          uunet!apple!netcom!bobb                      o
o\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\o



More information about the Comp.unix.programmer mailing list