hdparm fails to handle security configuration...

Bug #487168 reported by Daniel J Blueman
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
hdparm (Ubuntu)
Triaged
Medium
Unassigned
Nominated for Lucid by Daniel J Blueman

Bug Description

Binary package hint: hdparm

When adding hdparm disk unlock commands to /etc/hdparm.conf, we see it fail to specify the password:

/dev/sdb {
 user-master = u
 security_unlock = letmein
}

-> simulate udev event
# DEVNAME=/dev/sdb bash -x /lib/udev/hdparm
...
+ /sbin/hdparm -B254 u -q --security-unlock /dev/sdb

-> additionally 'man hdparm.conf' states 'security_mode = u', which should be 'user-master = u'

Revision history for this message
Daniel J Blueman (danielblueman) wrote :
Changed in hdparm (Ubuntu):
status: New → Confirmed
Revision history for this message
Daniel J Blueman (danielblueman) wrote :

With the above fixes, we still meet failure:

# DEVNAME=/dev/sdb bash -x /lib/udev/hdparm
...
+ /sbin/hdparm -B254 -q --user-master u -q --security-unlock 'letmein' /dev/sdb
# echo $?
22

-> this is because the security commands are exclusive within hdparm, so this is needed:

# /sbin/hdparm --user-master u --security-unlock 'letmein' /dev/sdb

-> though we are closer

Revision history for this message
Claus Allweil (clal) wrote :

This bug hits me too and prevents hard disk hot-plugging in Thinkpad Ultra Bay:

root@karmic:/home/callweil# /sbin/hdparm --user-master u --security-unlock 'letmein' /dev/sdb
security_password="letmein"

/dev/sdb:
 Issuing SECURITY_UNLOCK command, password="letmein", user=user
SECURITY_UNLOCK: Input/output error

Revision history for this message
Philippe Coval (rzr) wrote :

hi,
how to understand "SECURITY_UNLOCK: Input/output error" ?

is it because the passwd is wrong or the disk is not working as hdparm expect ?

can you post your dmesg following this error ?

because i am facing a similar issue
--
http://rzr.online.fr/q/ata

Steve Langasek (vorlon)
Changed in hdparm (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Medium
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.