Solve: Introducing nvme_check.sh – A Safe, Friendly NVMe Diagnostic Tool for Raspberry Pi


Solve: Introducing nvme_check.sh – A Safe, Friendly NVMe Diagnostic Tool for Raspberry Pi







Working with NVMe drives on the Raspberry Pi 5 is exciting—but it can also be frustrating. Most users aren’t sure if TRIM is working, or if their drive is mounted correctly, or why performance seems to drop over time. Worse, the common tools (hdparm, nvme-cli, fstrim, etc.) each speak their own strange dialect.

So we built a tool to make it all easier.

nvme_check.sh is a lightweight terminal script designed for Raspberry Pi users running Raspberry Pi OS or Armbian. It wraps essential Linux commands in a simple, menu-based interface—no background changes, no risk, no guesswork.


๐Ÿ›  What It Shows You
  • Which NVMe drive is connected (and how big it is)
  • Whether it’s mounted properly and which file system it uses
  • Whether TRIM is supported, working, and scheduled
  • If the discard option is present for live TRIM
  • A quick, safe 100MB read/write test
  • NVMe health info via nvme smart-log
  • An exportable session log you can share or save
All logs go to ~/nvme_check_session.log and can be reviewed or copied using option [8].


๐Ÿงช Why We Built It

We ran into a real-world issue helping a fellow Pi user who was trying to diagnose an NVMe slowdown. What should’ve been a few quick commands turned into a mess of hdparm confusion, missing nvme tools, and uncertainty about whether anything was actually working.

That’s when we realized: there's no "one screen" tool for checking NVMe health on a Pi. So we made one.


๐Ÿ’พ Try It Now

You can download the script and find full install instructions here:

๐Ÿ‘‰ Public Gist: nvme_check.sh

If you’re a Raspberry Pi 5 user experimenting with NVMe drives, this tool is for you. If you’re running Debian Bookworm, Raspberry Pi OS, or Armbian—you’re covered.



Need Raspberry Pi Expertise?

We'd love to help you with your Raspberry Pi projects.  Feel free to reach out to us at info@pacificw.com.


Written by Aaron Rose, software engineer and technology writer at Tech-Reader.blog.

Comments

Popular posts from this blog

The New ChatGPT Reason Feature: What It Is and Why You Should Use It

Raspberry Pi Connect vs. RealVNC: A Comprehensive Comparison

The Reasoning Chain in DeepSeek R1: A Glimpse into AI’s Thought Process