Re: harddisk suddenly locked?!

From: Guest section DW (
Date: Tue Jul 31 2001 - 19:05:39 EST

On Tue, Jul 31, 2001 at 01:00:07PM +0200, Thomas Tanner wrote:

> I can't access the data on my harddrive any longer ;-((
> The IBM Disk Fitness Test tool tells me:
> Model : IBM-DJNA-372200
> Microcode level : J71OA30K
> ATA Compliance : ATA-4
> Security feature : Supported
> Password : Set
> Password level : High
> Security mode : Locked
> However, I haven't set any password. I don't even know how to set it!!
> My system is (was) Linux 2.4.7 with PIIX support and "SCSI over IDE"
> enabled,
> I wanted to start XWindows (4.01). However, it switched the video mode and
> suddenly locked up for ~10 sec. I pressed Ctrl-Alt-Backspace/Del
> After some seconds it responded and seemed to shut down as usual.
> Since then the hd is locked and I don't know why.

Better shield your monitor?

> According to the ATA-3 specification

ATA-4 is also online.

> To unlock a drive one has to send the command SECURITY UNLOCK (0xBB)
> and transfer a single sector to the drive:

Maybe someone has already done it. Otherwise you'll have to play a little
with the code. It is easy. You could try to take setmax and hdparm as example
and add an ioctl that combines HDIO_DRIVE_TASK and HDIO_DRIVE_CMD.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Tue Jul 31 2001 - 21:00:55 EST