LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-03-2010, 02:38 PM   #1
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Rep: Reputation: 34
Need to Unlock 30 Hard Drives


Hi,

I have approx. 30x Western Digital SATA 2.5" hard drives ranging from 80GB to 500GB. These are ex-Tandberg RDX QuikStor backup drives that I no longer use and would like to use them as spare laptop hard drives.

The only problem is upon installing the drive in a laptop it prompts for a hard drive user password.

Are there any open source methods to wipe the password (and data; I don't care about that)? I've tried using various wiping methods (dd, dban etc.) but the password still remains.

Any help is greatly appreciated; I really need these drives

P.S. Plugging it in via a USB HDD enclosure shows as /dev/sdb but does not respond to (c)fdisk or show any partitions (/dev/sdb1 etc).

Thanks
 
Old 03-03-2010, 02:42 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Here's a program you can buy, and run under Windows:

Here's a free program, with Linux support:
And here's a page with lots of possible alternatives:
http://answers.google.com/answers/threadview?id=555334

Last edited by paulsm4; 03-03-2010 at 02:46 PM.
 
Old 03-03-2010, 04:49 PM   #3
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Original Poster
Rep: Reputation: 34
Thanks for your suggestions. As I have a number I want to unlock, I don't want to have to pay to have this done.

The final post (regarding swapping the drives during the password change) from answers.google.com looked promising, but it did not work for me.

The Rockbox link seems related to their software locking the drive, not a hard drive that has had a password set; am I mistaken?

Your thoughts?

Thanks
 
Old 03-03-2010, 05:01 PM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
You could go to a WD site and see if they provide a downloadable low-level format application. If they do, you could try a full drive reformat. That might remove the password protection (and data). Note that a full low-level format can take a long time, so - if you try this approach - I'd suggest you try it first on one of your smallest drives.
 
Old 03-03-2010, 09:28 PM   #5
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Q:
The Rockbox link seems related to their software locking the drive, not a hard drive that has had a password set; am I mistaken?
Quote:
A:
http://www.rockbox.org/lock.html

The disk lock is a built-in security feature in the disk. It is part of the ATA specification, and thus not specific to any brand or device.
...
Quote:
There is also a program for win32, ArchosUnlock.exe, that creates a linux boot disk with the below mentioned patched isd200 driver.
A disk always has two passwords: A User password and a Master password. Most disks support a Master Password Revision Code, which can tell you if the Master password has been changed, or it it still the factory default. The revision code is word 92 in the IDENTIFY response. A value of 0xFFFE means the Master password is unchanged.

A disk can be locked in two modes: High security mode or Maximum security mode. Bit 8 in word 128 of the IDENTIFY response tell you which mode your disk is in: 0 = High, 1 = Maximum.

In High security mode, you can unlock the disk with either the user or master password, using the "SECURITY UNLOCK DEVICE" ATA command. There is an attempt limit, normally set to 5, after which you must power cycle or hard-reset the disk before you can attempt again.

In Maximum security mode, you cannot unlock the disk! The only way to get the disk back to a usable state is to issue the SECURITY ERASE PREPARE command, immediately followed by SECURITY ERASE UNIT. The SECURITY ERASE UNIT command requires the Master password and will completely erase all data on the disk. The operation is rather slow, expect half an hour or more for big disks.
PTrenholme's suggestion also sounds promising:
Quote:
You could go to a WD site and see if they provide a downloadable low-level format application.
Finally, this link suggests you might be able to do Magic with "hdparm":
http://www.mitsubishiforum.com/forum...ad.php?t=22994

'Hope that helps .. PSM

Last edited by paulsm4; 03-03-2010 at 09:41 PM.
 
Old 03-04-2010, 03:03 AM   #6
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Original Poster
Rep: Reputation: 34
I can't find a formatting tool on the WD site. I've ran dban on one which I hear is a good wiping tool and that didn't remove the password.

Regarding the rockbox, I have found the atapwd tool to be available on the ultimate boot CD. But when I load it, it sees my CD drive but not my hard drive. I have tried 3 of my hard drives and none show up. I am having to remove the hard drive before booting the live CD otherwise I am asked for the hard drive password immediately after the BIOS screen shows. However, the hard drive is inserted before I load atapwd. I wonder if the BIOS is telling it there's nothing there. The CD drive is set to boot before the hard drive.
 
Old 03-04-2010, 03:38 AM   #7
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Original Poster
Rep: Reputation: 34
Ah, but atapwd website says "The password is empty, so just press enter at the prompt" which leads me to believe that it is true that their software has locked the drive with an empty password. The password on this drive is certainly not blank.
 
Old 03-04-2010, 03:48 PM   #8
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Look at the end of man hdparm for the ATA security feature set. If the password is empty, perhaps a hdparm --security-unlock "" /dev/sdb might do the trick. (Assuming that it's attached as sdb, of course.)

As to the "low level format" for WD, their diagnostic programs offere a "Write zeros to disk, restoring it to 'like new' condition," which might do the trick.
 
Old 03-17-2010, 02:20 PM   #9
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Original Poster
Rep: Reputation: 34
Thanks for you suggestions. I have tried specifying a blank password (both master and user) and it does not unlock. I've also tried every wiping software under the sun.

Out of curiosity, I paid hddunlock.com $10 to unlock an 80GB and to my surprise it actually worked! I am not however prepared to pay $30 for each of my 500GB drives that I want to use.

Any other suggestions? I've spent some time trying to help myself but I'm not getting anywhere. It seems I need some way to crack the password.
 
Old 03-18-2010, 07:14 PM   #10
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Here's a thread that talks about unlocking (and reformatting) a WD drive in a an X-box system that might work for you.

One post I noticed suggested that the (default) WD master password was "all blanks" not "empty." Did you try entering 8 (or 20) blanks as the master password?
 
Old 03-19-2010, 02:11 AM   #11
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Original Poster
Rep: Reputation: 34
Yes, I've tried the wdc and blank passwords but none let me in. I am sure this password is not "default", Tandberg have set their own password; I need a way to crack it.
 
Old 03-19-2010, 03:22 PM   #12
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
I presume that you've asked the people from whom you purchased that drives for the password(s). Do they have some reason for not telling you what it is?

Does the hddunlock package report the password or just erase it? (If it reports it, then you could license the unlocking of one drive and, assuming that the "master" password, at least, is the same for all your drive, try to unlock the rest "by hand.")

Have you looked for "forensic" tools? There might be one that can bypass the drive password, although most of the software tools assume that the drive is readable, and, of course, the drive itself reports that it's unreadable unless the correct password is supplied.
 
Old 03-19-2010, 03:28 PM   #13
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Have you tried using something like DBAN on it?
 
Old 03-21-2010, 04:05 PM   #14
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Original Poster
Rep: Reputation: 34
> I presume that you've asked the people from whom you purchased
> that drives for the password(s). Do they have some reason for
> not telling you what it is?

I've tried contacting Tandberg but have not had a response. I believe the password is set so that only their drives will work with their "drive bays". The supplier I purchased these from has been completely useless, saying that it's impossible to clear the password (even though I've done it with HDDUnlock, but I don't want to tell them I've done that really).

> Does the hddunlock package report the password or just erase it?

Just clears it.

> Have you tried using something like DBAN on it?

> I've tried using various wiping methods (dd, dban etc.)

Appreciate the responses.
 
Old 03-22-2010, 11:54 AM   #15
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Presuming these are fairly cheap drives, and that you have the WD low-level format program, you could try the "brute force" approach: Buy a really strong permanent magnet from your local hardware store and use it it wipe the disk. (I.e, While the disk is unpowered, move the magnet slowly across the drive housing a few times.) That might randomize the "manufacturer" cylinder (and everything else) so you could reformat it. OF COURSE, IT MIGHT COMPLETELY DESTROY THE DRIVE. (Oops: Sorry for shouting - my caps lock stuck. But, hey, it seems worth emphasizing.)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Automatically Unlock LUKS Encrypted Drives With A Keyfile LXer Syndicated Linux News 0 07-09-2008 03:40 PM
2 hard drives, XP on my main sata drives, 10.2 on my IDE LILO doesnt show on boot up Dachy Slackware 14 01-03-2008 07:01 AM
Looking for pgrm to unlock USB drives WATER22 Linux - Software 2 08-17-2007 01:52 PM
External Hard Drives/Hard Drives ddrfreak Mandriva 1 12-16-2004 06:12 PM
Upgrading hard drives on Software raid 1 boot drives. linuxboy123 Linux - General 0 12-11-2003 03:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration