Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Unlocking a password-protected hard-disk (2018) (georgovassilis.com)
2 points by ggeorgovassilis on April 6, 2023 | hide | past | favorite | 4 comments


So you don’t even need a password to unlock it? Weird mechanism. I thought they would encrypt the few first sectors or so.


How 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.


In the article, I didn’t see any line using a password!


...

  # 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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: