How to unlock an SSD disk with hdparm?
I was able to get this to work on my Western Digital WD20EURS. After piecing together tips from all over Google, I was able to get a master password, research the commands of
hdparm, and use your example in your original question to resolve my issue. Maybe this will help you too.
First off, I found a list of master passwords for various brands of drives.
Here are two locations, (replaced with Web Archive versions to avoid link rot)
- List of hard disk ATA master passwords
- How to remove password from your hard disk
- Used ESCAPE to cancel Bios HD password request.
- Booted into CentOS7 CLI (previously installed
yum install hdparm)
hdparm -I /dev/sdato check if drive was "locked" ( -I is capital i )
hdparm --user-master m --security-unlock PASS /dev/sda
- m = using master password
- PASS = for me, typing 'WDC' ten times, with a finishing 'W'
- found this password in the links listed above
hdparm -I /dev/sdaagain ( -I is capital i ). This time the drive showed "not locked" (at which I hesitantly rejoiced)
hdparm --user-master m --security-disable PASS /dev/sda
- This should disable the password on the hard drive and allow you to boot without needing a password next time.
- Then I put the drive back into my Windows machine. I was able to see all the partitions in the drive, erase them, and use this new drive!
Try using the master password to secure-erase the disk. Performing a secure erase will reset the user password. You can find lists of default master passwords by vendor through google searches. For example, this web site may be useful: