Aaru unable to dump or scan SATA SSD #647

Closed
opened 2026-01-29 15:25:00 +00:00 by claunia · 0 comments
Owner

Originally created by @TheRogueArchivist on GitHub (Jan 19, 2021).

Prerequisites

  • Are you running the latest version?
  • Can you reproduce the problem in the debug version?

Check and fill as appropriate:

  • I was running Aaru under Linux 5.8.0-38...
  • ...in 64-bit
  • ...using an Intel / AMD processor
  • Device manufacturer: KingDian
  • Model: S200
  • Bus:
    • Serial ATA
  • I was dumping media (disk, tape, etc)...
  • I was scanning media (disk, tape, etc)...

Description

Trying to dump or run a media scan on an SSD connected using SATA results in Aaru erroneously reading sectors as bad. In media scan, it seems that every sector is detected as bad, while only some are detected as bad while dumping. DD is able to image the drive with no issues, and the resulting image can be read by Aaru.

Exact command line used:

aaru m dump /dev/sdc SSD_aaru_5.3.aaruf

Output of command execution with debug output enabled

aaru 5.2.99.3380-alpha+a784b554 built by silas-All-Series in Debug
Copyright © 2011-2021 Natalia Portillo

Output image format: Aaru Format.
Device in database since 11/14/2020 11:09:51 AM.                               
Requesting ATA IDENTIFY DEVICE.                                                
Initializing reader.                                                           
Using ATA READ DMA EXT command.
Device reports 117231408 blocks (60022480896 bytes).                           
Device reports 16383 cylinders 16 heads 63 sectors per track.                  
Device can read 64 blocks at a time.                                           
Device reports 512 bytes per logical block.                                    
Device reports 512 bytes per physical block.                                   
Reading 64 sectors at a time.                                                  
Aborted!                                                                       

Dump finished in -25183.0044361 seconds.                                       
Average dump speed ∞ KiB/sec.                                                  
Average write speed 20759632.448 KiB/sec.                                      
Closing output file.                                                           
Closed in 0.0389921 seconds.                                                   
Aborted!                

Media details

Dump information:
532.zip

Device info:

Copyright © 2011-2021 Natalia Portillo

ATA device
Model: KingDian S200 60GB
Firmware revision: Q0707A
Serial #: AA18022800637
World Wide Name: 0000000000000000
Supported ATA versions: ATA-2 ATA-3 ATA/ATAPI-4 ATA/ATAPI-5 ATA/ATAPI-6 ATA/ATAPI-7 ATA8-ACS ATA8-ACS2 
Maximum ATA revision supported: Minor ATA version not specified
Serial ATA device: ATA8-AST SATA 1.0a SATA II Extensions SATA 2.5 SATA 2.6 SATA 3.0 SATA 3.1 
Device is fixed
Device does not rotate.
Physical sector size: 512 bytes
Logical sector size: 512 bytes
Cylinders: 16383 max., 16383 current
Heads: 16 max., 16 current
Sectors per track: 63 max., 63 current
Sectors addressable in CHS mode: 16514064 max., 16514064 current
117231408 sectors in 28-bit LBA mode
117231408 sectors in 48-bit LBA mode
Device size in CHS mode: 8455200768 bytes, 8455 Mb, 8063 MiB
Device size in 28-bit LBA mode: 60022480896 bytes, 60 Gb, 55 GiB
Device size in 48-bit LBA mode: 60022480896 bytes, 60 Gb, 55 GiB
Device does not require SET FEATURES to spin up and IDENTIFY DEVICE response is complete.
READ/WRITE LONG has 4 extra bytes

Device capabilities:
Standby time values are standard
IORDY is supported and can be disabled
DMA is supported
A maximum of 1 sectors can be transferred per interrupt on READ/WRITE MULTIPLE
Device supports setting a maximum of 1 sectors
PIO timing mode: 2
DMA timing mode: 0
Advanced PIO: PIO0 PIO1 
Single-word DMA: 
Multi-word DMA: MDMA0 MDMA1 MDMA2 
Ultra DMA: UDMA0 UDMA1 UDMA2 UDMA3 UDMA4 UDMA5 UDMA6 (active) 
At minimum 120 ns. transfer cycle time per word in MDMA, 120 ns. recommended
At minimum 120 ns. transfer cycle time per word in PIO, without flow control
At minimum 120 ns. transfer cycle time per word in PIO, with IORDY flow control
32 depth of queue maximum
SATA 1.5Gb/s is supported
SATA 3.0Gb/s is supported
SATA 6.0Gb/s is supported
Receipt of host initiated power management requests is supported
PHY Event counters are supported
NCQ is supported
Device nominal size is 2.5"

