How to verify VPS provided is on SSD drive or not?

Category : Advanced

This is a simple 2 command tutorial to find our if your VPS is on SSD drive or a normal SATA drive. Also, it will help you comparing the disk speed of different VPSes

Since VPS runs on its own environment and doesn’t have all the permission to run commands which can be used only on the dedicated machine to find out type of hard disk, here is an alternative for it.

Follow the following steps to find your disk speed which will verify if its SSD or not :

First, enter any directory on the SSD with at least 1.1 GB of free space and run the following command :

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

In case of SSD Drive, you should get result something like this :

1000+0 records in

1000+0 records out

512000 bytes (512 kB) copied, 0.73143 s, 700 kB/s

Whereas for a normal hard disk, the time duration will be pretty high ( above 20 seconds !!) and speed will be very low.

The command basically writes a file of size 512 kB repeatedly and measures the speed.

You can safely delete the file after completing your test :

rm /tmp/basezap.img