Skip to main content
23 events
when toggle format what by license comment
Feb 8 at 19:18 comment added cyford On all raids it will show as 0 aswell.. i think unknown is 0
Jul 16, 2022 at 9:18 comment added Gedeon Mutshipayi This work for me, i got 0, my disk is SSD.
Feb 18, 2021 at 22:39 history edited Totor CC BY-SA 4.0
adding link purpose
Jan 20, 2021 at 20:03 comment added spacebiker This didn't work for me, both the hd and the ssd show 1
Jan 28, 2020 at 16:10 comment added arielf This works if you know which device to show (e.g. sda) a-priori. If you want to discover disks + whether they are rotational, try @don_crissti answer.
Dec 3, 2019 at 9:20 comment added Marki555 @Ferrybig There are only SSDs in NVME format, not HDDs (unless you do have some strange breakout adapter from NVME slot to plain SATA cable). But not sure if even SATA SSD over NVME shows as NVME in linux or as plain sdX.
Dec 24, 2018 at 10:33 comment added Ferrybig On certain computers, you need to run cat /sys/block/nvme0n1/queue/rotational instead, sda does not exist on my laptop
Jul 4, 2017 at 13:23 history edited Totor CC BY-SA 3.0
+ not working for harware RAID ctlr
Mar 20, 2017 at 10:04 history edited CommunityBot
replaced http://superuser.com/ with https://superuser.com/
Nov 8, 2016 at 21:45 comment added MonoThreaded On virtual servers, you may need to fetch /sys/block/vda/queue/rotational
Jun 30, 2016 at 16:18 comment added Terrance @Totor You are correct in the "hybrid" drives. However, dual-drive hybrids show up as two individual drives, where SSHD (Solid-State Hybrid Drive) shows up as a single drive. So, the SSHD would show rotational of 1.
Mar 28, 2016 at 20:42 comment added Totor @CMCDragonkai They propably appear as rotational since the flash memory is mostly an "improved cache". You tell us...
Nov 1, 2015 at 10:35 comment added CMCDragonkai What about hybrid drives?
Oct 20, 2015 at 10:44 comment added dma_k The method does not work for USB sticks – they are certainly not rotational drives (see Doesn't detect USB flash drive as SSD).
Sep 2, 2015 at 10:58 comment added haridsv Nice! Works without having sudo privileges.
Sep 4, 2014 at 13:21 comment added PythoNic @totor Better add this comment on the other post. I don't know his/her kernel version :)
Sep 4, 2014 at 12:58 comment added Totor @PythoNic please file a kernel bug report about this.
Jul 23, 2014 at 10:55 comment added PythoNic On Stackoverflow somebody found this sys-info didn't work.
Mar 18, 2013 at 4:27 vote accept user4951
Feb 25, 2013 at 21:43 history edited Totor CC BY-SA 3.0
+link to kernel commit
Feb 25, 2013 at 21:13 history edited Totor CC BY-SA 3.0
added 7 characters in body
Feb 21, 2013 at 9:53 history edited Totor CC BY-SA 3.0
added 2 characters in body
Feb 21, 2013 at 9:48 history answered Totor CC BY-SA 3.0