Drive-Trust-Alliance / sedutil

DTA sedutil Self encrypting drive software
603 stars 232 forks source link

Check MBR Shadow during TakeOwnership #456

Open ntnx-alay opened 6 months ago

ntnx-alay commented 6 months ago

At this point in time, utility is taking ownership with provided password successfully with two classes of drives.

  1. That supports MBRShadowing
  2. That does not support MBRShadowing

However, for those drives that does not support MBRSHadowing, it reports error and tool's return code is non zero despite taking ownership.

This patch is to improve experience by checking MBRShadow capability (decoded with discovery0) prior to enable MBR.