How to confirm if the disk is SSD under Linux

Source: Internet
Author: User

Method

Method 1: By viewing/sys/block/sda/queue/rotational

With Cat/sys/block/sda/queue/rotational, the return value of 0 is SSD, and 1 is HDD.

Method 2: View by LSSCSI

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

Instance

HDD

[[email protected] thatsit]# cat/sys/block/sda/queue/rotational1[[email protected] thatsit]# lsscsi[0:0:32:0] Enclosu DP bp12g+ 1.00-[0:2:0:0] Disk DELL PERC H310 2.12/dev/sda[[email protected] thatsit]#

Ssds

[[email protected] thatsit]# cat/sys/block/sda/queue/rotational0[[email protected] 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[[email PR Otected] thatsit]#

  

How to confirm if the disk is SSD under Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.