martijnvanbrummelen / nwipe

nwipe secure disk eraser
GNU General Public License v2.0
774 stars 86 forks source link

HPA_DCO_010 Continuation of HPA/DCO integration. #462

Closed PartialVolume closed 1 year ago

PartialVolume commented 1 year ago

The Seagate EXOS family of drives don't support the ATA drive configuration overlay (DCO) command, however they do support host protected area (HPA). Therefore these drives can have hidden sectors.

The code was changed to accommodate the slightly different way these drives respond to a hdparm -N, that is, the response is accessible max address enabled or accessible max address disabled. The new code correctly determines a the status of a drive in regards to whether it has hidden sectors or not and what it's apparent and real size is.