How to detect your server has SSD/HDD hard disk

Introduction

SSD HDD
ssd ssd

1. Stands for Solid State Drive

1. Stands for Hard Disk Drive

2. An SSD is a type of mass storage device similar to a hard disk drive

2. A HDD is an old-school storage device that uses mechanical platters

3. It supports reading and writing data and maintains stored data in a permanent state even without power

3. A moving read/write head to access data.That moves extremely fast from one area of the disk to another. Since all of these pieces are mechanical the hard disk is the slowest component of any computer and the most fragile

4. SSD store data using flash memory

4. It is a secondary storage device used to store data permanently, RAM being the primary memory device, Data is retained when the computer is turned off

5. SSDs do not have any moving parts

5. HDDs rely on spinning disks

How to Know if You’re Using SSD or HDD in Ubuntu terminal


known sata device

$ lsblk -o NAME,ROTA

-o, --output list, Specify which output columns to print

ROTA means rotational device

You should get 1 for rotational device (HDD)

known ssd device

$ lsblk -o NAME,ROTA

You should get 0 for a SSD.