Skip to main content

Wester Digital My Passport Utility

Project description

wdpass

WD Passport Ultra Complete Utilities for Linux.

Thanks to:

Intro

This script let you unlock, change password and erase Western Digital Passport devices on Linux platform.

Install

Install Dependencies:

  • lsscsi package or any package provides lsscsi command.
  • <Python.h> header file in libraries. (python3-dev or python3-devel package)

For example on Fedora:

sudo dnf install lsscsi python3-devel

Install wdpass

sudo python3 -m pip install wdpass

Usage

Run script as root.

There are few options:

-h, --help            show this help message and exit

Lists all possible arguments.

-s, --status          Check device status and encryption type

Get device encryption status and cipher suites used.

-u, --unlock          Unlock

You will be asked to enter the unlock password. If everything is fine device will be unlocked.

-us, --unlock_with_saved_passwd Unlock with the password saved

Unlock using the saved password. If everything is fine device will be unlocked.

-sp, --save_passwd    Save password

When unlock password, it will save user password to passwd.bin, so you can use "-us" for next time to auto unlock.

-m, --mount           Enable mount point for an unlocked device

After unlock, your operating system still thinks that your device is a strange thing attached to his usb port and he don't know how to manage. You need this option to force the O.S. to rescan the device and handle it as a normal external usb harddrive.

-c, --change_passwd   Change (or disable) password

This option let you to encrypt your device, remove password protection and change your current password. If device is "without lock" and you want it to be password protect leave the "OLD password" field empty and choose insert the new password. If the device is password protected and you want to be as a normal unencrypted device, inser the old password and leave the "NEW password" field empty. If you only want to change password do it as usual.

-e, --erase           Secure erase device

"Erase" the device. This will remove the internal key associated to you password and all your data will be unaccessible. You will also lose your partition table and you will need to create a new one (you can use fdisk and mkfs).

-d DEVICE, --device DEVICE  Force device path (ex. /dev/sdb). Usually you don't need this option.

The script will try to auto detect the current device path of your WD Passport device. If something is wrong or you want to manually specify the device path yourself you can use this option.

Disclaimer

I'm in no way sponsored by or connected with Western Digital. Use any of the information contained in this repository at your own risk. I accept no responsibility.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for wdpass, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size wdpass-0.0.3-py3-none-any.whl (8.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size wdpass-0.0.3.tar.gz (8.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page