判断linux系统上的盘是ssd还是hdd的方法
Linux automatically detects SSD, and since kernel version 2.6.29, you may verify sda with:
cat /sys/block/sda/queue/rotational
You should get 1 for hard disks and 0 for a SSD.
# It is not exact in the onecloudsystem pluged in with a usb hard drive.
Use
原创
2020-06-03 11:04:04 ·
267 阅读 ·
0 评论