I would like to ask how to find out in Windows whether or not a disk contains any data ?
In other words: I need to verify if any non-zero bytes exist on the disk.
Can this be done with any tool shipped with Windows (10 in my case) or any other tool for Windows (preferably freeware) ?
what I have tried so far
Some hex editors like HxD are capable of raw disk access ("disk sector editing"). On my disk, I only see entire pages full of zeros. But scrolling down the raw disk output of a 4 TB disk would take ages – it is not humanly possible. There are search functions, but they only allow me to search for a specific hex value. There is no NOT operator to search non-zero values. Regex would work, but I have not found a free hex editor with regex search.
use cases
There are a couple of use cases:
- Other users (see similar questions below) have wiped their drives and want to ascertain that the job was successful, i.e. the drive is filled with zeroes only.
- My personal scenario: I have purchased a HDD a few years ago, but I don't remember whether or not I ever copied any data onto it. The "disk management" applet says "not initialized" and "unallocated". This indicates that I probably never used the disk. But sometimes disks or partitions are not recognized by the OS although they contain data. In this case I would lose my preexisting data if I re-initialize/partition/format the disk. Data loss would be a horrible scenario for me. Therefore, I want to make absolutely sure that no data is present and the disk is indeed blank.
similar questions
There are many similar questions, but they all pertain to Linux:
- How to verify that hard drive is filled with zeroes in Linux?
- Is there a faster way to verify that a drive has been fully zeroed?
- how to know if some data already exist on device - disk
- https://serverfault.com/questions/867956/how-to-know-if-some-data-already-exists-on-a-device-disk
- How to check if a particular disk sector contains data?