How to Unlock Drive After Failed Linux Secure Erase

Got a data recovery situation and have a question? This is where to ask.
Post Reply
lcoughey
Site Admin
Posts: 980
Joined: Thu Jan 08, 2015 7:23 pm
Location: Ontario, Canada
Contact:

How to Unlock Drive After Failed Linux Secure Erase

Post by lcoughey »

If you ever use Linux to do a secure erase of a hard drive and it fails to complete, the drive will show as password protected and the LBA sectors will not be accessible. Here is the command to disable the drive's security.

>sudo hdparm --security-disable xxxx /dev/sd?

Note: sd? = needs to be changed to the drive you are wishing to unlock, such as /dev/sdb or /dev/sdc

If you want to check the status of a drive with hdparm, the command is

>sudo hdparm -i /dev/sd?
Post Reply