[Pkg-sysvinit-devel] Bug#426224: The fix for SATA disk shutdown introduced a new bug for some IDE hard disks
Hubert Verstraete
hubskml at free.fr
Fri Apr 4 13:46:54 UTC 2008
Hi debian bug 426224 and Werner Fink.
Werner, I'm CCing you because, this bug comes from the patch you've done
for sysvinit, which has been used to fix the debian bug
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=426224
First I confirm that sysvinit/2.86.ds1-40 fixes the shutdown issue of my
SATA hard disks.
Nevertheless since sysvinit/2.86.ds1-40, I have some error messages on
the IDE hard disk hda when the computer is shut down.
The error messages are:
hda: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hda: drive_cmd: error=0x04 { DriveStatusError }
failed opcode was 0xe7
The line in the source code which triggers this error is this one:
ioctl(fd, HDIO_DRIVE_CMD, &flush2);
When I remove it to have a behavior closer with the one in
sysvinit/2.86.ds1-38, the error does not occur any more.
This is probably because this Flush Cache command is not supported by my
hard disk model; another IDE hard disk I tried did not have this issue.
Here is the information from one of my hda hard disks having this error:
# hdparm -I /dev/hda
/dev/hda:
ATA device, with non-removable media
Model Number: TRANSCEND
Serial Number: 200704260935K0004379
Firmware Revision: 2.0
Standards:
Likely used: 2
Configuration:
Logical max current
cylinders 993 993
heads 16 16
sectors/track 63 63
--
bytes/track: 33264 bytes/sector: 528
CHS current addressable sectors: 1000944
LBA user addressable sectors: 1000944
device size with M = 1024*1024: 488 MBytes
device size with M = 1000*1000: 512 MBytes
Capabilities:
LBA, IORDY(can be disabled)
Buffer size: 2.0kB bytes avail on r/w long: 4
Standby timer values: spec'd by Vendor
R/W multiple sector transfer: Max = 1 Current = 0
DMA: not supported
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=120ns IORDY flow control=120ns
Tell me if you need more information.
Thanks,
Hubert
More information about the Pkg-sysvinit-devel
mailing list