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

news/2025/9/27 20:26:33/文章来源:https://www.cnblogs.com/profesor/p/19115608

 

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.mzph.cn/news/919896.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

GraphRAG对自然语言处理中深层语义分析的革命性影响与未来启示 - 教程

GraphRAG对自然语言处理中深层语义分析的革命性影响与未来启示 - 教程pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; display: block !important; font-family: &q…

prefect

prefecthttps://app.prefect.cloud/account/e92c46e8-d797-4688-95c2-f14c4597b4f0/workspace/ee283a78-bf05-480e-bbd1-059318f996f1/flows

html5 网站开发语言一个好的营销型网站模板

现有代码移植到Metro App 一&#xff1a;工程配置 配置WinRT工程时要注意以下几点&#xff1a; 静态库工程General里的“Windows Store App Support”设成trueC\General下面的“Consume Windows Runtime Extension”设成Yes&#xff0c;设置该选项的目的是&#xff1a;引入Micr…

微信网站开发制作公司网站开发语言排行榜

Ctrl C 复制 Ctrl V 粘贴 Ctrl A 全选 Ctrl X 剪切 Ctrl Z 撤销 Ctrl S 保存 Ctrl Shift Esc 打开任务管理器 Shift Del 彻底删除 Win E 打开我的电脑 Win R 打开运行 Alt F4 关闭窗口 Alt Tab 切换应用程序

生成算数问题*30

生成算数问题*30package pack1; public class Suanshi { private int can1; private int can2; private int result; private char op; public int getCan1() { return can1; } …

6379:统计学生信息(使用动态链表完成)

题目 总时间限制: 1000ms 内存限制: 65536kB 描述 利用动态链表记录从标准输入输入的学生信息(学号、姓名、性别、年龄、得分、地址) 其中,学号长度不超过20, 姓名长度不超过40, 性别长度为1, 地址长度不超过40 输入…

详细介绍:云原生 vs 传统部署

详细介绍:云原生 vs 传统部署pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; display: block !important; font-family: "Consolas", "Monaco"…

使用IOT-Tree Server通过FINS协议连接欧姆龙CP2E-N系列PLC - 详解

pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; display: block !important; font-family: "Consolas", "Monaco", "Courier New", …

实用指南:疑难bug之正确处理InterruptedException

pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; display: block !important; font-family: "Consolas", "Monaco", "Courier New", …

课后作业1-3

课后作业1-3EnumTest.java运行结果结论枚举中的每个常量都是唯一实例,可用 == 直接比较(equals()same) 不属于基本数据类型 valueOf 方法:通过字符串名称获取对应的枚举常量 使用 enum 关键字定义,常量之间用逗号…

个人备案网站名称有哪些网站做团购最好

华为设备参考&#xff1a;路由引入实验&#xff08;华为&#xff09; 技术简介 路由引入技术在网络通信中起着重要的作用&#xff0c;能够实现不同路由协议之间的路由传递&#xff0c;并在路由引入时部署路由控制&#xff0c;实现路径或策略的控制 实验目的 不同的路由协议之…

GNSS精度判断和协方差矩阵 - MKT

GNSS精度判断和协方差矩阵 havv和vacc不是GST标准差,https://blog.csdn.net/qq_38429958/article/details/135639678 https://uav.chinaflier.com/thread-25814-1-1.html 飞控需要GPS哪些信息(即需要设置哪些参数…

实用指南:clsx:高效处理 React 条件类名的实用工具

实用指南:clsx:高效处理 React 条件类名的实用工具2025-09-27 20:07 tlnshuju 阅读(0) 评论(0) 收藏 举报pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; dis…

Insightly模板页面存储型XSS漏洞分析与复现

本文详细分析了Insightly平台模板页面因LINK名称未正确转义导致的存储型XSS漏洞。包含完整的漏洞复现步骤、攻击原理说明以及漏洞影响分析,涉及脚本标签逃逸技术实战演示。Insightly存储型XSS漏洞报告(#1392262) 漏…

记录 | 关于陪伴型交互AI的一些探讨

关于陪伴型交互AI的一些探讨怎么说呢主要是发布下关于自己关于AI VTuber的开发进展前言 目前的化对整体内容进行了局部的优化和更新,并更新到了v0.5.0版本!【好累啊,都没什么热情了】 整体架构已经初步具备了稳定性…

dw中网站统计总访问量怎么做西安小型网络公司

1&#xff1a;调用函数 eg&#xff1a;调用内置函数 abs() 求绝对值 2&#xff1a;定义函数 1&#xff1a;定义一个函数要使用 def 语句&#xff0c;依次写出函数名、括号、括号中的参数和冒号:&#xff0c;然后&#xff0c;在缩进块中编写函数体&#xff0c;函数的返回值用ret…

陈村网站设计福州专业网站建设

广州大学学生实验报告 开课实验室&#xff1a;计算机科学与工程实验&#xff08;电子楼418A&#xff09; 2019年4月19日 学院 计算机科学与教育软件学院 年级、专业、班 计算机科学与技术 姓名 学号 实验课程名称 数据结构实验 成绩 实验项目名称 实验三…

百度推广做网站什么价位网吧网络维护公司

Java Collections框架 Java Collections框架中包含了大量的集合接口以及这些接口的实现类和操作它们的方法&#xff0c;具体包含了Set(集合&#xff09;、List(列表)、Map(键值对)、Queue(队列)、Stack(栈)等&#xff0c;其中List、Set、Queue、Stack都继承了Collection接口。…

luogu P1719 最大加权矩形

题目大意 需要支持在一个序列中插入等差数列 需要插入\(O(1)\) 最终统计答案\(O(n)\) \(1\leq n\leq 1e7\) Sol 对于一个序列如下:0 0 4 6 8 10 12 0 0我们将其进行一次差分,可以得到:0 0 4 2 2 2 2 -12 0可以发现中间…

CF2065D Skibidus and Sigma

参考代码:#include<bits/stdc++.h> #define ll long long using namespace std; const int N = 2e5 + 10,inf = 0x3f3f3f3f; struct node{ll sum,id; }; node t[N]; vector<ll> a[N]; ll n,m; bool cmp(n…