🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How The FBI Finds Your DELETED Files

#338181
From: Paul
Date: Tue, 22 Sep 2026 18:22
169 lines
8280 bytes
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/windows-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.

   Paul
Technical Details
Message-ID: <118uh0k$13l2p$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <bd867cbc2e2b43c4f79d@n2n.oc2mx.net> <1171krk$7149$4@dont-email.me> <2agralltd01vct69mvhe0a3hg93naikq2q@4ax.com> <769207146714792a6766bec3e606f879@msgid.frell.theremailer.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Paul <nospam@needed.invalid>
Newsgroups: alt.comp.os.windows-11,alt.privacy.anon-server,misc.phone.mobile.iphone
Subject: Re: How The FBI Finds Your DELETED Files
Date: Tue, 22 Sep 2026 14:22:12 -0400
Organization: A noiseless patient Spider
Lines: 169
Message-ID: <118uh0k$13l2p$1@dont-email.me>
References: <bd867cbc2e2b43c4f79d@n2n.oc2mx.net>
 <1171krk$7149$4@dont-email.me> <2agralltd01vct69mvhe0a3hg93naikq2q@4ax.com>
 <769207146714792a6766bec3e606f879@msgid.frell.theremailer.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 22 Sep 2026 18:22:13 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1168473"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+L2VdcPf3QlIEvFJ3ZntRKiZV931qFncY="; posting-host="6d8a4a921d9772aefc05823b52954df4"
User-Agent: THIS SPACE FOR RENT
Cancel-Lock: sha1:EvvFWz9a9plKRK59hAPw0Szg8QA= sha256:BuanB4554yusASYds67QrGF0tHDHjlqDEVrp5eqIH5o=
	sha1:rICdxxARuDVdOC3PjUrrlMDhw0Q= sha256:cvcBqHPr9Ux6FGpiCfR7rnsYA8OvKQUwFbXiU5Z/A1s=
In-Reply-To: <769207146714792a6766bec3e606f879@msgid.frell.theremailer.net>
Content-Language: en-US