Skip to content

[BUG] PhysicalDisk returns no disks on OpenBSD #2543

Description

@discoveredbody

Read the FAQ first

  • I have checked the FAQ but the issue is not covered

Description

Description

The PhysicalDisk module does not return any physical disks on OpenBSD.

I'm running OpenBSD 7.9/amd64 on a ThinkPad T520.

OpenBSD detects the physical disk correctly:

$ sysctl hw.disknames hw.disknames=sd0:91cd4e20dbcbee82,cd0:

However, Fastfetch produces no output for the PhysicalDisk module:

$ fastfetch --structure PhysicalDisk <logo only>

The PhysicalDisk module is present in the installed Fastfetch version.

For comparison, the regular Disk module works:
$ fastfetch --structure PhysicalDisk:disk Disk (/) 130.20 MiB / 985.76 MiB (13%) - ffs Disk (/home) 944.75 MiB / 295.27 GiB (0%) - ffs Disk (/tmp) 32.00 KiB / 3.87 GiB (0%) - ffs Disk (/usr) 2.50 GiB / 29.06 GiB (9%) - ffs Disk (/usr/X11R6) 271.14 MiB / 985.76 MiB (28%) - ffs Disk (/usr/local) 3.54 GiB / 19.37 GiB (18%) - ffs Disk (/usr/obj) 2.00 KiB / 9.68 GiB (0%) - ffs Disk (/usr/src) 2.00 KiB / 4.84 GiB (0%) - ffs Disk (/var) 30.69 MiB / 11.37 GiB (0%) - ffs

Expected behavior

PhysicalDisk should detect the physical disk reported by OpenBSD as sd0, or clearly indicate that physical disk detection is unsupported on OpenBSD.

Actual behavior

PhysicalDisk produces no output.

Version used

2.67.1

Bug prevalence

Always

Regression

Not sure

Installation

Built from source

Package manager

add_pkg

Screenshots

No response

Configuration

System information

`                                       _     discovered@body
                                    (_)    ---------------
              |    .                       OS: OpenBSD 7.9 amd64
          .   |L  /|   .          _        Host: 4242PF5 (ThinkPad T520)
      _ . |\ _| \--+._/| .       (_)       Kernel: OpenBSD 7.9
     / ||\| Y J  )   / |/| ./              Uptime: 2 hours, 2 mins
    J  |)'( |        ` F`.'/        _      Packages: 309 (pkg)
  -<|  F         __     .-<        (_)     Shell: ksh 5.2.14
    | /       .-'. `.  /-. L___            Display (LVDS-1): 1366x768 in 16", 60 Hz [Built-in]
    J \      <    \  | | O\|.-'  _         WM: spectrwm (X11)
  _J \  .-    \/ O | | \  |F    (_)        Terminal: xterm 406
 '-F  -<_.     \   .-'  `-' L__            Terminal Font: fixed (8.0pt)
__J  _   _.     >-'  )._.   |-'            CPU: Intel(R) Core(TM) i5-2430M (2) @ 2.40 GHz
 `-|.'   /_.          \_|   F              CPU Usage: 5%
  /.-   .                _.<               GPU: Intel Mesa Intel(R) HD Graphics 3000 (SNB GT2)
 /'    /.'             .'  `\              Memory: 1.84 GiB / 3.74 GiB (49%)
  /L  /'   |/      _.-'-\                  Swap: 0 B / 4.12 GiB (0%)
 /'J       ___.---'\|                      Disk (/): 130.20 MiB / 985.76 MiB (13%) - ffs
   |\  .--' V  | `. `                      Disk (/home): 960.99 MiB / 295.27 GiB (0%) - ffs
   |/`. `-.     `._)                       Disk (/tmp): 32.00 KiB / 3.87 GiB (0%) - ffs
      / .-.\                               Disk (/usr): 2.50 GiB / 29.06 GiB (9%) - ffs
      \ (  `\                              Disk (/usr/X11R6): 271.14 MiB / 985.76 MiB (28%) - ffs
       `.\                                 Disk (/usr/local): 3.54 GiB / 19.37 GiB (18%) - ffs
                                           Disk (/usr/obj): 2.00 KiB / 9.68 GiB (0%) - ffs
                                           Disk (/usr/src): 2.00 KiB / 4.84 GiB (0%) - ffs
                                           Disk (/var): 31.12 MiB / 11.37 GiB (0%) - ffs
                                           Local IP (rtwn0): 172.20.10.3/28
                                           Public IP: […]
                                           Battery: 0% [AC Connected, Critical]
                                           Locale: C
                                           Processes: 46
                                           Sound: azalia0 (49%)
                                           Monitor (LVDS-1): 1366x768 px @ 59.996 Hz - 344x194 mm (15.55 inches, 100.79 ppi)
                                           Date & Time: 2026-08-25 14:26:00 `

Features built-in

threads
vulkan
wayland
xcb-randr
xrandr
drm
gio
dconf
dbus
imagemagick6
chafa
zlib
sqlite3
egl
glx
libelf
libzfs
va-drm
va-x11

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions