zoukankan      html  css  js  c++  java
  • Linux下如何确认磁盘是否为SSD

    方法

    法1:通过查看/sys/block/sda/queue/rotational

    通过cat /sys/block/sda/queue/rotational进行查看,返回值0即为SSD;返回1即为HDD。

    法2:通过lsscsi查看

    lsscsi - list SCSI devices (or hosts) and their attributes

    实例

    HDD

    [root@ssd-test thatsit]# cat /sys/block/sda/queue/rotational
    1
    [root@ssd-test thatsit]# lsscsi
    [0:0:32:0] enclosu DP BP12G+ 1.00 -
    [0:2:0:0] disk DELL PERC H310 2.12 /dev/sda
    [root@ssd-test thatsit]#

    SSD

    [root@hdd-test thatsit]# cat /sys/block/sda/queue/rotational
    0
    [root@hdd-test thatsit]# lsscsi
    [0:0:0:0] disk ATA INTEL SSDSC2BX48 0150 -
    [0:0:1:0] disk ATA INTEL SSDSC2BX48 0150 -
    [0:1:0:0] disk LSI Logical Volume 3000 /dev/sda
    [root@hdd-test thatsit]#
    

      

  • 相关阅读:
    es删除索引
    真人快打11技能键位
    点到线段的距离
    行列快乐值
    按钮变色
    取数求和
    机器分配
    田忌赛马 问题
    雷达
    最小字典序
  • 原文地址:https://www.cnblogs.com/thatsit/p/7124098.html
Copyright © 2011-2022 走看看