TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: DENNIS LEE BIEBER
from: KNUTE JOHNSON
date: 2019-10-30 10:41:00
subject: Re: SDCardKiller

On 10/30/2019 10:16, Dennis Lee Bieber wrote:

>  Since most flash memory erases to 1s, the first half is mostly a no-op.
> The card obtains an allocation unit from its free-list, erases it, and then
> essentially does nothing but declare the sectors in use as writing all 1s
> to a unit filled with 1s makes no changes.
>
>  1-bits can be changed to 0-bits but I doubt the SD card controller chip
> is smart enough to realize it can do an in-place update -- so again the
> card will obtain a free allocation unit, erase it to 1s (and copying any
> data belonging to other unopened files to the unit), then write 0s to the
> sectors of the opened file.

So would it make more sense to just write a file of 0s and then erase
it?  And to change the file size to 4MB?  Or does every write to a file
whether the same data or not cause an erase and a write to a different
block?  I which case we could just write 0s to the file over and over again.

--

Knute Johnson

--- 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™.