How to Check a Hard Drive Serial Number in FreeBSD
When a drive starts failing on a remote server, datacenter support almost always asks for its exact serial number so the technician doesn’t accidentally pull a healthy disk from the bay. In FreeBSD, you can pull every drive’s serial number straight from the console in seconds – even without installing extra packages.
![]()
Below are four quick commands covering SATA, SAS, and NVMe drives, from built-in base utilities to full SMART diagnostics.
Method 1. List Every Disk and Serial at Once (geom)
The fastest built-in command on modern FreeBSD prints every attached drive’s device name, model description, and serial number (ident) in one shot:
geom disk list | grep -E "Geom name|descr|ident"
On modern FreeBSD systems, SATA drives appear as ada0, ada1, SAS/USB disks as da0, and NVMe SSDs as nvd0 or nda0 (older releases used ad4, ad10).
Method 2. Built-In diskinfo Utility
If you already know the target device name (for example /dev/ada0 or legacy /dev/ad10), query its serial directly:
diskinfo -v /dev/ada0 | grep ident
You get a clean single-line output:
9QF4EP1Q # Disk ident.
Method 3. camcontrol (SATA/SAS) and nvmecontrol (NVMe)
Both utilities ship in the FreeBSD base system and return detailed hardware identification:
camcontrol identify /dev/ada0 | grep -i serial nvmecontrol identify nvme0 | grep -i serial
Method 4. smartctl (Serial Number Plus SMART Health)
When you also want to attach reallocated sector counts or read errors to your datacenter ticket, install smartmontools and inspect the drive with smartctl:
pkg install smartmontools smartctl -i /dev/ada0
Swap -i for -a to view full SMART attributes alongside the model and serial header:
=== START OF INFORMATION SECTION === Model Family: SAMSUNG SpinPoint F3 series Device Model: SAMSUNG HD754JJ Serial Number: S2AHJ1BZ402398 Firmware Version: 1AJ10001
If your drives sit behind a hardware RAID controller, pass the appropriate controller flag to smartctl (such as -d megaraid,0) to read the physical drive’s serial number through the array.