Command set and features:
NOP is supported and enabled
READ BUFFER is supported and enabled
WRITE BUFFER is supported and enabled
Host Protected Area is supported and enabled
Look-ahead read is supported
Write cache is supported and enabled
Power management is supported and enabled
Security mode is supported
28-bit LBA is supported
48-bit LBA is supported and enabled
FLUSH CACHE is supported and enabled
FLUSH CACHE EXT is supported and enabled
Device Configuration Overlay feature set is supported and enabled
SET MAX security extension is supported and enabled
Advanced Power Management is supported and enabled with value 254
DOWNLOAD MICROCODE is supported and enabled
S.M.A.R.T. is supported and enabled
S.M.A.R.T. self-testing is supported and enabled
S.M.A.R.T. error logging is supported and enabled
Device has a World Wide Name
WRITE DMA FUA EXT and WRITE MULTIPLE FUA EXT are supported and enabled
General Purpose Logging is supported and enabled
Segmented feature in DOWNLOAD MICROCODE is supported and enabled
READ/WRITE DMA EXT GPL are supported and enabled
DOWNLOAD MICROCODE DMA is supported
READ LOG DMA EXT is supported
DMA Setup auto-activation is supported and enabled
Device-initiated power management is supported
Software Settings Preservation is supported and enabled
TRIM is supported
DATA SET MANAGEMENT can receive a maximum of 8 blocks of 512 bytes

Security:
Security is not enabled
Supports enhanced security erase
2 minutes to complete secure erase
2 minutes to complete enhanced secure erase
Master password revision code: 65534

Word 129: 0x5353
Word 130: 0x4420

Device identified as GENERIC_HDD

