Question: I’m confused about the differences between the Host Protected Area (HPA), Device Configuration Overlay (DCO), and the service area of a HDD or SSD. From what I gather on the wiki pages, disks can have the HPA, DCO, or even both, but it’s not clear to me why have both. They seem to serve the same function. And then there’s the service area, which I think is the firmware of the drive controller.

What are the differences between the HPA, DCO, and service area?

Answer: A service area is a logical area on the hard-drive (residing on the platters)set aside by hard-drive vendors for internally managing the drive.These areas are outside the hard-drive’s Logical Block Address (LBA) space and assuch are non-addressable and inaccessible via the standard ATA commands.The service area contains both code and data modules, such as defect managementmodules, SMART data modules, self-test modules and much more.

Here’s an overview of the disk areas:

disk firmware area, user addressable data area, host protected area, and device configuration overlay

In order to access the service area, Programmable IO must be used tosend commands directly to the hard-drive’s IO port. These commands are uniqueto the hard-drive vendor and are not publicly disclosed, used rather byvendor tools and some sophisticated viruses such as Stuxnet.

Disk Firmware Area (DFA)

In most cases this area is the one that is called service area.

The firmware is composed of a series of modules. Examples are:SECU (Security System Module), P-List, G-List, T-List, SMART Attributes,and U-List (Firmware Zone Translator).See also Bad sector remapping.

A portion of the disk firmware usually resides on the drive, loaded on power upby code located on the controller board of the hard-drive and managing the disk untilthe disk is shutdown, or sometimes residing in flash memory located on the disk controllerchip.

Host Protected Area

The Host Protected Area (HPA) is used for holding diagnostics and otherutilities required by the manufacturer such as the boot sector,the exact content depending upon the manufacturer.It may contain information about the user addressable sectors, start of thereserved area, and code for booting.

Device Configuration Overlay

A Device Configuration Overlay (DCO) is similar to the HPA, but is used bymanufacturers to configure drive sizes and may exist in addition to the HPA.

Its purpose is to allow the PC manufacturers to purchaseone disk and market it as different models of different sizes.It can also be used to enable and disable features on the disk.

References: