TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ANDY BURNS
from: ROB MORLEY
date: 2019-03-06 18:37:00
subject: Re: Zeroeing out unused s

On Wed, 6 Mar 2019 09:12:05 +0000
Andy Burns  wrote:

> R.Wieser wrote:
>
> > I'm intending to do a raw backup (alike DD do if I'm not mistaken)
> > of the SD card on a Windows machine and than zipping it.  For that
> > reason I would like to clear all unused sectors before making the
> > copy, as than the zipping will result in the smallest possible file.
> >
> > Q: Does Stretch have a program available which can do that, and if
> > so which is it ?
>
> 

I'd have done
cat /dev/zero > dummy.file && rm dummy.file
easy to remember and type but apparently a lot slower than zerofree.

The secure delete package has an option to wipe empty space too,
sfill -fz
would seem to do the job, but I'm not sure how it does it.

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.