Last active
July 10, 2022 16:08
-
-
Save imsmo/21ad8b6c59ba26fc38f860d0d0e84c81 to your computer and use it in GitHub Desktop.
Unlocking WD Passport Hard Disk on Linux/ Ubuntu Operating System
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Steps to follow: | |
1. Open Terminal | |
2. 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) | |
3 Download the code zip file: https://github.com/geekhaidar/WD-Passport-Unlock-Linux | |
4. Unzip the files downloaded in the Download folder | |
5. 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 ! | |
(Note: If usr/bin/python no such file or directory error display then install paython-minimul using this URL: sudo apt-get install --reinstall python-minimal) | |
- Example for debian : http://sg.danny.cz/sg/sg3_utils.html | |
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 | |
6. 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. | |
7. You will get an output : "SCSI Status : Good" on being successful |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment