# 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