{"id":9546,"date":"2020-03-03T23:03:16","date_gmt":"2020-03-04T06:03:16","guid":{"rendered":"https:\/\/www.apolonio.com\/blog\/?p=9546"},"modified":"2020-03-03T23:03:16","modified_gmt":"2020-03-04T06:03:16","slug":"western-digital-my-passport","status":"publish","type":"post","link":"https:\/\/www.apolonio.com\/blog\/?p=9546","title":{"rendered":"Western Digital My Passport"},"content":{"rendered":"\n<p>So last week on Amazon there was a sale for this 5 TB Western Digital Drive for $99.99 plus tax.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"600\" src=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/My-Passport.jpg\" alt=\"\" class=\"wp-image-9547\" srcset=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/My-Passport.jpg 800w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/My-Passport-300x225.jpg 300w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/My-Passport-768x576.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption>My Passport 5TB<\/figcaption><\/figure>\n\n\n\n<p>I purchased this primarily to backup files and bring them to work.  Having 5TB in a small package seemed cool.<\/p>\n\n\n\n<p>But there was another side thing that was interesting, this drive had hardware encryption.  I believe I have had several Western Digital drives for the Element line that did not have encryption, and I would either use Truecrypt (which works\/worked in both Windows and Linux but no longer supported), Bitlocker (Windows Only) or LUKS(Linux only).  I know there are other options like GPG that work in both environments, but I was wondering if this hardware encryption could work in both Linux and Windows.  The primary goal of this purchase was a 5TB drive, but the encryption was kind of a cool thing to have.  <\/p>\n\n\n\n<p>So lets take a look at it.<\/p>\n\n\n\n<p>When I first got the drive I plugged it in my PC and saw the drive and it was not encrypted.  There were two files in there<\/p>\n\n\n\n<p>E:\\Install Discovery for Mac.dmg<br>E:\\Install Discovery for Windows.exe<\/p>\n\n\n\n<p>I run the Windows executable and a little applet appears in my system tray (bottom right)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"37\" height=\"40\" src=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/image.png\" alt=\"\" class=\"wp-image-9548\"\/><figcaption><br><\/figcaption><\/figure>\n\n\n\n<p>Expanding it give this<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"405\" height=\"683\" src=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/WD-Applet.png\" alt=\"\" class=\"wp-image-9549\" srcset=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/WD-Applet.png 405w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/WD-Applet-178x300.png 178w\" sizes=\"auto, (max-width: 405px) 100vw, 405px\" \/><\/figure>\n\n\n\n<p>Note that when I first started this up, that little gear icon was not there, and that Register your device part was not there either, this thing wanted to talk to the Internet to download other things and my network based firewall was blocking it.  I allowed it to download and got this.  This to me is pretty shady.<\/p>\n\n\n\n<p>So I now can lock it.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"393\" height=\"343\" src=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/WD-Applet-Configure.png\" alt=\"\" class=\"wp-image-9550\" srcset=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/WD-Applet-Configure.png 393w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/WD-Applet-Configure-300x262.png 300w\" sizes=\"auto, (max-width: 393px) 100vw, 393px\" \/><\/figure>\n\n\n\n<p>Looks like you can cache the password to have it automatically unlock when you reattach this drive.<\/p>\n\n\n\n<p>This is how it looks like when you move it to another machine.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/My-Passport-on-New-Machine-1024x576.png\" alt=\"\" class=\"wp-image-9551\" srcset=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/My-Passport-on-New-Machine-1024x576.png 1024w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/My-Passport-on-New-Machine-300x169.png 300w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/My-Passport-on-New-Machine-768x432.png 768w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/My-Passport-on-New-Machine-1536x864.png 1536w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/My-Passport-on-New-Machine.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Click on the CD ROM and you get this <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"468\" height=\"346\" src=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/WD-Virtual-CD-ROM.png\" alt=\"\" class=\"wp-image-9552\" srcset=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/WD-Virtual-CD-ROM.png 468w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/WD-Virtual-CD-ROM-300x222.png 300w\" sizes=\"auto, (max-width: 468px) 100vw, 468px\" \/><\/figure>\n\n\n\n<p>Click Yes and you are prompted for the password<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"496\" height=\"586\" src=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/WD-Virtual-CD-Password.png\" alt=\"\" class=\"wp-image-9553\" srcset=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/WD-Virtual-CD-Password.png 496w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/WD-Virtual-CD-Password-254x300.png 254w\" sizes=\"auto, (max-width: 496px) 100vw, 496px\" \/><\/figure>\n\n\n\n<p>Type in the password and you are able to unlock see the contents<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"493\" height=\"585\" src=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/My-Passport-Unlocked.png\" alt=\"\" class=\"wp-image-9554\" srcset=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/My-Passport-Unlocked.png 493w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/My-Passport-Unlocked-253x300.png 253w\" sizes=\"auto, (max-width: 493px) 100vw, 493px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"578\" src=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/My-Passport-Contents-1024x578.png\" alt=\"\" class=\"wp-image-9555\" srcset=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/My-Passport-Contents-1024x578.png 1024w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/My-Passport-Contents-300x169.png 300w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/My-Passport-Contents-768x434.png 768w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/My-Passport-Contents.png 1130w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>So can we do this in Linux, CentOS 7?<\/p>\n\n\n\n<p>Yes you can<\/p>\n\n\n\n<p>First of all make sure you have NTFS support<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"661\" height=\"418\" src=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/Install-NTFS-Support.png\" alt=\"\" class=\"wp-image-9556\" srcset=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/Install-NTFS-Support.png 661w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/Install-NTFS-Support-300x190.png 300w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/figure>\n\n\n\n<p>I suspect once mounted you can format to EXT3 but since I want to access this from both Windows and Linux I will leave it at NTFS.<\/p>\n\n\n\n<p>yum install ntfs-3g ntfsprogs<\/p>\n\n\n\n<p>Next you will need some supporting python packages, note that the software works only with python 2, I think I can get it to work with the more modern python 3, but for now lets just get it to work with python 2.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"661\" height=\"418\" src=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/My-Passport-supporting-python.png\" alt=\"\" class=\"wp-image-9557\" srcset=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/My-Passport-supporting-python.png 661w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/My-Passport-supporting-python-300x190.png 300w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/figure>\n\n\n\n<p>So you will need python-ip and python-devel<\/p>\n\n\n\n<p>Next you will need a python module, use the pip installer to get it<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"661\" height=\"418\" src=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/python-install-py_sg.png\" alt=\"\" class=\"wp-image-9558\" srcset=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/python-install-py_sg.png 661w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/python-install-py_sg-300x190.png 300w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/figure>\n\n\n\n<p>Then download the actual python script used to decrypt the drive<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"661\" height=\"178\" src=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/Download-My-Passport-Python-Script.png\" alt=\"\" class=\"wp-image-9559\" srcset=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/Download-My-Passport-Python-Script.png 661w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/Download-My-Passport-Python-Script-300x81.png 300w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/figure>\n\n\n\n<p>wget https:\/\/raw.githubusercontent.com\/evox95\/wdpassport-utils\/master\/wdpassport-utils.py<\/p>\n\n\n\n<p>Make it executable<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"661\" height=\"258\" src=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/Make-Script-Executable.png\" alt=\"\" class=\"wp-image-9560\" srcset=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/Make-Script-Executable.png 661w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/Make-Script-Executable-300x117.png 300w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/figure>\n\n\n\n<p>Before we continue run cat \/proc\/partitions to see what drives are there<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"661\" height=\"418\" src=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/paritions.png\" alt=\"\" class=\"wp-image-9561\" srcset=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/paritions.png 661w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/paritions-300x190.png 300w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/figure>\n\n\n\n<p>Note the sdc device with no other partitions.<\/p>\n\n\n\n<p>Now run the executable with the -s flag to show status<\/p>\n\n\n\n<p>.\/wdpassport-utils.py -s<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"661\" height=\"418\" src=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/Drive-Locked.png\" alt=\"\" class=\"wp-image-9562\" srcset=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/Drive-Locked.png 661w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/Drive-Locked-300x190.png 300w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/figure>\n\n\n\n<p>Note the sr0 device, you could mount that read only and it would be the bits to unlock it in Windows, a file called WD Drive Unlock.exe<\/p>\n\n\n\n<p>No run the command to unlock it with -u<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"661\" height=\"418\" src=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/Drive-Password.png\" alt=\"\" class=\"wp-image-9563\" srcset=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/Drive-Password.png 661w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/Drive-Password-300x190.png 300w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/figure>\n\n\n\n<p>Drive is not unlocked and you will have an sdc1 device you can mount<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"661\" height=\"498\" src=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/Drive-UnLocked.png\" alt=\"\" class=\"wp-image-9564\" srcset=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/Drive-UnLocked.png 661w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/Drive-UnLocked-300x226.png 300w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"661\" height=\"146\" src=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/Drive-Contents.png\" alt=\"\" class=\"wp-image-9565\" srcset=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/Drive-Contents.png 661w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/03\/Drive-Contents-300x66.png 300w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/figure>\n\n\n\n<p>Pretty cool, if you were to umount it and look at it again on your windows box it would be locked.<\/p>\n\n\n\n<p>Couple things I learned about this drive online<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The drive itself is encrypted, remove the drive and putting it in a new USB to SATA connecter will not decrypt the contents.<\/li><li>You can brute force the password, try and try and try., probably script it.<\/li><li>Even if you don&#8217;t set a password, you cannot mount the drive in another device.<\/li><li>You can brick this drive<\/li><li>I do not know how well this drive holds up to pros trying to break in.<\/li><\/ul>\n\n\n\n<p>So, for my use case, an offsite backup, it will work, if I add additional encryption to whatever sensitive I land on this drive, and not so sensitive I can probably just use the hardware encryption.<\/p>\n\n\n\n<p>Kind of cool.<\/p>\n\n\n\n<p>Weight: 301.6<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So last week on Amazon there was a sale for this 5 TB Western Digital Drive for $99.99 plus tax. I purchased this primarily to backup files and bring them to work. Having 5TB in a small package seemed cool. &hellip; <a href=\"https:\/\/www.apolonio.com\/blog\/?p=9546\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,11,3,9],"tags":[],"class_list":["post-9546","post","type-post","status-publish","format-standard","hentry","category-new-toys","category-technical","category-training","category-weighin"],"_links":{"self":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/9546","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9546"}],"version-history":[{"count":1,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/9546\/revisions"}],"predecessor-version":[{"id":9566,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/9546\/revisions\/9566"}],"wp:attachment":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9546"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9546"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}