Linux系统下如何查看硬盘剩余使用寿命?

1、使用smartclt命令查看硬盘的smart信息,如以下范例:

smartctl -a /dev/sdb

smartctl 6.5 2016-05-07 r4318 [x86_64-linux-4.14.0-49.15.x86_64] (local build)

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

=== START OF INFORMATION SECTION ===

Device Model:     SAMSUNG MZ7LH480HAHQ-00005

Serial Number:     S45PNA0M540908

LU WWN Device Id:    5 002538 e001d842c

Firmware Version:    HXT7404Q

User Capacity:      480,103,981,056 bytes [480 GB]

Sector Sizes:      512 bytes logical, 4096 bytes physical

Rotation Rate:      Solid State Device

Form Factor:      2.5 inches

Device is:        Not in smartctl database [for details use: -P showall]

ATA Version is:     Unknown(0x0ffc), ACS-4 T13/BSR INCITS 529 revision 5

SATA Version is:    SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)

Local Time is:      Tue Oct 19 16:03:51 2021 CST

SMART support is:    Available - device has SMART capability.

SMART support is:    Enabled

=== START OF READ SMART DATA SECTION ===

SMART Status not supported: ATA return descriptor not supported by controller firmware

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

技术瘾君子1573

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值