

If the disk is HDD, you will get this output: Rotation Rate: 5400 rpm Method 4 - Using dmesg + Google If the disk is SSD, you will get an output like below.

My weather indicator linux mint install#
On openSUSE: $ sudo zypper install smartmontoolsĪfter installing smartmontools package, run the following command to find if the disk is SSD or HDD: $ sudo smartctl -a /dev/sda | grep 'Rotation Rate' On RHEL, CentOS: $ sudo yum install smartmontools On Debian, Ubuntu: $ sudo apt install smartmontools To install SMART monitoring tools on Arch Linux and its variants, run: $ sudo pacman -S install smartmontools The smartctl is part of the S.M.A.R.T monitoring tools package, which is used to control and monitor S.M.A.R.T. The another way to find if the disk is SSD or HDD is using smartctl command. If the value is 0 (zero), then the disk is SSD. If you get value of rota in the above output as 1, the disk is HDD. Now, find if the disk is SSD or HDD using command: $ lsblk -d -o name,rota On openSUSE: $ sudo zypper install util-linux On RPM-based systems: $ sudo yum install util-linux On Debian-based systems: $ sudo apt install util-linux Just in case if lsblk command is not available, just install util-linux package using your distribution's package manager.įor example, on Arch-based systems, you can install it using command: $ sudo pacman -S util-linux The lsblk command is part of the util-linux package and comes pre-installed with most Linux distributions. The lsblk command reads the sysfs filesystem and udev db to gather information about all available or the specified block devices. For example if you choose SATA as bus type for the virtual disk, you will see the following output: $ cat /sys/block/vda/queue/rotational The result will vary depend on the bus type you chose during the virtual machine. If you are on a KVM guest virtual machine, the drive letter would be vda. $ cat /sys/block/sdb/queue/rotational $ cat /sys/block/sdc/queue/rotational So, you can check other drives details as well. So the output should be zero if you have SSD in your system.Įach drive has a directory in /sys/class/block/ location. If the output is 0 (zero), the disk is SDD. So, to find whether the installed disk is SSD or normal HDD, just check if the disk is rotational using the following command: $ cat /sys/block/sda/queue/rotational Unlike the traditional HDDs, the SSDs doesn't have any moving parts and SSDs don't rotate. On the other hand, Solid State Drive (SDD) is modern storage technology and faster type of disk drive that stores the data on instantly-accessible flash memory chips. The faster the disk spins (rotates), the faster the hard disk works. When the disc spins, the moving read/write head will access the data.

I do not need to see if any test succeeded.Ĭontents of sudo crontab: */5 * * * * /home/userXXX/ISPConnectivity.sh > /home/userXXX/ISPConnectivity.log 2>&1Ĭontents of ISPConnectivity.Method 1 - Check if the Disk is rotationalĪs you may already know, the traditional Hard Disk Drive (HDD) stores the data on a circular disc known as platter.
