Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#52 hdparm --read-sector fails with 'Bad Address', again

closed-fixed
nobody
None
5
2012-09-28
2012-06-04
Yann Cantin
No

Hi,

I'm facing the same problem that bug 2846248 :

Stock hdparm 9.39 from mageai 2 :
###
[root@wanabe ~]# hdparm -V
hdparm v9.39
[root@wanabe ~]# hdparm --verbose --read-sector 0 /dev/hda

/dev/hda:
reading sector 0: oflags.lob_all=0xfc, flags={ nsect lbal lbam lbah dev command }
oflags.hob_all=0x00, flags={ }
outgoing cdb: 85 08 0e 00 00 00 01 00 00 00 00 00 00 e0 20 00
ioctl(fd,SG_IO): Invalid argument
trying legacy HDIO_DRIVE_TASKFILE
rc=-1, errno=14, returned ATA registers: er=00 st=20
FAILED: Bad address
###

Now, with 9.27 from an old mdv2010 package (same system, just copied the binary) :
###
[root@wanabe ~]# ./hdparm-9.27 -V
hdparm-9.27 v9.27
[root@wanabe ~]# ./hdparm-9.27 --verbose --read-sector 0 /dev/hda

/dev/hda:
reading sector 0: oflags.lob_all=0xfc, flags={ nsect lbal lbam lbah dev command }
oflags.hob_all=0xfc, flags={ nsect lbal lbam lbah }
using LBA48 taskfile
outgoing cdb: 85 09 2e 00 00 00 01 00 00 00 00 00 00 e0 20 00
data: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ioctl(fd,SG_IO): Invalid argument
trying legacy HDIO_DRIVE_TASKFILE
rc=0, errno=0, returned ATA registers: er=00 st=50 err=00
succeeded
48eb 0090 0000 5247 4255 0000 0000 0000
...
###

System info :
[root@wanabe ~]# uname -r
3.3.6-desktop586-2.mga2

[root@wanabe ~]# lspci
00:0f.0 IDE interface: ALi Corporation M5229 IDE (rev c4)

[root@wanabe ~]# hdparm -i /dev/hda
/dev/hda:
Model=IC25N060ATMR04-0, FwRev=MO3OAD0A, SerialNo=MRG308K3GGANZH
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
BuffType=DualPortCache, BuffSize=7884kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=117210240
IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
AdvancedPM=yes: mode=0x80 (128) WriteCache=enabled
Drive conforms to: ATA/ATAPI-6 T13 1410D revision 3a: ATA/ATAPI-2,3,4,5,6

If you need more info/testing, feel free to ask.

Discussion

  • Mark Lord
    Mark Lord
    2012-09-28

    • status: open --> closed-fixed
     
  • Mark Lord
    Mark Lord
    2012-09-28

    Fixed in 9.42, I think. Email if still b0rked.