Device in database since 11/14/2020 11:09:51 AM.
Originally created by @TheRogueArchivist on GitHub (Jan 19, 2021). ### Prerequisites * [X] Are you running the latest version? * [X] Can you reproduce the problem in the debug version? ### Check and fill as appropriate: * [X] I was running Aaru under Linux 5.8.0-38... * [X] ...in 64-bit * [X] ...using an Intel / AMD processor * **Device manufacturer**: KingDian * **Model**: S200 * **Bus**: * [X] Serial ATA * [X] I was dumping media (disk, tape, etc)... * [X] I was scanning media (disk, tape, etc)... ### Description <!-- Description of the bug --> Trying to dump or run a media scan on an SSD connected using SATA results in Aaru erroneously reading sectors as bad. In media scan, it seems that every sector is detected as bad, while only some are detected as bad while dumping. DD is able to image the drive with no issues, and the resulting image can be read by Aaru. ### Exact command line used: `aaru m dump /dev/sdc SSD_aaru_5.3.aaruf ` ### Output of command execution with debug output enabled ``` aaru 5.2.99.3380-alpha+a784b554 built by silas-All-Series in Debug Copyright © 2011-2021 Natalia Portillo Output image format: Aaru Format. Device in database since 11/14/2020 11:09:51 AM. Requesting ATA IDENTIFY DEVICE. Initializing reader. Using ATA READ DMA EXT command. Device reports 117231408 blocks (60022480896 bytes). Device reports 16383 cylinders 16 heads 63 sectors per track. Device can read 64 blocks at a time. Device reports 512 bytes per logical block. Device reports 512 bytes per physical block. Reading 64 sectors at a time. Aborted! Dump finished in -25183.0044361 seconds. Average dump speed ∞ KiB/sec. Average write speed 20759632.448 KiB/sec. Closing output file. Closed in 0.0389921 seconds. Aborted! ``` ### Media details <!-- Photo, EAN-13, if possible eBay link --> Dump information: [532.zip](https://github.com/aaru-dps/Aaru/files/5838826/532.zip) Device info: ```aaru 5.2.99.3380-alpha+a784b554 built by silas-All-Series in Debug Copyright © 2011-2021 Natalia Portillo ATA device Model: KingDian S200 60GB Firmware revision: Q0707A Serial #: AA18022800637 World Wide Name: 0000000000000000 Supported ATA versions: ATA-2 ATA-3 ATA/ATAPI-4 ATA/ATAPI-5 ATA/ATAPI-6 ATA/ATAPI-7 ATA8-ACS ATA8-ACS2 Maximum ATA revision supported: Minor ATA version not specified Serial ATA device: ATA8-AST SATA 1.0a SATA II Extensions SATA 2.5 SATA 2.6 SATA 3.0 SATA 3.1 Device is fixed Device does not rotate. Physical sector size: 512 bytes Logical sector size: 512 bytes Cylinders: 16383 max., 16383 current Heads: 16 max., 16 current Sectors per track: 63 max., 63 current Sectors addressable in CHS mode: 16514064 max., 16514064 current 117231408 sectors in 28-bit LBA mode 117231408 sectors in 48-bit LBA mode Device size in CHS mode: 8455200768 bytes, 8455 Mb, 8063 MiB Device size in 28-bit LBA mode: 60022480896 bytes, 60 Gb, 55 GiB Device size in 48-bit LBA mode: 60022480896 bytes, 60 Gb, 55 GiB Device does not require SET FEATURES to spin up and IDENTIFY DEVICE response is complete. READ/WRITE LONG has 4 extra bytes Device capabilities: Standby time values are standard IORDY is supported and can be disabled DMA is supported A maximum of 1 sectors can be transferred per interrupt on READ/WRITE MULTIPLE Device supports setting a maximum of 1 sectors PIO timing mode: 2 DMA timing mode: 0 Advanced PIO: PIO0 PIO1 Single-word DMA: Multi-word DMA: MDMA0 MDMA1 MDMA2 Ultra DMA: UDMA0 UDMA1 UDMA2 UDMA3 UDMA4 UDMA5 UDMA6 (active) At minimum 120 ns. transfer cycle time per word in MDMA, 120 ns. recommended At minimum 120 ns. transfer cycle time per word in PIO, without flow control At minimum 120 ns. transfer cycle time per word in PIO, with IORDY flow control 32 depth of queue maximum SATA 1.5Gb/s is supported SATA 3.0Gb/s is supported SATA 6.0Gb/s is supported Receipt of host initiated power management requests is supported PHY Event counters are supported NCQ is supported Device nominal size is 2.5" Command set and features: NOP is supported and enabled READ BUFFER is supported and enabled WRITE BUFFER is supported and enabled Host Protected Area is supported and enabled Look-ahead read is supported Write cache is supported and enabled Power management is supported and enabled Security mode is supported 28-bit LBA is supported 48-bit LBA is supported and enabled FLUSH CACHE is supported and enabled FLUSH CACHE EXT is supported and enabled Device Configuration Overlay feature set is supported and enabled SET MAX security extension is supported and enabled Advanced Power Management is supported and enabled with value 254 DOWNLOAD MICROCODE is supported and enabled S.M.A.R.T. is supported and enabled S.M.A.R.T. self-testing is supported and enabled S.M.A.R.T. error logging is supported and enabled Device has a World Wide Name WRITE DMA FUA EXT and WRITE MULTIPLE FUA EXT are supported and enabled General Purpose Logging is supported and enabled Segmented feature in DOWNLOAD MICROCODE is supported and enabled READ/WRITE DMA EXT GPL are supported and enabled DOWNLOAD MICROCODE DMA is supported READ LOG DMA EXT is supported DMA Setup auto-activation is supported and enabled Device-initiated power management is supported Software Settings Preservation is supported and enabled TRIM is supported DATA SET MANAGEMENT can receive a maximum of 8 blocks of 512 bytes Security: Security is not enabled Supports enhanced security erase 2 minutes to complete secure erase 2 minutes to complete enhanced secure erase Master password revision code: 65534 Word 129: 0x5353 Word 130: 0x4420 Device identified as GENERIC_HDD Device in database since 11/14/2020 11:09:51 AM.
claunia added the bugdevice labels 2026-01-29 15:25:01 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: aaru-dps/Aaru-aaru-dps#647