Published on

How to Identify SSD and HDD on Windows and Linux

Authors
  • avatar
    Name
    hwahyeon
    Twitter

Here's how to check whether your disk is an SSD or HDD:

Windows PowerShell

Use the Get-PhysicalDisk command to display physical disk details. The MediaType column indicates whether each disk is an SSD or an HDD.

Linux/WSL

You can identify the disk type with the following command:

lsblk -d -o NAME,ROTA

A ROTA value of 0 means the disk is an SSD, while 1 indicates an HDD.

Example output:

NAME   ROTA
sda       0
sdb       1