On Friday 12 January 2018 15:20:51 Luc Lalonde wrote:

> Hello Gene,
>
> Would a variant like this:
>
>          /usr/sbin/mtx load 1 0;
>          /usr/bin/mt -f /dev/st0 compression 0;
>          /usr/bin/mt -f /dev/st0 setblk 524288;
>          /usr/bin/dd if=/dev/zero of=/dev/st0 bs=512k count=1;
>          su amandabackup -c "/usr/sbin/amlabel -f Monthly-LTO7
> 000321L7 slot 1";
>          /usr/sbin/mtx unload 1 0;
>
> work?
>
> During my tests with this, the hardware compression stays disabled
> when I load a new tape.
>
> Thanks!
>
Hey, if it works, its right. ;-)

> On 2018-01-11 10:51 PM, Gene Heskett wrote:
> > 1. rewind the tape.
> > 1a. Do NOT remove tape from drive, or cause it to read the tape
> > other than what I write here until after step 5.
> > 2. read the label out to a 32k file.
> > 3. rewind the tape.
> > 4. Turn the compression off, probably with mt.
> > 5. Immediately re-write that label while the tape is rewound, and
> > the hidden tape id block in front of the label will get rewritten
> > too, with that compression flag off.


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

Reply via email to