Open Source Software and Linux

Jan 24 2009   8:13PM GMT

Turning tape compression on and off using the Linux mt command



Posted by: Xjlittle
Tags:
dat tape
how to
Linux
mt command
scsi tape
tape compression

It took quite a bit of google searching to find out how to turn tape compression on and off using the Linux mt command. The mt man page information for doing this is not helpful at all.

To turn compression off use 0 as the switch, to turn it on use 2 as the switch and to find out whether it is on or off use 1 as the switch.

Your commands will look like this

mt -f /dev/st0 datcompress 1 # tell if compression on or off
mt -f /dev/st0 datcompress 0 # turns off compression
mt -f /dev/st0 datcompress 2 #turns on compression

-j

 Comment on this Post

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: