hdparm is 2 years old and uses old depricated IDE API for ATA Security commands

Bug #1095361 reported by Dmitry Kasatkin
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
hdparm (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Hello,

hdparm is 2 years old on Ubuntu 12.10: 9.37-0ubuntu4
It uses old depricated IDE API for ATA Security security which is not evailable anymore in latest Ubuntu kernels.

Following commands does not work:

hdparm --security-set-pass
hdparm --security-unlock
hdparm --security-disable

For example:
hdparm --security-disable xxx /dev/sdb
----------
security_password="xxx"

/dev/sdb:
 Issuing SECURITY_DISABLE command, password="xxx", user=user

The running kernel lacks CONFIG_IDE_TASK_IOCTL support for this device.
SECURITY_UNLOCK: Invalid argument
---------------

Please update the package from latest source
https://sourceforge.net/projects/hdparm/files/hdparm/

- Dmitry

Revision history for this message
Logan Rosen (logan) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. However, I am closing it because the bug has been fixed in the latest development version of Ubuntu - Raring Ringtail.

This is a significant bug in Ubuntu. If you need a fix for the bug in previous versions of Ubuntu, please do steps 1 and 2 of the SRU Procedure [1] to bring the need to a developer's attention.

[1]: https://wiki.ubuntu.com/StableReleaseUpdates#Procedure

Changed in hdparm (Ubuntu):
status: New → Fix Released
Revision history for this message
Luciano Mougenot (luciano-mougenot) wrote :

I'm getting this same error, under the same attempted pwd removal command with the hdparm bundled with 14.04 Ubuntu. Then also with the latest (9/2015 v 4.98 version from sourceforge.net).

Did the bug come back or was it never really verified to be fixed?

Off-topic:
I'm following my SSD MFG's recommendation for recovery of a SSD that they returned with no-fault found, by performing a security-erase. What's strange, and from what I've read elsewhere, is that the security information printed by hdparm -I /dev/device_node returns that it'll only take "2 minutes" for the erase. Which from what I've read means that its not implemented.

Revision history for this message
Eduardo Aquiles Radanovitsck (eduardoaquiles-ar) wrote :

Just tried to run
hdparm --security-erase
on ubuntu 16.04 lts and got the same message:

Issuing SECURITY_ERASE command, password="...", user=user
The running kernel lacks CONFIG_IDE_TASK_IOCTL support for this device.
SECURITY_ERASE: Invalid argument
Command exited with non-zero status 22

Revision history for this message
Rodolfo (rodrom2) wrote :

Hello,
I've got the same error:
<
/dev/sda:
 Issuing SECURITY_UNLOCK command, password="xxxxxxxxx", user=master
The running kernel lacks CONFIG_IDE_TASK_IOCTL support for this device.
SECURITY_UNLOCK: Invalid argument
>

Command exited with non-zero status 22

I'm using:
<
 - hdparm v9.43
 - Linux mylinuxsrv 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux
 - PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
>

Does anybody solved this issue?
Thank you

Revision history for this message
Mark (parity3) wrote :

Are there instructions on supporting CONFIG_IDE_TASK_IOCTL for 16.04 LTS?

Same thing happens for hdparm v9.48

SG_IO: bad/missing sense data, sb[]: f0 00 01 00 50 40 00 0a 00 00 00 00 00 1d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
The running kernel lacks CONFIG_IDE_TASK_IOCTL support for this device.
SECURITY_ERASE: Invalid argument

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.