User Tools

Site Tools


systems:media_server:install_useful_packages

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
systems:media_server:install_useful_packages [2025/05/29 20:11] petersystems:media_server:install_useful_packages [2025/05/31 07:45] (current) peter
Line 95: Line 95:
 --------------------- --------------------- -------------------- ---------------------------------------- ---------- -------------------------- ---------------- -------- --------------------- --------------------- -------------------- ---------------------------------------- ---------- -------------------------- ---------------- --------
 /dev/nvme0n1          /dev/ng0n1            S7PJNJ0Y405817D      Samsung SSD 990 PRO 2TB                  0x1         36.65  GB /   2.00  TB    512   B +  0 B   4B2QJXD7 /dev/nvme0n1          /dev/ng0n1            S7PJNJ0Y405817D      Samsung SSD 990 PRO 2TB                  0x1         36.65  GB /   2.00  TB    512   B +  0 B   4B2QJXD7
 +</code>
 +
 +and
 +
 +<code bash>
 +sudo nvme smart-log /dev/nvme0n1
 +</code>
 +
 +returns:
 +
 +<code>
 +Smart Log for NVME device:nvme0n1 namespace-id:ffffffff
 +critical_warning : 0
 +temperature : 39 °C (312 K)
 +available_spare : 100%
 +available_spare_threshold : 10%
 +percentage_used : 0%
 +endurance group critical warning summary: 0
 +Data Units Read : 4932 (2.53 GB)
 +Data Units Written : 76004 (38.91 GB)
 +host_read_commands : 70607
 +host_write_commands : 156114
 +controller_busy_time : 1
 +power_cycles : 5
 +power_on_hours : 1
 +unsafe_shutdowns : 1
 +media_errors : 0
 +num_err_log_entries : 0
 +Warning Temperature Time : 0
 +Critical Composite Temperature Time : 0
 +Temperature Sensor 1           : 39 °C (312 K)
 +Temperature Sensor 2           : 44 °C (317 K)
 +Thermal Management T1 Trans Count : 0
 +Thermal Management T2 Trans Count : 0
 +Thermal Management T1 Total Time : 0
 +Thermal Management T2 Total Time : 0
 </code> </code>
 +
 +----
 +
 +===== Smartctl =====
 +
 +<code bash>
 +sudo apt install smartmontools
 +</code>
 +
 +To use:
 +
 +<code bash>
 +sudo smartctl -x /dev/sda
 +</code>
 +
 +and
 +
 +<code bash>
 +sudo smartctl -l farm /dev/sda
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  **FARM** (Field Accessible Reliability Metrics) is only supported on Seagate drives.
 +
 +To check if a disk is really new(ish), compare the **Power_On_Hours** vs. **"Power on Hours"** in the two results.
 +
 +  * Other values that can also be checked, include **"Head Flight Hours"** and **"Power Cycle Count"**; they should also roughly match what you would expect from a hard disk of a certain age.
 +  * All near zero, of course, for a factory-new hard disk.
 +
 +</WRAP>
 +
 +----
 +
 +===== Locate =====
 +
 +<code bash>
 +sudo apt install plocate
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  This maintains a database of all your files and is re-indexed once a day by default.
 +</WRAP>
  
 ---- ----
  
  
systems/media_server/install_useful_packages.1748549506.txt.gz · Last modified: 2025/05/29 20:11 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki