When you format a disk, shrink a partition, or run a file shredder, you are working with the capacity the operating system can see. A drive can also hold regions that the operating system never sees, and those regions survive every ordinary cleanup. The HPA DCO pair is the usual reason.
Understanding these two mechanisms matters before you resell a laptop, retire a server disk, or promise that a machine has been wiped. If a hidden area exists, some of the original data may still be sitting on the platters.
A Host Protected Area is a range of sectors at the end of the drive that the firmware removes from its reported capacity. The mechanism is a simple one: a SET MAX ADDRESS command tells the drive to behave as though it ends earlier than it really does. The operating system, the partition table, and any formatting tool then see a smaller disk, and everything past that boundary is invisible.
The feature was designed so that vendors could store recovery images, diagnostic tools, or a one-key restore environment outside the user's reach. Many laptops shipped with exactly that arrangement, which is why a full reinstall sometimes leaves a recovery utility untouched. HPA can also be set accidentally by older imaging or cloning software that misreads a drive's geometry.
Because the hidden sectors are still physically present, they can still contain data. Old files written before the area was reserved, or recovery images written into it, remain readable by any tool that can ask the drive to expose them again.
A Device Configuration Overlay works at a different level. Instead of trimming the addressable end of the drive, DCO lets firmware hide or disable capabilities and capacity. A DCO can reduce the reported size, disable a feature set, or make one model report itself as another so that a BIOS or a controller accepts it.
Vendors use DCO to ship the same physical drive under several firmware identities, and OEMs sometimes use it to enforce a specific configuration. Because DCO changes what the drive claims to support, a drive with an active overlay can appear smaller or more limited than the hardware beneath it.
The practical consequence is the same as with HPA: capacity that the operating system cannot address is capacity that a normal wipe will never visit, even if the storage is physically present and still holds old content.
A format writes file system structures over the visible volume. A file shredder overwrites the clusters the file system reports as allocated. Neither operation knows that the drive is hiding sectors, because the hiding happens inside the drive firmware, below the level the software can query.
This is why a clean-looking disk can still leak data. Reinstall the operating system, delete every partition, overwrite free space, and the hidden region is untouched, holding whatever it held before. The only reliable approach is to identify hidden areas first and then erase the entire physical device, not just the volume the operating system mounted.
Removing an HPA or DCO is usually reversible but not risk-free. Deleting the overlay can change the visible capacity of the drive, which may shift partition offsets or confuse a controller that expected the reduced geometry. If the machine depends on a vendor recovery partition for factory reset, removing the area behind it can permanently disable that feature.
There is also the straightforward risk of touching the wrong disk. Overlay tools work on the whole device, so a mistyped selection can alter a drive you meant to leave alone. Back up first, confirm you are acting on the correct physical device, and check whether the owner still relies on the recovery environment before you remove anything.
Once you have confirmed there are no dependencies on a hidden area, the safest path is a whole-disk erase that covers every sector the drive will expose, followed by a second pass if the data is sensitive. Back up anything you need before you begin, because this step is irreversible.
Step 1. Select the physical disk and open Wipe Disk.

Step 2. Read the data-loss warning carefully and confirm you have the right disk.

Step 3. Choose the number of wipe passes, then click Proceed to execute the erase.
Step 4. Wait for the wipe to complete and verify that the drive reports as empty.

No. Formatting only touches the visible volume. The overlay is a firmware setting, so it must be cleared by a tool that communicates with the drive directly, not by the operating system's format dialog.
Usually the opposite: removing an HPA can reveal space that was previously hidden, so the reported capacity grows. Removing a DCO can also change capacity. Either way, verify partition offsets afterward, because the geometry may no longer match what was there before.
It can be. Data in an HPA or a DCO-gated region is invisible to ordinary cleanup and can survive a reinstall. Before reselling or disposing of a drive, erase the whole device rather than just the file system.