1748089 Members
4904 Online
108758 Solutions
New Discussion юеВ

Re: erase the tape

 
hnlixm
Advisor

Re: erase the tape

>[...]You can't. Don't do this if you want to protect the data that's on your tape!
Note OldSchool's warning.

you mean it may rewrite the data on the tape?
hnlixm
Advisor

Re: erase the tape

man tar
[...]-c Create a new archive. Write from the beginning of the
archive instead of appending after the last file. Any
previous information in the archive is overwritten


thanks guys!


i frist run "tar cvf " overwrite the whole tape,so i can only see one file ...

kindly regards!
hnlixm
Advisor

Re: erase the tape

i should use "tar rvf /dev/rmt/0m" instead of
"tar -cvf /dev/rmt/0m"
OldSchool
Honored Contributor

Re: erase the tape

....

i should use "tar rvf /dev/rmt/0m" instead of
"tar -cvf /dev/rmt/0m"
.....


for WHAT?

I think you fail to grasp the concepts involved here, especially when to use *rewind* devices -vs- *non-rewind* devices.
hnlixm
Advisor

Re: erase the tape

>I think you fail to grasp the concepts >involved here, especially when to use >*rewind* devices -vs- *non-rewind* devices.


rewind device is "dev/rmt/0m",after "tar rvf " it goes the head.


no-rewind device is "/dev/rmt/0mn",it stops where it "tar"
Dennis Handly
Acclaimed Contributor

Re: erase the tape

>I run "man tar": "-t List the names of all the files in the archive."
>It should not read only a file

Each tar invocation is one archive. You put two on the tape.

>you mean it may rewrite the data on the tape?

Yes. Or you may have 20 archives on the tape, how do you know which one has what or how many file marks to skip to add the next?
This must all be done manually.

>I first run "tar cvf" overwrite the whole tape, so I can only see one file.

It only overwrites what's at the current tape position, to the end.
hnlixm
Advisor

Re: erase the tape

>It only overwrites what's at the current tape position, to the end.


thank you !(*^__^*)