Created
September 2, 2016 09:26
-
-
Save gyorb/3834d6159a90962ade8872092d164f40 to your computer and use it in GitHub Desktop.
detect ssd on linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Starting from kernel 2.6.29, SSD disks are automatically detected, and you may verify this with: | |
| cat /sys/block/sda/queue/rotational | |
| You should get 1 for hard disks and 0 for a SSD. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment