Skip to contentSkip to conversation

Does the linux kernel contain support for ATA Security feature set?

DISCUSSION Robert Nicholson 4 participants 7 messages Apr 16, 2009 – Apr 19, 2009

lore
Share & tools
lore
#0 lore raw

So, I've got an X-25M that I want to securely erase and it turns out on a Mac I'm not going to be able to issue the command because it doesn't support legacy IDE mode from what I understand. So the idea of a any boot CD that I could boot and run a program that can issue a SECURE_ERASE (SE) to the drive is only applicable to PC's.

So does the Linux kernel support the ATA security set then? or does it, like OSX have protective measures to stop abuse of those features.

#1 lore raw
Quoted 5 lines · Robert Nicholson

So, I've got an X-25M that I want to securely erase and it turns out on a Mac I'm not going to be able to issue the command because it doesn't support legacy IDE mode from what I understand. So the idea of a any boot CD that I could boot and run a program that can issue a SECURE_ERASE (SE) to the drive is only applicable to PC's.

Why is the lack of legacy IDE an issue? hdparm works fine with SATA setups.

Signature · 1 line
Matthew Garrett | [email protected]
#2 lore raw

So you're implying that it is possible to do a SECURE_ERASE using hdparm then.

I don't know why but HDDERASE tool requires legacy IDE mode.

Quoted 11 lines · Matthew Garrett
Quoted 5 lines · Robert Nicholson

So, I've got an X-25M that I want to securely erase and it turns out on a Mac I'm not going to be able to issue the command because it doesn't support legacy IDE mode from what I understand. So the idea of a any boot CD that I could boot and run a program that can issue a SECURE_ERASE (SE) to the drive is only applicable to PC's.

Why is the lack of legacy IDE an issue? hdparm works fine with SATA setups.

Signature · 1 line
Matthew Garrett | [email protected]
#3 lore raw
Quoted 2 lines · Robert Nicholson

So you're implying that it is possible to do a SECURE_ERASE using hdparm then.

The manpage says so. I've never tried.

Signature · 1 line
Matthew Garrett | [email protected]
#4 lore raw
In reply to Robert Nicholson

So when I do a hdparm --security-set-pass NULL /dev/sda

I get a

SECURITY_ERASE: Input/output error

This is with a kernel that doesn't have CONFIG_IDE_TASK_IOCTL=y defined

I'm also told that for SATA drives that's not necessary anyway. Is that correct?

What should the response be for hdparm if CONFIG_IDE_TASK_IOCTL isn't defined for a drive that needs it?

The drive is an Intel X-25M

HDDERASE won't work since I'm on a Mac.

I don't want to create a customized lived CD witth a new kernel unless it's necessary.

Quoted 18 lines · Robert Nicholson

So you're implying that it is possible to do a SECURE_ERASE using hdparm then.

I don't know why but HDDERASE tool requires legacy IDE mode.

Quoted 11 lines · Matthew Garrett
Quoted 5 lines · Robert Nicholson

So, I've got an X-25M that I want to securely erase and it turns out on a Mac I'm not going to be able to issue the command because it doesn't support legacy IDE mode from what I understand. So the idea of a any boot CD that I could boot and run a program that can issue a SECURE_ERASE (SE) to the drive is only applicable to PC's.

Why is the lack of legacy IDE an issue? hdparm works fine with SATA setups.

Signature · 1 line
Matthew Garrett | [email protected]
#5 lore raw
In reply to Robert Nicholson
Quoted 1 line

So does the Linux kernel support the ATA security set then? or does

It supports pass through of ATA commands: See man hdparm

Quoted 1 line

it, like OSX have protective measures to stop abuse of those features.

The kernel doesn't but your BIOS or in some distributions early boot scripts may well issue a security freeze.

Alan

#6 lore raw
Quoted 4 lines · Alan Cox
Quoted 1 line

it, like OSX have protective measures to stop abuse of those features.

The kernel doesn't but your BIOS or in some distributions early boot scripts may well issue a security freeze.

A hot-plugged disk should not be affected then.
Not very safe with IDE/PATA, at least in theory.

Signature · 1 line
Krzysztof Halasa