The nvme-cli is a command line tool used to manage and interact with NVMe (Non-Volatile Memory Express) storage devices - like NVMe SSDs - on Linux systems. It gives you low-level access to control, monitor, and troubleshoot NVMe devices. This tutorial explains how to install nvme-cli on Ubuntu 24.04.
Install nvme-cli
Update the package lists:
sudo apt update
Execute the following command to install nvme-cli:
sudo apt install -y nvme-cli
After installation, check the nvme-cli version using this command:
nvme version
Testing nvme-cli
We can use the nvme list command to scan and display all NVMe devices connected to the system. It shows useful information like device paths, model numbers, firmware versions, and capacities.
nvme list
Output example:
Node Generic SN Model Namespace Usage Format FW Rev
------------- ----------- ---------------- ---------------------------------------- ---------- -------------------------- ---------------- --------
/dev/nvme0n1 /dev/ng0n1 S73UNX0R123456K Samsung SSD 990 PRO with Heatsink 2TB 0x1 395.29 GB / 2.00 TB 512 B + 0 B 3B2QJXD7
Uninstall nvme-cli
To completely uninstall nvme-cli and all its associated dependencies, execute this command:
sudo apt purge --autoremove -y nvme-cli
The 2 Comments Found
Hello: I bought a Western Digital WD SN5000 1TB NVMe SSD and wanted to use WDCkit to check for Firmware Updates, WD nor Sandisk recent new partner, no longer support wdckit. So, I find nvme-cli for Linux in couple of places, I download/ install the program, open it in a Terminal, try to Identify my SSD.. I get Access Denied....! According to Gparted partitioning Program my Drive ID is: /dev/nvme0n1p3, I have used this ID and still get denied, I also tried all the directions in the documentation like human readable, etc.... same response....?
Hi,
Try to run the command with sudo privileges:
sudo nvme listLeave a Comment
Cancel reply