please choosego to mobile | Continue to access the PC version
View: 6611|Reply: 6

USB-to-SATA bridge on Orange Pi Plus

[Copy link]
Published in 2015-7-6 20:39:39 | Show all floors |Read mode
Hi,

does anybody here knows whether the GL830 USB-to-SATA bridge used on the Plus (H3 doesn't come with SATA) supports SCSI / ATA Translation? Otherwise querying SMART status won't be possible.

Any user of a Plus with connected 'SATA disk' willing to give it a try? What does a
  1. smartctl -a /dev/sda
Copy code
print (assuming there's just one disk connected and that the smartmontools package is installed)?
Thx in advance

1

threads

5

posts

589

credits

Senior member

Rank: 4

credits
589
Published in 2015-7-8 11:23:46 | Show all floors
Here you go Orange Pi +

-----------------------
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Toshiba 2.5" HDD MK..65GSX
Device Model:     TOSHIBA MK3265GSX
Serial Number:    51J4P818T
LU WWN Device Id: 5 000039 3423072a1
Firmware Version: GJ002J
User Capacity:    320,072,933,376 bytes [320 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    5400 rpm
Form Factor:      2.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 2.6, 3.0 Gb/s (current: 1.5 Gb/s)
Local Time is:    Wed Jul  8 13:20:52 2015 EST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART Status not supported: Incomplete response, ATA output registers missing
SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.

General SMART Values:
Offline data collection status:  (0x00)        Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0)        The previous self-test routine completed
                                        without error or no self-test has ever
                                        been run.
Total time to complete Offline
data collection:                 (  120) seconds.
Offline data collection
capabilities:                          (0x5b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        No Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003)        Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01)        Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine
recommended polling time:          (   2) minutes.
Extended self-test routine
recommended polling time:          (  97) minutes.
SCT capabilities:                (0x003d)        SCT Status supported.
                                        SCT Error Recovery Control supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   100   050    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   100   100   050    Pre-fail  Offline      -       0
  3 Spin_Up_Time            0x0027   100   100   001    Pre-fail  Always       -       1267
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       533
  5 Reallocated_Sector_Ct   0x0033   100   100   050    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000b   100   100   050    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   100   100   050    Pre-fail  Offline      -       0
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       352
10 Spin_Retry_Count        0x0033   110   100   030    Pre-fail  Always       -       0
12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       528
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       46
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       30
193 Load_Cycle_Count        0x0032   100   100   000    Old_age   Always       -       9317
194 Temperature_Celsius     0x0022   100   100   000    Old_age   Always       -       16 (Min/Max 8/45)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   253   000    Old_age   Always       -       0
220 Disk_Shift              0x0002   100   100   000    Old_age   Always       -       41
222 Loaded_Hours            0x0032   100   100   000    Old_age   Always       -       217
223 Load_Retry_Count        0x0032   100   100   000    Old_age   Always       -       0
224 Load_Friction           0x0022   100   100   000    Old_age   Always       -       0
226 Load-in_Time            0x0026   100   100   000    Old_age   Always       -       309
240 Head_Flying_Hours       0x0001   100   100   001    Pre-fail  Offline      -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

SMART Selective self-test log data structure revision number 1
SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.



 Author| Published in 2015-7-9 04:43:44 | Show all floors
Edited by bronco at 2015-7-9 04:45
nrenfrey replied at 2015-7-8 11:23
SMART Status not supported: Incomplete response, ATA output registers missing

Thx a lot. It's working but not perfect

Would also be interesting whether you could trigger a short self test (smartctl -t short /dev/sda) and query the disk with hdparm:

  1. hdparm -I /dev/sda
Copy code


1

threads

5

posts

589

credits

Senior member

Rank: 4

credits
589
Published in 2015-7-10 08:51:26 | Show all floors
smartctl -t short /dev/sda
smartctl -a /dev/sda
---------------------------------
=== START OF INFORMATION SECTION ===
Model Family:     Toshiba 2.5" HDD MK..65GSX
Device Model:     TOSHIBA MK3265GSX
Serial Number:    51J4P818T
LU WWN Device Id: 5 000039 3423072a1
Firmware Version: GJ002J
User Capacity:    320,072,933,376 bytes [320 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    5400 rpm
Form Factor:      2.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 2.6, 3.0 Gb/s (current: 1.5 Gb/s)
Local Time is:    Fri Jul 10 10:30:18 2015 EST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART Status not supported: Incomplete response, ATA output registers missing
SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever
                                        been run.
Total time to complete Offline
data collection:                (  120) seconds.
Offline data collection
capabilities:                    (0x5b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off supp                                                   ort.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        No Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine
recommended polling time:        (   2) minutes.
Extended self-test routine
recommended polling time:        (  97) minutes.
SCT capabilities:              (0x003d) SCT Status supported.
                                        SCT Error Recovery Control supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_                                                   FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   100   050    Pre-fail  Always       -                                                          0
  2 Throughput_Performance  0x0005   100   100   050    Pre-fail  Offline      -                                                          0
  3 Spin_Up_Time            0x0027   100   100   001    Pre-fail  Always       -                                                          1267
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -                                                          533
  5 Reallocated_Sector_Ct   0x0033   100   100   050    Pre-fail  Always       -                                                          0
  7 Seek_Error_Rate         0x000b   100   100   050    Pre-fail  Always       -                                                          0
  8 Seek_Time_Performance   0x0005   100   100   050    Pre-fail  Offline      -                                                          0
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -                                                          397
10 Spin_Retry_Count        0x0033   110   100   030    Pre-fail  Always       -                                                          0
12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -                                                          528
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -                                                          46
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -                                                          30
193 Load_Cycle_Count        0x0032   100   100   000    Old_age   Always       -                                                          9320
194 Temperature_Celsius     0x0022   100   100   000    Old_age   Always       -                                                          23 (Min/Max 8/45)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -                                                          0
197 Current_Pending_Sector  0x0032   100   100   000    Old_age   Always       -                                                          0
198 Offline_Uncorrectable   0x0030   100   100   000    Old_age   Offline      -                                                          0
199 UDMA_CRC_Error_Count    0x0032   200   253   000    Old_age   Always       -                                                          0
220 Disk_Shift              0x0002   100   100   000    Old_age   Always       -                                                          41
222 Loaded_Hours            0x0032   100   100   000    Old_age   Always       -                                                          217
223 Load_Retry_Count        0x0032   100   100   000    Old_age   Always       -                                                          0
224 Load_Friction           0x0022   100   100   000    Old_age   Always       -                                                          0
226 Load-in_Time            0x0026   100   100   000    Old_age   Always       -                                                          285
240 Head_Flying_Hours       0x0001   100   100   001    Pre-fail  Offline      -                                                          0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA                                                   _of_first_error
# 1  Short offline       Completed without error       00%       397         -
# 2  Short offline       Completed without error       00%       397         -

SMART Selective self-test log data structure revision number 1
SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.


1

threads

5

posts

589

credits

Senior member

Rank: 4

credits
589
Published in 2015-7-10 08:51:44 | Show all floors
----------------------------
hdparm -I /dev/sda
---------------------------
/dev/sda:

ATA device, with non-removable media
        Model Number:       TOSHIBA MK3265GSX                       
        Serial Number:      51J4P818T
        Firmware Revision:  GJ002J  
        Transport:          Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6
Standards:
        Supported: 8 7 6 5
        Likely used: 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:  625142448
        Logical  Sector size:                   512 bytes
        Physical Sector size:                   512 bytes
        device size with M = 1024*1024:      305245 MBytes
        device size with M = 1000*1000:      320072 MBytes (320 GB)
        cache/buffer size  = 8192 KBytes
        Form Factor: 2.5 inch
        Nominal Media Rotation Rate: 5400
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: 128
        DMA: sdma0 sdma1 sdma2 mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 *udma4 udma5
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=120ns  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
           *        NOP cmd
           *        DOWNLOAD_MICROCODE
           *        Advanced Power Management feature set
                    SET_MAX security extension
           *        48-bit Address feature set
           *        Device Configuration Overlay feature set
           *        Mandatory FLUSH_CACHE
           *        FLUSH_CACHE_EXT
           *        SMART error logging
           *        SMART self-test
           *        General Purpose Logging feature set
           *        WRITE_{DMA|MULTIPLE}_FUA_EXT
           *        64-bit World wide name
           *        IDLE_IMMEDIATE with UNLOAD
           *        {READ,WRITE}_DMA_EXT_GPL commands
           *        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
           *        Idle-Unload when NCQ is active
                    DMA Setup Auto-Activate optimization
                    Device-initiated interface power management
           *        Software settings preservation
           *        SMART Command Transport (SCT) feature set
           *        SCT Write Same (AC2)
           *        SCT Error Recovery Control (AC3)
           *        SCT Features Control (AC4)
           *        SCT Data Tables (AC5)
Security:
        Master password revision code = 65534
                supported
        not        enabled
        not        locked
        not        frozen
        not        expired: security count
                supported: enhanced erase
        94min for SECURITY ERASE UNIT. 94min for ENHANCED SECURITY ERASE UNIT.
Logical Unit WWN Device Identifier: 50000393423072a1
        NAA                : 5
        IEEE OUI        : 000039
        Unique ID        : 3423072a1
Checksum: correct


 Author| Published in 2015-7-10 15:58:43 | Show all floors
Edited by bronco at 2015-7-10 15:59

Thx a lot!

BTW: Have an eye on the Load_Cycle_Count: your disk parks its heads every 2 minutes (statistically when comparing power on hours and the LCC counter).
I would try to optimise settings (with Toshiba disks AFAIK you've to use APM settings). I would try to decrease LCC values and to configure complete spin-down using hdparm after several minutes of inactivity if the use case is appropriate (only accesses to disk from time to time)

2

threads

46

posts

238

credits

Intermediate member

Rank: 3Rank: 3

credits
238
Published in 2016-2-16 16:52:27 from mobile | Show all floors
enable sata for orange pi plus 2 help my!
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list