bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#17149: shred - tape data


From: Pádraig Brady
Subject: bug#17149: shred - tape data
Date: Tue, 01 Apr 2014 13:38:27 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

On 04/01/2014 01:18 PM, Rupert Russell wrote:
> Pádraig,
> 
> This seems to be getting my task done.
> 
> for i in $(seq 1 $NUMTAPES) ; do
>               mtx -f $LOADER load $i
>       for j in $(seq 1 $NUMWIPES); do 
>                       shred -v -n 1 $TAPE
>                       mt -f $TAPE rewind
>       done         
>                       shred -v -z -n 0 $TAPE
>               mt -f $TAPE rewind
>               mtx -f $LOADER unload $i
> done
> 
> By the way, is there a difference between what these two write to the media?
> mt -f $TAPE erase   and
> shred -z -n 0 $TAPE

It depends I suppose.
`mt erase` might trigger a command to the hardware
to activate a degausser or something, rather than writing zeros,
though from a very quick google it defaults to writing zeros.

BTW I find this a handy way to see what shred is doing
rather than reading the docs:

  strace -e write shred -s 1K /dev/null

thanks,
Pádraig.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]