当前位置: 首页 > news >正文

smartctl on FreeBSD: Please specify device type with the -d option.

 

FreeBSD:

 

euler@rpi4b:~ % sudo camcontrol devlist
Password:
<YSSDJQB- 2TB 1.02>                at scbus0 target 0 lun 0 (da0,pass0)
euler@rpi4b:~ % ls /dev/da0
da0%   da0p1%
euler@rpi4b:~ % ls /dev/da0
/dev/da0

 

euler@rpi4b:~ % sudo smartctl -a  /dev/da0
smartctl 7.4 2023-08-01 r5530 [FreeBSD 14.1-RELEASE arm64] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org/dev/da0: Unknown USB bridge [0x0bda:0x9201 (0xf200)]
Please specify device type with the -d option.Use smartctl -h to get a usage summary

 

Your output tells you exactly what’s happening:

smartctl cannot communicate directly with the disk through that USB bridge (0x0bda:0x9201, a Realtek chip). Many USB-to-SATA bridges block or mangle the ATA pass-through commands required for S.M.A.R.T. reporting.

That’s why you get:

Unknown USB bridge [0x0bda:0x9201 (0xf200)]
Please specify device type with the -d option.

What to try:

  1. Force device type
    Run something like:

    sudo smartctl -a -d sat /dev/da0
    

    -d sat forces smartctl to treat it as a SATA device behind a USB bridge.
    Sometimes -d scsi works if it’s being presented as a SCSI device.

  2. Probe automatically

    sudo smartctl -a -d test /dev/da0
    

    That will make smartctl try different pass-through methods and tell you which works.

  3. If your bridge is crippled
    Many Realtek and JMicron bridges (especially cheap ones) simply do not pass S.M.A.R.T. commands. In that case, no amount of smartctl tricks will work. Your only option is to put the drive on a proper SATA port, or use a USB enclosure/dock that supports ATA pass-through (ASMedia and some newer JMicron chips usually do).


⚠️ Bottom line: On FreeBSD ARM64 with that Realtek 0x0bda:0x9201 bridge, there’s a good chance you’ll never get S.M.A.R.T. data out of it. Test with -d sat, but if that fails, you need better hardware.

Do you want me to give you a one-liner to test all the possible -d options automatically and report back which (if any) succeed?

 

euler@rpi4b:~ % sudo smartctl -a -d sat /dev/da0
smartctl 7.4 2023-08-01 r5530 [FreeBSD 14.1-RELEASE arm64] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org=== START OF INFORMATION SECTION ===
Device Model:     YSSDJQB-2TB
Serial Number:    2M22L4711400095
Firmware Version: V0718B0
User Capacity:    2,048,408,248,320 bytes [2.04 TB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Form Factor:      2.5 inches
TRIM Command:     Available
Device is:        Not in smartctl database 7.3/5528
ATA Version is:   ACS-2 T13/2015-D revision 3
SATA Version is:  SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sat Sep 27 12:21:22 2025
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 activitywas never started.Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0) The previous self-test routine completedwithout error or no self-test has everbeen run.
Total time to complete Offline
data collection:                (  120) seconds.
Offline data collection
capabilities:                    (0x11) SMART execute Offline immediate.No Auto Offline data collection support.Suspend Offline collection upon newcommand.No Offline surface scan supported.Self-test supported.No Conveyance Self-test supported.No Selective Self-test supported.
SMART capabilities:            (0x0002) Does not save SMART data beforeentering 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:        (  10) minutes.
SCT capabilities:              (0x0001) SCT Status supported.SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE1 Raw_Read_Error_Rate     0x0032   100   100   050    Old_age   Always       -       05 Reallocated_Sector_Ct   0x0032   100   100   050    Old_age   Always       -       09 Power_On_Hours          0x0032   100   100   050    Old_age   Always       -       904812 Power_Cycle_Count       0x0032   100   100   050    Old_age   Always       -       268
160 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       0
161 Unknown_Attribute       0x0033   100   100   050    Pre-fail  Always       -       100
163 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       23
164 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       32788
165 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       50
166 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       8
167 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       44
168 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       5050
169 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       100
175 Program_Fail_Count_Chip 0x0032   100   100   050    Old_age   Always       -       0
176 Erase_Fail_Count_Chip   0x0032   100   100   050    Old_age   Always       -       0
177 Wear_Leveling_Count     0x0032   100   100   050    Old_age   Always       -       0
178 Used_Rsvd_Blk_Cnt_Chip  0x0032   100   100   050    Old_age   Always       -       0
181 Program_Fail_Cnt_Total  0x0032   100   100   050    Old_age   Always       -       0
182 Erase_Fail_Count_Total  0x0032   100   100   050    Old_age   Always       -       0
192 Power-Off_Retract_Count 0x0032   100   100   050    Old_age   Always       -       93
194 Temperature_Celsius     0x0022   100   100   050    Old_age   Always       -       0
195 Hardware_ECC_Recovered  0x0032   100   100   050    Old_age   Always       -       0
196 Reallocated_Event_Count 0x0032   100   100   050    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   100   100   050    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0032   100   100   050    Old_age   Always       -       0
232 Available_Reservd_Space 0x0032   100   100   050    Old_age   Always       -       100
241 Total_LBAs_Written      0x0030   100   100   050    Old_age   Offline      -       446259
242 Total_LBAs_Read         0x0030   100   100   050    Old_age   Offline      -       363130
245 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       495220SMART Error Log Version: 1
No Errors LoggedSMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]Selective Self-tests/Logging not supportedThe above only provides legacy SMART information - try 'smartctl -x' for moreeuler@rpi4b:~ %

euler@rpi4b:~ % date
Sat Sep 27 12:24:32 UTC 2025

 

http://www.gsyq.cn/news/13098.html

相关文章:

  • prefect
  • 课后作业1-3
  • 实用指南:clsx:高效处理 React 条件类名的实用工具
  • 课后作业2(动手动脑,课后实验性问题)
  • 从零开始构建图注意力网络:GAT算法原理与数值实现详解
  • 分解原则编写
  • iSCSI网络存储——基于VM17下麒麟V10SP1与SP2的共享配置
  • CSP-S1 2025
  • 金币
  • 【阿里DeepResearch】写作组件WebWeaver详解 - 指南
  • 完整教程:PostgreSQL 知识体系
  • 加密货币技术革命:揭秘数字复兴时代
  • 对于烧烤签子的钢材担忧
  • day20_修改 删除功能
  • Linux环境之----POSIX信号量
  • 完整教程:Flink 容错从状态后端到 Exactly-Once
  • Java语法基础课程动手动脑及课后实验问题整理文档
  • 安装包制作流程-final
  • 一般路人向第39次CSP认证
  • 完整教程:微论-神经网络的亲情密码,权重矩阵的家庭关系论
  • Ansible + Docker 部署 Apache Nifi 1.28 单用户集群
  • Godot Outline
  • SentinelOne与MITRE ATTCK企业版2025评估的深度解析
  • 详细介绍:Docker的介绍
  • react useEffect Hook讲解
  • 2025海丰杯WP
  • 2025电线电缆厂家最新权威推荐榜:聚焦电线电缆实力企业,覆盖多场景需求助力精准选购
  • 9.27课后作业
  • 调度算法,上古三算法
  • 学位论文中 公式的插入,格式调整、编号以及引用