Basically we are know that "How to Unlock Western Digital drive on WINDOWS" because hard disk unlock driver given only for Windows OS . Now We Learn that "HOW TO UNLOCK Western Digital DRIVE ON LINUX" :)
-
sg-3 utils install According your Distro (http://sg.danny.cz/sg/sg3_utils.html)
DownloadLink - http://sg.danny.cz/sg/p/sg3-utils_1.45-0.1_amd64.deb -
sudo apt-get install python
-
sudo apt-get install python3
-
sudo apt-get install gparted
-
sudo apt-get upgrade
-
dmesg | grep -i scsi
orsudo dmesg | grep -i scsi
(IN this COMMAND : Check your harddisk , Where is [sdb/sdc/sdd] Connected with you disk) For EXAMPLE:-sd 5:0:0:0: [sdb] Attached SCSI disk (At here "sdb" is your disk) -
select path (like "
cd Desktop/
...") where you have "cookpw.py" (without Quotes) in your System or drive . -
chmod u+x cookpw.py
-
./cookpw.py YOUR_HARDDISK_PASSWORD >password.bin
-
Now it is not necessary , if you want to check harddisk path so check with command (gparted) or (sudo gparted)
-
sudo sg_raw -s 40 -i password.bin /dev/sdb c1 e1 00 00 00 00 00 00 28 00