View Single Post

   
  #12 (permalink)  
Old 01-12-2008, 06:30 AM
TCMa
 
Posts: n/a
Default Re: write and read files to/from tape

I want to write a small text file (about 200 bytes) to the
beginning of a tape. Then I write several partitions of the disk to
the same tape. Some time later, I want to read back the text file and
the partitions on the tape.
The command to write is (ignoring error checking):
e.g.
mt -f /dev/rmt/0cn rewind
tar cvf /dev/rmt/0cn file1
ufsdump 0uf /dev/rmt/0cn /
ufsdump 0uf /dev/rmt/0cn /usr
....

Some time later, to read back the data:
mt -f /dev/rmt/0cn rewind
tar xvf /dev/rmt/0cn file1
ufsrestore rf /dev/rmt/0cn
ufsrestore rf /dev/rmt/0cn
....

Darren Dunham <ddunham@redwood.taos.com> wrote in message news:<2GK7b.3002$M87.1180@newssvr25.news.prodigy.c om>...
> In comp.unix.solaris TCMa <ma77777777772000@yahoo.ca> wrote:
>
> It's not entirely clear to me what you intend from your posting, but I
> wanted to verify that you're not wanting to "write" to the beginning of
> the tape and then "read" anything after that, correct?
>
> Writing to the beginning of the tape will effectively erase the tape.
> You may already understand that, but I wanted to be certain.

Reply With Quote