linux中如何查看使用的磁盘类型(机械硬盘/固态硬盘)

 

001、

[root@PC1 test]# smartctl --all /dev/sda
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0-123.el7.x86_64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               VMware,
Product:              VMware Virtual S
Revision:             1.0
User Capacity:        53,687,091,200 bytes [53.6 GB]
Logical block size:   512 bytes
Rotation Rate:        Solid State Device              ## 固态硬盘
Device type:          disk
Local Time is:        Wed Sep 14 20:26:49 2022 CST
SMART support is:     Unavailable - device lacks SMART capability.

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

Error Counter logging not supported

Device does not support Self Test logging

 

002、简化结果

root@ubuntu01:/home/test# smartctl -a /dev/sda | grep 'Rotation Rate'
Rotation Rate:        Solid State Device

 

posted @ 2022-09-14 20:34  小鲨鱼2018  阅读(842)  评论(0编辑  收藏  举报