- Download the Passport Drive utility wdpassport-utils, replace the imported library
py_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 python3 -m pip install py3_sg 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
Back to Memo