[SOLVED] Encrypted and write protected drive, cannot format
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Encrypted and write protected drive, cannot format
I obtained an external hard drive from my grandfather recently. It was encrypted and write protected using the included Windows software. I do not have Windows and the password for this encrypted hard drive was lost a few years ago. I would like to wipe this hard drive and purpose it as my back up drive.
I have not ran into this problem before so I am at a loss as to which software to use to wipe this drive. Gparted, fdisk, cfdisk all give read/write errors and I am unable to mount it. I understand why I cannot access the drive.
Could someone please direct me to some software that runs on Linux that will allow me to do a low level format of this hard drive to bypass the encryption and write protection?
Edit:
I realize that the drive is an ATA and I can use hdparm to erase it, but I do not know the password. How to I erase the disk without the password?
The hard drive is a Western Digital My Book Essential 2TB
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,672
Rep:
I think the above really means that the drive will not work unless you pay to have it unlocked somehow.
However, if you can find a command which just wipes the drive and does not disable it you might be able to use it again.
As I understand it some drives wipe themselves on intrusion and others wipe and brick themselves.
I believe the drive uses hardware encryption so it isn't as easy as just wiping the drive. According to this thread you need a windows computer. I did read in another thread where the drive was removed from the case and was readable on linux but no indication if it could write.
Please note that you may be required to use a Windows computer with the WD software to be able to format. The drive uses hardware encryption, which likely means that only the correct Western Digital software can access the firmware to approve the re-format. The web page associated with the above link shows WD software being used.
Quote:
If you can’t remember your password then you will not be able to access the drive. However, you can reuse the drive after it has been formatted. Reformatting the drive will erase all the data on the unit, as well as remove the password from the drive. If you want to start over, check the I understand that reformatting my drive will delete all of my data and click Format. The drive will be reformatted and unlocked to start over again.
Encrypted and write protected drive, cannot format
I appreciate the quick responses.
I am probably just going to leave this drive sit until the day comes when I install Windows again, which very well might be never. I got the drive for free and was hoping to salvage it but it seems to be a bit more involved than I had hoped it would be.
Did you try to mount the drive as main HD of your computer? That's what I do in similar situations, whether the drives were encrypted or not, and a not working one going straight to the bin.
Stil worth a try to just acting as if you were installing a new system on a new drive. In a worst case scenario this will not work ;o)
Best wishes.
Quote:
Originally Posted by mralk3
I appreciate the quick responses.
I am probably just going to leave this drive sit until the day comes when I install Windows again, which very well might be never. I got the drive for free and was hoping to salvage it but it seems to be a bit more involved than I had hoped it would be.
Is it bitlocker or is it a hdd password.
I just had to repair a computer that was bitlocker encrypted, which is avaable in wins professional.
The wins disk wiuld repair or delete the partition. What worked for me was to erase with gnome-disk-utility & reinstall OS.
If it's hdd password you maybe able to use hiren's-bootcd.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,672
Rep:
Quote:
Originally Posted by orhank
Would dd if=/dev/zero of=/dev/your/hard/drive bs=512 count=1 work? It will effectively wipe out the MBR leaving you with a virgin harddisk.
I was a little sceptical about this in this particular situation as I was working on the idea that the drive may have some encryption built into the firmware which this would not be a workaround for.
However, having just spent a while messing about in both Windows* with the "hard drive manager" thing (whatever the hell they call that rubbish) and with gparted to no effect I ran "dd if=/dev/zero of=/dev/mmcblk0 bs=1024 count=10" on an SD card I was having problems formatting and, of course, I can now format it fine using gparted. So, yes, good call and sorry for earlier scepticism.
*I was trying to fill it with WMA files to help a friend test something -- unless I was formatting with NTFS I'd use Linux for disk operations as the Windows tool frustrates me.
It has a built in hardware chip with firmware that handles the locking and freezing of the drive. I haven't tried dd on the drive yet but I will look into that soon enough. I don't want 2TB of disk space to go to waste, even if I got it for free.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.