-
Download the Passport Drive utility
wdpassport-utils
, replace the imported librarypy_sg
withpy3_sg
.import py3_sg as py_sg
-
Install packages
python-devel
andlsscsi
using the package management. -
Install python library
py3_sg
usingpip3
:sudo pip3 install --user git+https://github.com/tvladyslav/py3_sg
-
Get the drive name, check the line
[xxx] Attached SCSI disk
above the WD My Passport Drive.dmesg | grep -i scsi
-
Mount the drive and enter the password.
sudo ~/wdpassport-utils.py -u --device /dev/xxx