Hardware

Linux system information

/proc file system

CPU information.

1
cat /proc/cpuinfo

System statistics.

1
cat /proc/stat

Virtual memory statistics - processes, paging, disks etc.

1
cat /proc/vmstat

Memory quantities.

1
cat /proc/meminfo

Network, ARP (Address Resolution Protocol) cache.

1
cat /proc/net/stat/arp_cache

dmidecode

Show memory info.

1
dmidecode -t memory

lsblk

Show disk info.

1
lsblk

NVME devices only.

1
lsblk --nvme

lspci

Get link speed of all PCI devices.

1
lspci -vv | grep -E 'PCI bridge|LnkCap'

Get GPU info.

1
lspci  -v -s  $(lspci | grep ' VGA ' | cut -d" " -f 1)

Show vendor and device ID as numbers.

1
lspci -nn

Show show subsystem ID as numbers.

1
lspci -vn

Show drivers used by device with ID.

1
lspci -nnk -d 1002:5555

Tree view.

1
lspci -tv

lsusb

USB device info.

1
lsusb

Get mouse polling rate. Shows update interval in milliseconds. 8 ms = 125 Hz, 1 ms = 1000 Hz.

1
lsusb -vd 3057:0000 | grep bInterval

Tree view.

1
lsusb -tv

Linux hardware monitoring and configuration

/sys file system

Allows for monitoring and settings as described by drivers.

Amdgpu hwmon interface.

1
2
3
4
# card0 may change
/sys/class/drm/card0/device/hwmon/hwmon1/
# guaranteed same bus interface address path, example to show format
/sys/devices/pci0000:00/0000:00:00.1/0000:00:00.0/0000:00:00.0/0000:00:00.0/hwmon/hwmon1/

Linux kernel

List Linux module parameters

From sysfs-tools.

1
systool -vm amdgpu

Configure Linux module parameters

  1. /etc/modprobe.d/amdgpu.conf , followed by updating the initramfs for kernels update-initramfs -uk all
  2. Append to boot loader configuration line that boots the kernel.
    • ESP/loader/entries/*.conf for systemd-boot, man loader.conf
    • /etc/default/grub for grub, less /etc/grub.d/README, info grub-mkconfig

SSD firmware update using systemd-boot

The firmware updater of an SSD may essentially boot Linux, as is the case with Crucial. Mount the firmware updater iso file offered by Crucial. Copy relevant files from mounted image to /boot/ (or what your systemd-boot file structure needs).

1
cp --no-clobber -r mnt/EFI/BOOT/* /boot/efi/EFI/BOOT/

Sample firmware update entry for use with systemd-boot.

1
2
3
4
5
# /boot/efi/loader/entries/ssd_update.conf
title Crucial Firmware Update
linux /boot/vmlinuz64
initrd /boot/corepure64.gz
options libata.allow_tpm=1 quiet base loglevel=3 cde waitusb=10 consoleblank=0 superuser mse-iso rssd-fw-update rssd-fwdir=/opt/firmware

This entry should be modeled after iso_mount_point/boot/isolinux/isolinux.cfg.

Similar method can be used with grub and other common boot loaders.

SSD identifies as disk by another manufacturer

In the case of Crucial, their disk controllers are by Silicon Motion (SM in device model). The SSD may identify as that, with no sign of the correct firmware or any partitions.

If luck is with you, this may be caused by a power spike and may fix itself when the disk does not have power for a while (an hour?). Device may not respond to SMART commands. This behaviour should fix itself as well if the model info and partitions reappear after a rest.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
smartctl -x /dev/sdb

=== START OF INFORMATION SECTION ===
Device Model:     SMXXXXXX-10-00831000
Serial Number:    (XX)XXXXXXX-XXXXXXXX
Firmware Version: 20141211
User Capacity:    1 073 479 680 bytes [1,07 GB]
Sector Size:      512 bytes logical/physical
Device is:        Not in smartctl database 7.3/5528
ATA Version is:   ACS-2 (minor revision not indicated)
Local Time is:    Sun Jun 01 23:39:18 2026 UTC
SMART support is: Unavailable - device lacks SMART capability.
AAM feature is:   Unavailable
APM feature is:   Unavailable
Rd look-ahead is: Unavailable
Write cache is:   Unavailable
DSN feature is:   Unavailable
ATA Security is:  Unavailable
Wt Cache Reorder: Unavailable

A mandatory SMART command failed: exiting.

Correct info for comparison.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
=== START OF INFORMATION SECTION ===
Model Family:     Crucial/Micron Client SSDs
Device Model:     XXXXXXXXXXXXXXX
Serial Number:    XXXXXXXXXXXX
LU WWN Device Id: X XXXXXX XXXXXXXXX
Firmware Version: XXXXXXX
User Capacity:    1 000 204 886 016 bytes [1,00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    Solid State Device
Form Factor:      M.2
TRIM Command:     Available
Device is:        In smartctl database 7.3/5528
ATA Version is:   ACS-3 T13/2161-D revision 5
SATA Version is:  SATA 3.3, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sun Jun  1 20:58:27 2026 UTC
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM level is:     254 (maximum performance)
Rd look-ahead is: Enabled
Write cache is:   Enabled
DSN feature is:   Unavailable
ATA Security is:  Disabled, NOT FROZEN [SEC1]
Wt Cache Reorder: Unknown

=== START OF READ SMART DATA SECTION ===
...