Unlock WD Password Protected HDD in Linux

because the full solution was spread across a few different posts, @easyt50 was kind enough to put all of the necessary commands together:

sudo apt-get install python-pip python-dev lsscsi

sudo apt install python-setuptools python-wheel

sudo pip install py_sg

cd ~; wget https://raw.githubusercontent.com/evox95/wdpassport-utils/master/wdpassport-utils.py

chmod +x /home/user/wdpassport-utils.py

Then
Plug in your password protected drive.
Run in terminal this command and enter password:

sudo python /home/user/wdpassport-utils.py

sudo ~/wdpassport-utils.py -u

1 Like