{"id":9037,"date":"2023-11-24T00:46:06","date_gmt":"2023-11-24T00:46:06","guid":{"rendered":"https:\/\/www.linuxandotherstuff.com\/?p=9037"},"modified":"2023-11-24T00:46:07","modified_gmt":"2023-11-24T00:46:07","slug":"how-to-know-if-a-disk-is-an-ssd-or-an-hdd","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2023\/11\/24\/how-to-know-if-a-disk-is-an-ssd-or-an-hdd\/","title":{"rendered":"How to know if a disk is an SSD or an HDD"},"content":{"rendered":"\n<p>Linux automatically detects SSD, and since kernel version 2.6.29, you may verify sda with:<\/p>\n\n\n\n<p>cat \/sys\/block\/sda\/queue\/rotational<\/p>\n\n\n\n<p>You should get 1 for hard disks and 0 for a SSD.<\/p>\n\n\n\n<p>It will probably not work if your disk is a logical device emulated by hardware (like a RAID controller).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux automatically detects SSD, and since kernel version 2.6.29, you may verify sda with: cat \/sys\/block\/sda\/queue\/rotational You should get 1 for hard disks and 0 for a SSD. It will probably not work if your disk is a logical device emulated by hardware (like a RAID controller).<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-9037","post","type-post","status-publish","format-standard","hentry","category-administration"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/9037","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=9037"}],"version-history":[{"count":1,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/9037\/revisions"}],"predecessor-version":[{"id":9038,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/9037\/revisions\/9038"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=9037"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=9037"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=9037"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}