Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WD Passport 5TB - failed to set password - py_sg.SCSIError: (0, 3, 0, '') #25

Open
pe3no opened this issue Nov 1, 2021 · 0 comments
Open

Comments

@pe3no
Copy link

pe3no commented Nov 1, 2021

Dear Developer,
I was successfull with setting password at my previous 2TB and 4TB WD Passports.
I just bought a 5TB new WD Passport and did the same way but I had an error and now the drive has a blocking problem... could you help, please? I did the following:
$ sudo wdpassport-utils.py --device /dev/sdg -c
Changing password for /dev/sdg...
New password:
New password (again):
[0, 1, 68, 87, 0, 0, 0, 0, 232, 3, 0, 0, 78, 83, 71, 69, 87, 81, 48, 75, 0, 0, 0, 0, 119, 100, 112, 97, 115, 115, 112, 111, 114, 116, 45, 117, 116, 105, 108, 115, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52]
Traceback (most recent call last):
File "/usr/local/bin/wdpassport-utils.py", line 457, in
main(sys.argv[1:])
File "/usr/local/bin/wdpassport-utils.py", line 443, in main
change_password()
File "/usr/local/bin/wdpassport-utils.py", line 287, in change_password
write_handy_store_block1(*hash_parameters)
File "/usr/local/bin/wdpassport-utils.py", line 177, in write_handy_store_block1
write_handy_store(1, bytes(sector_data))
File "/usr/local/bin/wdpassport-utils.py", line 99, in write_handy_store
py_sg.write(dev, _scsi_pack_cdb(cdb), data)
py_sg.SCSIError: (0, 3, 0, '')

Now when I try to unlock the drive I get the error:

$ sudo wdpassport-utils.py --device /dev/sdg -u
[!] Something wrong opening /dev/sdg

I have the same error when I re-try to set the password:
$ sudo wdpassport-utils.py --device /dev/sdg -c
[!] Something wrong opening /dev/sdg

Additionally, the drive disappears from the drive list...

Thank you in advance for your feedback/help and best regards, Piotr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant