Linux to see if the hard drive is an SSD (SSD)

Source: Internet
Author: User

The following switch from Baidu:Recently in preparation for testing, you need to see which machines are mounted SSD hard drives, Google has seen a lot of methods, but all foggy, do not know how to determine. SSD hard disk seems to use the SCSI interface, so according to the name of the drive letter is not to be judged. The last group of Eric God told LSSCSI Tools, try it, very simple, the display is also very direct, share a bit. Nonsense not much to say, direct and result as follows:
[[Email protected]_yf_009_110 ~]# lsscsi[0:0:0:0] Disk SEAGATE st3300657ss ES62-[0:0:1:0] disk ATA INTEL ssdsa2cw16 0362 /DEV/SDA[0:0:2:0] Disk ATA Intel SSDSA2CW16 0362/dev/sdb[0:0:3:0] Disk ATA Intel SSDSA2CW16 0362/dev/sdc[0:1:0:0] Disk Dell VIRTUAL DISK 1028/dev/sdd[3:0:0:0] CD/DVD TEAC DVD-ROM DV-28SW r.2a/dev/sr0

Look at the fourth column to know whether it is SSD hard drive, interested can try

Additional Viewing information:

1. LSHW View all hardware summary information

The following command can view all hardware summary information, and output as an HTML file, the HTML file exported to the computer, directly open, you can clearly see the hardware information:

[Email protected]/]# lshw-html >/hardware.html

2. LSSCSI View SCSI Controller device information

You can see information about the RAID card information and all virtual disks as well as the optical drive, and if there is no hardware SCSI controller, it will not return information:

[[email protected]/]# lsscsi[0:2:0:0]    disk    DELL     PERC h730p Mini  4.27  /dev/sda[0:2:1:0]    Disk    dell     perc h730p Mini  4.27  /dev/sdb[0:2:2:0]    disk    dell     perc h730p Mini  4.27  /dev/sdc[10:0:0:0]   CD/DVD  PLDS     dvd+-rw ds-8absh LD51  /dev/sr0

3. LSCPU View CPU Information

[Email protected]/]# lscpuarchitecture:          x86_64cpu Op-mode (s):        32-bit, 64-bitbyte Order:            Little ENDIANCPU (s):                16on-line CPU (s) List:   0-15thread (s) per core:    1Core (s) per socket:    8Socket (s):             2NUMA node (s):          2Vendor ID:             genuineintelcpu family:            6Model:                 79Model Name:            Intel (R) Xeon (R) CPU e5-2609 v4 @ 1.70GHzStepping:              1CPU MHz:               1699.930BogoMIPS:              3399.52Virtualization:        vt-xl1d Cache:             32kl1i cache:             32kl2 cache:              256kl3 cache:              20480KNUMA node0 CPU (s):     0,2,4,6,8,10,12,14numa Node1 CPU (s):     1,3,5,7,9,11,13,15

4. LSUSB View USB Interface Device information

[Email protected]/]# Lsusbbus 001 device 001:id 1d6b:0002 Linux Foundation 2.0 root hubbus 002 Device 001:id 1d6b:0002 Linux Foundation 2.0 root hubbus 001 device 002:id 8087:800a Intel Corp.bus 002 Device 002:id 8087:8002 Intel Corp.bus 003 Device 001:id 1d6b:0002 Linux Foundation 2.0 root hubbus 004 Device 001:id 1d6b:0003 Linux Foundation 3.0 root Hubbu S 003 Device 002:id 04d9:1603 Holtek Semiconductor, Inc. keyboardbus 003 device 003:id 045e:0084 Microsoft Corp Basic O Ptical mousebus 003 Device 004:id 413c:a001 Dell computer Corp. Hub

5. LSBLK View block Device information

[[email protected]/]# lsblkname   maj:min RM  SIZE RO TYPE mountpointsda      8:0    0  200G  0 disk├─sda1   8:1    0    2G  0 part/boot├─sda2   8:2    0  127G  0 part/└─sda3   8:3    0 62.5G  0 Part [SWAP]SDC      8:32   0  223G  0 disk└─sdc1   8:33   0  223G  0 part/ Oldstoresdb      8:16   0 21.1T  0 disk└─sdb1   8:17   0 21.1T  0 part/storesr0     11:0    1 1024M  0 rom

Linux to see if the hard drive is an SSD (SSD)

Related Article

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.