Showing results for 
Search instead for 
Did you mean: 

Manage the tape

Go to solution
Regular Advisor

Manage the tape

I have a tape drive that attached to the server , I use mt command could manage it , tar command to write data to it , could advise if I want to format the tape , or erase the data in the tape , what can i do ? thx

Re: Manage the tape

Typically you can only overwrite the data that is already there or degauss it.
Honored Contributor

Re: Manage the tape

To destroy the old data on the tape without putting in any meaningful new data, there are several options:

Overwrite with zero bytes:

dd if=/dev/zero of=/dev/ bs=10240

Overwrite with random bytes (slower):

dd if=/dev/urandom of=/dev/ bs=10240

Adjust the bs= (blocksize) parameter to match the preferred block size of your tape drive type.

But if you have a magnetic tape degausser device, just put the tape in/on the degausser device and switch it on. The strong magnetic field will erase the data from the entire tape all at once. This is the fastest way to erase all data from a tape.