DEV Community

immortalt
immortalt

Posted on

Monitor status of nvme ssd in Ubuntu

Install nvme-cli

sudo apt-get install nvme-cli
Enter fullscreen mode Exit fullscreen mode

List disks

sudo nvme list
Enter fullscreen mode Exit fullscreen mode

View the details of the hard drive

sudo nvme smart-log /dev/nvme0
Enter fullscreen mode Exit fullscreen mode

Auto refresh status

sudo watch -n 1 nvme smart-log /dev/nvme0
Enter fullscreen mode Exit fullscreen mode

Only view the temperature info

sudo nvme smart-log /dev/nvme0 | grep "^temperature"
Enter fullscreen mode Exit fullscreen mode

Discussion (0)