Articles in this section

How to determine if a disk has been zeroed?

Context

A user may need to verify if a disk that was previously used as an Aerospike storage device, has been properly zeroized.

Method

You should be able to grab the first 128K of a disk and verify there is no data:

# head -c 128000 /dev/sdb|hexdump -C
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
0001f400

or

# head -c 1024 /dev/sdb|od -An -t x1
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*

You can also just print the lines that are not zeroed with:

sudo head -c 1048576 /dev/sde | xxd | grep -v "0000 0000 0000 0000 0000 0000 0000 0000" | less

If there isn't any data returned then it is zeroized.


Applies To Earliest Version

Pre 4.9

Applies To Latest Version

Current Version
Was this article helpful?
0 out of 0 found this helpful