martijnvanbrummelen / nwipe

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

HPA_DCO_007 - Add HPA/DCO capability #457

Closed PartialVolume closed 1 year ago

PartialVolume commented 1 year ago
  1. Fix issue in PDF certificate where a drive that doesn't support device configuration overlay, shows 512 bytes as the disc size in the "Size(Real)" area on the certificate.

  2. Fix a comment in the log that suggests you might be using a USB adapter or memory stick and those device can cause an indeterminate HPA/DCO status. This is now corrected so that we check the bus is USB before we issue that message.

  3. Changes to some GUI text, replaced 'area' with 'sectors'.

  4. Aligned "HPA/DCO No hidden sectors detected" to the drive model/serial text that it alternates with. One character left.

  5. Nwipe's version and operating system information that is always printed to the console on exit, was not appearing in the optional log file, as optionally specified on the command line. This was caused because those nwipe_log() calls were happening before the command line options had been parsed. Essentially there was no ~spoon~ log file. Comments were made in the nwipe.c as a reminder to use nwipe_log() calls with caution, prior to the options parser.

  6. Made changes to the logic in the HPA_dco functions such that a device that does not appear to support device configuration overlay and host protected area is classified as HPA_NOT APPLICABLE in regards to the hpa_status which is important for the PDF certificate code so that the fields in the certificate are updated appropriately.