Skip to content

Instantly share code, notes, and snippets.

@gyorb
Created September 2, 2016 09:26
Show Gist options
  • Select an option

  • Save gyorb/3834d6159a90962ade8872092d164f40 to your computer and use it in GitHub Desktop.

Select an option

Save gyorb/3834d6159a90962ade8872092d164f40 to your computer and use it in GitHub Desktop.
detect ssd on linux
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