3 ms·
Unlocking a password-protected hard-disk (2018)
- sinuhe69 4y agoSo you don’t even need a password to unlock it? Weird mechanism. I thought they would encrypt the few first sectors or so.
- justsomehnguy 4y agoHow you came to this conclusion? You need to know the password to unlock the drive and if you use Lenovo machine it transforms it based on the disk identity.
- sinuhe69 4y agoIn the article, I didn’t see any line using a password!
- justsomehnguy 4y ago... # This is getting the drive ID: sudo hdparm --Istdout /dev/sda > sda.ata_identify # converting it to Lenovo format and storing as a variable '$P': P="$(ruby pw.rb sda.ata_identify)" # Unlocking and disabling security on the drive using $P variable in the password argument: sudo hdparm --security-unlock "$P" /dev/sdb sudo hdparm --security-disable "$P" /dev/sdb