![]() In such case we have to rely on some third party tools. ![]() If you are using any kind of RAID such as hardware or software raid then it is possible you won't get the model number with above command. We can get the model number of the disk using lsblk command: # lsblk -d -e 7 -o NAME,ROTA,DISC-MAX,MODEL Here I have another setup with SSD disks: Now we can check the rotational value of these individual disks: # cat /sys/block/ sda/queue/rotationalĪs the value for both the disks are 1, it means my both the disks are HDD. These are the available disks on my Linux server: # lsscsi If the value is 0, you're dealing with an SSD, and 1 means plain old HDD. You should check the value of /sys/block/sdX/queue/rotational, where sdX is the drive name. Method 1: Check if the disk is rotational You can use the following methods to identify your disk type whether it is HDD or SSD There are different types of disk available out of which the most used are Hard Drive (HDD) and Solid State Drive (SSD). I have verified these commands on RHEL/CentOS Linux so if you are using a different distribution such as Ubuntu, Debian, etc then some of the commands may now work. ![]() In this article I will share different commands which can be used to check the hard drive (disk) type in your Linux environment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |