Updated: 3 November 2026 · Applies to: Linux, VPS and dedicated servers

To check whether a disk is an SSD on Linux, read its rotational flag with lsblk. On a real, dedicated disk this is reliable; on a VPS, where the hypervisor controls what the guest sees, it is often wrong, so a real write speed test is the more trustworthy check in a virtualized environment.

Quick check: the rotational flag

lsblk -d -o NAME,ROTA

ROTA of 0 means the kernel believes the disk is not a spinning drive (an SSD or NVMe disk); 1 means it is a traditional spinning hard disk. On bare metal this is normally accurate. On a VPS, many hypervisors present virtual block devices that report ROTA=1 even when the underlying physical storage is genuinely SSD or NVMe, since that flag reflects what the guest's virtual disk reports, not the real hardware beneath it. Do not treat ROTA=1 on a VPS as proof the storage is spinning disk; confirm with a real speed test instead.

Reliable check: measure write speed directly

VPS environments do not give you permission to run most direct hardware-identification tools, so measuring write performance is the practical alternative. Run this from a directory on the disk you want to test, with at least 1.1GB of free space, and bypassing the filesystem cache with oflag=dsync so you are measuring real disk writes, not memory:

dd if=/dev/zero of=./disktest.img bs=512 count=1000 oflag=dsync

A result like this, well under a second and well over 100 kB/s, is consistent with SSD or NVMe storage:

1000+0 records in
1000+0 records out
512000 bytes (512 kB) copied, 0.73 s, 700 kB/s

A traditional spinning hard disk typically takes noticeably longer, often 15 to 30 seconds or more for the same small, repeatedly-synced write, with a correspondingly much lower throughput figure.

Remove the test file once you are done:

rm ./disktest.img

Why this test specifically, and not a larger benchmark

The small block size and oflag=dsync deliberately force many individual sync operations rather than one large sequential write, which is what actually separates SSD from spinning disk performance: spinning disks are dramatically slower at this kind of small, frequent write pattern because of the physical seek time involved, while SSDs have no moving parts to seek at all. A large sequential write alone can look fast on both types of storage, which is why this specific, small-block, sync-forced pattern is the more telling test.

Comparing VPS plans

Running the same test on two different VPS instances and comparing the resulting numbers is also a reasonable, practical way to compare their real disk performance against each other, since both tests measure the same thing under the same conditions.

Related services

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Unmanaged dedicated servers

full root access and free IPMI KVM, with Free Basic Managed Support.

Managed dedicated servers

our engineers look after the server for you, from $131.99 a month.

Was this answer helpful?

Still stuck? Open a ticket