Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux如何查询磁盘是ssd, sata? #11

Open
todaygood opened this issue Dec 7, 2018 · 0 comments
Open

linux如何查询磁盘是ssd, sata? #11

todaygood opened this issue Dec 7, 2018 · 0 comments

Comments

@todaygood
Copy link
Owner

lsblk -d -o name,rota
NAME ROTA
sda 0
sdb 0
sdc 1

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant