🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #338199

Re: How The FBI Finds Your DELETED Files

#338199
From: Nomen Nescio
Date: Thu, 24 Sep 2026 05:38
207 lines
8725 bytes
On 22 Sep 2026, Paul <nospam@needed.invalid> posted some
news:118uh0k$13l2p$1@dont-email.me: 

> On Mon, 9/21/2026 4:12 PM, Nomen Nescio wrote:
> 
>> 
>> Did you ever experiement with this?
>> 
>> fsutil file createnew zeroes.txt 100000000 (Any size you want etc.)
>> 
>> Creates a file full of zeroes.
>> 
> 
> *********************** CoPilot Answer *****************************
> **Short answer:** **`fsutil file createnew` does *not* write 93 GB
> of zeroes.** It finishes instantly because it uses an NTFS metadata
> trick: **it sets the file *valid data length* and *end-of-file* in the
> MFT without actually writing the data blocks.** NTFS then *logically*
> treats the file as containing zeroes, but the disk blocks are not
> physically written. 
> 
> This is why creating a 93 GB file appears instantaneous.
> 
> ---
> 
> ###  What actually happens inside NTFS
> The command:
> 
> fsutil file createnew bigger.txt 93605473280
> 
> invokes the NTFS **SetEndOfFile** + **SetValidDataLength** operations.
> These do the following: 
> 
> - **Allocate clusters** for the file in the MFT metadata (extent
> list). - **Mark the file as having valid data up to the specified
> length.** - **Do NOT write zeroes to disk.**
> 
> NTFS guarantees that any unwritten region of a file reads back as
> zeroes, so it doesn’t need to physically write them. This is a
> filesystem invariant. 
> 
> This behavior is explicitly documented:
> -  createnew  *"creates a file of the specified name and size, with
> content that 
>    consists of zeroes"* - but this is done by metadata, not by writing
>    the zeroes. (
>    https://learn.microsoft.com/en-us/windows-
server/administration/wind
>    ows-commands/fsutil-file ) 
> - It *pre‑allocates disk space by directly manipulating file system
> metadata*, 
>    avoiding byte‑by‑byte writes.    (
>    https://devgex.com/en/article/00012348 ) 
> 
> ---
> 
> ###  Why it’s so fast
> Because NTFS only updates:
> 
> - The MFT entry
> - The file’s allocation extents
> - The valid data length
> 
> These are tiny metadata writes (hundreds of bytes), not gigabytes.
> 
> No disk I/O proportional to file size occurs.
> 
> ---
> 
> ###  Important consequences
> #### 1. **It is NOT a sparse file**
> Multiple sources confirm that `fsutil file createnew` does *not* set
> the sparse flag. 
>  ( https://stackoverflow.com/questions/982659/quickly-create-large-
file
>  -on-a-windows-system ) 
> The file really consumes disk space - it’s just not filled with
> zeroes by writing. 
> 
> #### 2. **It does NOT test disk write speed**
> If you need to actually force 93 GB of writes, this command won’t
> do it. 
> 
> #### 3. **Reading the file returns zeroes**
> NTFS guarantees unwritten regions read as zeroes, so the file behaves
> like a zero‑filled file. 
> 
> ---
> 
> ###  How Windows fills the file "instantly"
> A key detail from Process Monitor analysis:
> Tools like Contig create large files by **writing a single zero at the
> last byte**, and NTFS implicitly zero-extends the rest.
> 
>  ( https://stackoverflow.com/questions/982659/quickly-create-large-
file
>  -on-a-windows-system ) 
> 
>  fsutil createnew  does something even simpler: it doesn’t write
>  *any* data at all — it only sets metadata. 
> 
> ---
> 
> ###  Summary
> `fsutil file createnew` finishes instantly because:
> 
> - It **does not write 93 GB of zeroes**
> - It **only updates NTFS metadata**
> - NTFS guarantees unwritten regions read as zeroes
> - The file **does occupy disk space**, but without physical writes
> 
> This is a filesystem‑level optimization, not a disk‑level write.
> *********************** End: CoPilot Answer
> ***************************** 
> 
> So don't do that, OK ?
> 
> I checked with a hex editor. I filled a volume with /dev/random data,
> deleted the file, then did the fsutil command.
> 
> Using hex edit directly on the zeroes.txt, it reads back zeros as you
> scroll through it with hex edit.
> 
> The neat thing is, when you run HxD.exe as administrator and look at
> the physical layer of the disk, the /dev/random data is sitting there.
> The zeros being "faked", cannot be seen.
> 
> This means your command is *absolutely useless* for erasing or filling
> anything. If you delete zeroes.txt, the underlying content at the
> physical layer is still there. All that random data I used as a marker
> of the physical layer is still there. 
> 
> Whereas, the dd.exe command, if you use that command, it takes time to
> finish, it works at the layer you would expect, when issuing the
> command. It can overwrite a partition or overwrite the entire storage
> device. It depends on the status of a partition, whether the
> particular ancient utility I use, works or not. We do this first, to
> check what we can smash, before we smash stuff.
> 
> D:\>dd.exe --list                                # command prompt
> administrator window rawwrite dd for windows version 0.6beta3.
> Written by John Newbigin <jn@it.swin.edu.au>
> This program is covered by terms of the GPL Version 2.
> ...
> 
> NT Block Device Objects
> \\?\Device\Harddisk0\Partition0            <=== The entire boot disk.
> Can write this (um, very bad...) 
>   link to \\?\Device\Harddisk0\DR0
>   Fixed hard disk media. Block size = 512
>   size is 4000787030016 bytes
> \\?\Device\Harddisk0\Partition1            <=== ESP. Cannot dd this.
>   link to \\?\Device\HarddiskVolume1
> \\?\Device\Harddisk0\Partition2
>   link to \\?\Device\HarddiskVolume2       <=== Microsoft reserved. No
>   file system. Fixed hard disk media. Block size = 512
>   size is 16777216 bytes
> \\?\Device\Harddisk0\Partition3
>   link to \\?\Device\HarddiskVolume3       <=== C: drive
> \\?\Device\Harddisk0\Partition4
>   link to \\?\Device\HarddiskVolume4       <=== Recovery partition
>   Fixed hard disk media. Block size = 512
>   size is 1073741824 bytes
> ...
> 
> \\?\Device\Harddisk1\Partition0            <=== My second disk
>   link to \\?\Device\Harddisk1\DR1
>   Fixed hard disk media. Block size = 512
>   size is 103809024000 bytes               <=== Write-able, when you
>   see this field 
> \\?\Device\Harddisk1\Partition1
>   link to \\?\Device\HarddiskVolume9       <=== D: partition is not
>   writeable at the moment. Size not listed. 
> 
> Virtual input devices
>  /dev/zero   (null data)
>  /dev/random (pseudo-random data)
>  -           (standard input)
> 
> Virtual output devices
>  -           (standard output)
>  /dev/null   (discard the data)
> 
> D:\>  dd.exe if=/dev/zero of=D:\zeroes.txt bs=1M count=89000      <===
> Physically writes 89000MB of zeros 
>                                                                       
>                               3.8GB/sec, on D: 
> 
> I had HxD open the whole time, and scrolling the Harddisk1 device,
> there is none of that /dev/random data there any more. I erased it
> with the dd.exe run .
> 
> "fsutil file createnew" is not UNIX mkfile, and should not be mistaken
> for one. It's a trap for the unwary. Any time a recipe finishes too
> fast, you should be immediately suspicious.

It's pretty handy and I think you could make it do what the op asked. 
FAT/FAT32 would work okay, NTFS not so much.  There could be some
personal data in the MFT record area, depends.  Misuse: It can be used
to zero system files on infected system by ransonware code for example. 

> fsutil file createnew zeroes.txt 100000000

Try fsutil file setzerodata offset=0 length=100000000 zeroes.txt

It could take a while.
Technical Details
Message-ID: <f6909128e906253124ea5c28203c809c@dizum.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!sewer!news.dizum.net!not-for-mail
References: <bd867cbc2e2b43c4f79d@n2n.oc2mx.net> <1171krk$7149$4@dont-email.me> <2agralltd01vct69mvhe0a3hg93naikq2q@4ax.com> <769207146714792a6766bec3e606f879@msgid.frell.theremailer.net> <118uh0k$13l2p$1@dont-email.me>

Show Full Headers
Complete Article Headers
From: Nomen Nescio <nobody@dizum.com>
References: <bd867cbc2e2b43c4f79d@n2n.oc2mx.net>
 <1171krk$7149$4@dont-email.me> <2agralltd01vct69mvhe0a3hg93naikq2q@4ax.com>
 <769207146714792a6766bec3e606f879@msgid.frell.theremailer.net>
 <118uh0k$13l2p$1@dont-email.me>
Subject: Re: How The FBI Finds Your DELETED Files
Message-ID: <f6909128e906253124ea5c28203c809c@dizum.com>
Date: Thu, 24 Sep 2026 07:38:09 +0200 (CEST)
Newsgroups: alt.comp.os.windows-11, alt.privacy.anon-server,
 misc.phone.mobile.iphone
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!sewer!news.dizum.net!not-for-mail
Organization: dizum.com - The Internet Problem Provider
X-Abuse: abuse@dizum.com
Injection-Info: sewer.dizum.com - 2001::1/128