Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to do make the drive go into PIO mode with hdparm on Linux.

hdparm -X pio0 /dev/sdX

I have tried about 4-5 disks (PATA & SATA). I always get the same error:

SG_IO: bad/missing sense data, sb[]: ...

Ideas? Any other known working alternative method?

/dev/sda:

ATA device, with non-removable media
        Model Number:       Hitachi HDS721616PLA380
        Serial Number:      PVB300Z2R6H4UD
        Firmware Revision:  P22OA70A
Standards:
        Used: ATA/ATAPI-7 T13 1532D revision 1
        Supported: 7 6 5 4 & some of 8
Configuration:
        Logical         max     current
        cylinders       16383   16383
        heads           16      16
        sectors/track   63      63
        --
        CHS current addressable sectors:   16514064
        LBA    user addressable sectors:  268435455
        LBA48  user addressable sectors:  321672960
        Logical/Physical Sector size:           512 bytes
        device size with M = 1024*1024:      157066 MBytes
        device size with M = 1000*1000:      164696 MBytes (164 GB)
        cache/buffer size  = 7384 KBytes (type=DualPortCache)
Capabilities:
        LBA, IORDY(can be disabled)
        Queue depth: 32
        Standby timer values: spec'd by Standard, no device specific minimum
        R/W multiple sector transfer: Max = 16  Current = 16
        Advanced power management level: disabled
        Recommended acoustic management value: 128, current value: 254
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=240ns  IORDY flow control=120ns
Commands/features:
        Enabled Supported:
           *    SMART feature set
                Security Mode feature set
           *    Power Management feature set
           *    Write cache
           *    Look-ahead
           *    Host Protected Area feature set
           *    WRITE_BUFFER command
           *    READ_BUFFER command
           *    DOWNLOAD_MICROCODE
                Advanced Power Management feature set
                Power-Up In Standby feature set
                SET_FEATURES required to spinup after power up
                Address Offset Reserved Area Boot
                SET_MAX security extension
                Automatic Acoustic Management feature set
           *    48-bit Address feature set
           *    Device Configuration Overlay feature set
           *    Mandatory FLUSH_CACHE
           *    FLUSH_CACHE_EXT
           *    SMART error logging
           *    SMART self-test
                Media Card Pass-Through
           *    General Purpose Logging feature set
           *    WRITE_{DMA|MULTIPLE}_FUA_EXT
           *    64-bit World wide name
           *    URG for READ_STREAM[_DMA]_EXT
           *    URG for WRITE_STREAM[_DMA]_EXT
           *    Segmented DOWNLOAD_MICROCODE
           *    Gen1 signaling speed (1.5Gb/s)
           *    Gen2 signaling speed (3.0Gb/s)
           *    Native Command Queueing (NCQ)
           *    Host-initiated interface power management
           *    Phy event counters
                Non-Zero buffer offsets in DMA Setup FIS
                DMA Setup Auto-Activate optimization
                Device-initiated interface power management
                In-order data delivery
           *    Software settings preservation
           *    SMART Command Transport (SCT) feature set
           *    SCT Long Sector Access (AC1)
           *    SCT LBA Segment Access (AC2)
           *    SCT Error Recovery Control (AC3)
           *    SCT Features Control (AC4)
           *    SCT Data Tables (AC5)
Security:
        Master password revision code = 65297
                supported
        not     enabled
        not     locked
        not     frozen
        not     expired: security count
        not     supported: enhanced erase
        64min for SECURITY ERASE UNIT.
Logical Unit WWN Device Identifier: 5000cca321c2f31e
        NAA             : 5
        IEEE OUI        : 000cca
        Unique ID       : 321c2f31e
Checksum: correct
share|improve this question
1  
Can you update your question with the output of hdparm -I /dev/sdX ? –  Zuul Jul 22 '12 at 15:07
    
Yes, sure - done. –  XXL Jul 22 '12 at 15:38
2  
I am very curious as to why you want it in PIO mode... –  Ignacio Vazquez-Abrams Jul 22 '12 at 18:59
    
If you are really that curious, then putting a drive into PIO mode gives a particular set of benefits when dealing with per-sector recovery. –  XXL Jul 22 '12 at 19:18
add comment

2 Answers 2

up vote 1 down vote accepted
+50

http://www.kernel.org/doc/Documentation/kernel-parameters.txt

Note:
libata.dma=0, libata.ignore_hpa=1 and libata.force=

used this many of times when repairing (scraping, harvesting) disks.

share|improve this answer
add comment

Try to disable Ultra DMA in BIOS.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.