Running '/lib/udev/hdparm' with trace on shows
it trying to execute '/usr/sbin/hdparm -B254 /dev/sdX',
with the following result (with --verbose parm passed
to hdparm):
sudo hdparm --verbose -B254 /dev/sda
/dev/sda:
setting Advanced Power Management level to 0xfe (254)
outgoing cdb: 85 06 20 00 05 00 fe 00 00 00 00 00 00 40 ef 00
SG_IO: ATA_16 status=0x2, host_status=0x0, driver_status=0x8
SG_IO: sb[]: 72 0b 00 00 00 00 00 0e 09 0c 00 04 00 fe 00 00 00 00 00 00 40 51
00 00 00 00 00 00 00 00 00 00
SG_IO: desc[]: 09 0c 00 04 00 fe 00 00 00 00 00 00 40 51
ATA_16 stat=51 err=04 nsect=fe lbal=00 lbam=00 lbah=00 dev=40
I/O error, ata_op=0xef ata_status=0x51 ata_error=0x04
HDIO_DRIVE_CMD failed: Input/output error
errno.h lists EIO as error code 5.
This bug is somewhat related to
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=787969
which also deals with how the 'hdparm_options' functions decides
which options to set.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]