blanking tape command?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

blanking tape command?

cwseys
Hello,
  Is there a vtlcmd (or similar) way to return a tape to its original "blank" state?
E.g.
-rw-rw----  1 vtl vtl    0 Aug 29 07:13 data
-rw-rw----  1 vtl vtl 2048 Aug 19 22:12 indx
-rw-rw----  1 vtl vtl 1536 Aug 29 08:59 meta

 Thanks!
Chad.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: blanking tape command?

Mark Harvey
Administrator
What are you attempting to achieve ?

Just the actual data or the 'meta-data' too ?

There is always the 'rm' command :)

If you want/need to clear all, rm -r (the directory), and then use the 'mktape' command to recreate.

If you want to clear just the data, simply rewind the tape and write a single block of data.
 (mt -f /dev/nstXX rew; dd if=/dev/zero of=/dev/nstXX bs=1k count=1)
Regards from Australia
Mark Harvey
Loading...