This is ane of those random things I produce too decided to position it inwards the website. I know that my personal calculator is running on HDD, but when I am logged into a remote Linux arrangement too of a abrupt I started wondering most how to determine if the underlying disk is SSD or HDD, I wasn’t likewise certain what to expect for. H5N1 quick Google search returned the best possible solution too I thought, howdy mayhap I should merely write a modest How to most “How to determine if a disk is SSD or HDD”.
Hard Disk Drive (HDD)
A difficult disk drive (HDD) is a information storage device used for storing too retrieving digital information using chop-chop rotating disks (platters) coated alongside magnetic material. An HDD retains its information fifty-fifty when powered off. Data is read inwards a random-access manner, pregnant private blocks of information tin plough over notice live on stored or retrieved inwards whatever social club rather than sequentially. An HDD consists of ane or to a greater extent than stiff (“hard”) chop-chop rotating disks (platters) alongside magnetic heads arranged on a moving actuator arm to read too write information to the surfaces.
Solid State Drive (SSD)
A solid-state drive (SSD) (also known equally a solid-state disk or electronic disk, though it contains no actual disk, nor a drive motor to spin a disk) is a information storage device that uses integrated circuit assemblies equally retention to shop information persistently. SSD engineering scientific discipline uses electronic interfaces compatible alongside traditional block input/output (I/O) difficult disk drives, therefore permitting unproblematic replacement inwards mutual applications. Additionally, novel I/O interfaces, similar SATA Express, accept been designed to address specific requirements of the SSD technology.
Determine if a disk is SSD or HDD
Linux automatically detects SSD, too since gist version 2.6.29, you lot may verify sda with:
cat /sys/block/sda/queue/rotational
You should get 1 for difficult disks and 0 for a SSD. In my case, I get 1 (cause it’s a 7200RPM rotational HDD).

