Steps to follow:
-
Open Terminal
-
Type Command : dmesg | grep -i scsi (This will provide your WD Passport drive name)
Example : In my case its "sdb" (See the line [sdb] Attached SCSI disk above the WD My Passport)
-
Download the code zip file
-
Unzip the files downloaded in the Download folder
-
Type in Terminal :
- cd Downloads/
- cd WD-Passport-Unlock-Linux-master/
- chmod u+x cookpw.py
- ./cookpw.py THEPASSWORD >password.bin
(Note: Enter your Password instead of THEPASSWORD. Its done twice since you will get an error after running once) 6. Install 'sg3_utils' package for your distro depends on the distro you use !
-
Example for debian :
-
Then go to Download and Build
-
Then scroll down to download 1.42 --- sg3-utils_1.42-0.1_i386.deb (for 32 bit system) or sg3-utils_1.42-0.1_amd64.deb (for 64 bit system) and install it by just opening it.
-
In case link expires refer my github link for sg3_utils -- https://github.com/geekhaidar/sg3_utils_WD
- sudo sg_raw -s 40 -i password.bin /dev/sdb c1 e1 00 00 00 00 00 00 28 00
- (Note : Instead of "sdb" enter the name of your WD as acquired in Step 2)
- It will ask your password enter it.
- You will get an output : "SCSI Status : Good" on being successful