Ncdu 2.9.1-2 hangs at startup

Running on any directory/filesystem causes the command to hang indefinitely, using 100% of a single CPU core. Downgrading to 2.9.1-1 fixes the problem. I couldn’t even run ncdu --help without the process hanging.

None of its dependencies are affected; all are older than the recent upgrade (2025-10-21).

Seems to be working fine on my end:

Name            : ncdu
Version         : 2.9.1-2
--- /home/cactux/.local/share/themes ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    6.9 MiB [##############################] /Nordic-darker-v40                                                                                                                                                      
    6.9 MiB [##############################] /Nordic-darker
    5.9 MiB [#########################     ] /Qogir-Dark
    5.5 MiB [#######################       ] /Dracula
    2.6 MiB [###########                   ] /Material-Black-Frost
    1.7 MiB [#######                       ] /Adwaita-dark-nord
  452.0 KiB [#                             ] /Midnight-Red
  356.0 KiB [#                             ] /Material-Magic-Ink-GS
  324.0 KiB [#                             ] /Pretty-In-Purple
  320.0 KiB [#                             ] /Onyx
   16.0 KiB [                              ] /HighContrast

$ ncdu --help
ncdu <options> <directory>

Mode selection:
  -h, --help                 This help message
  -v, -V, --version          Print version
  -f FILE                    Import scanned directory from FILE
  -o FILE                    Export scanned directory to FILE in JSON format
  -O FILE                    Export scanned directory to FILE in binary format
  -e, --extended             Enable extended information
  --ignore-config            Don't load config files

Scan options:
  -x, --one-file-system      Stay on the same filesystem
  --exclude PATTERN          Exclude files that match PATTERN
  -X, --exclude-from FILE    Exclude files that match any pattern in FILE
  --exclude-caches           Exclude directories containing CACHEDIR.TAG
  -L, --follow-symlinks      Follow symbolic links (excluding directories)
  --exclude-kernfs           Exclude Linux pseudo filesystems (procfs,sysfs,cgroup,...)
  -t NUM                     Scan with NUM threads

Export options:
  -c, --compress             Use Zstandard compression with `-o`
  --compress-level NUM       Set compression level
  --export-block-size KIB    Set export block size with `-O`

Interface options:
  -0, -1, -2                 UI to use when scanning (0=none,2=full ncurses)
  -q, --slow-ui-updates      "Quiet" mode, refresh interval 2 seconds
  --enable-shell             Enable/disable shell spawning feature
  --enable-delete            Enable/disable file deletion feature
  --enable-refresh           Enable/disable directory refresh feature
  -r                         Read only (--disable-delete)
  -rr                        Read only++ (--disable-delete & --disable-shell)
  --si                       Use base 10 (SI) prefixes instead of base 2
  --apparent-size            Show apparent size instead of disk usage by default
  --hide-hidden              Hide "hidden" or excluded files by default
  --show-itemcount           Show item count column by default
  --show-mtime               Show mtime column by default (requires `-e`)
  --show-graph               Show graph column by default
  --show-percent             Show percent column by default
  --graph-style STYLE        hash / half-block / eighth-block
  --shared-column            off / shared / unique
  --sort COLUMN-(asc/desc)   disk-usage / name / apparent-size / itemcount / mtime
  --enable-natsort           Use natural order when sorting by name
  --group-directories-first  Sort directories before files
  --confirm-quit             Ask confirmation before quitting ncdu
  --no-confirm-delete        Don't ask confirmation before deletion
  --delete-command CMD       Command to run for file deletion
  --color SCHEME             off / dark / dark-bg

Refer to `man ncdu` for more information.

Here too.

@ajgringo619
What does

type ncdu

show?
And did you fully update your system?

1 Like

There’s an Arch bug report from 2 days ago:

Which leads to:

As a (temporary) workaround, you could try launching ncdu with the argument --ignore-config - this worked for the individual who intially reported the bug.

1 Like

The package was flagged out of date sometime day, so I’ll wait for the new one. Thanks for all the info, everyone!

2 Likes

I just got an update to ncdu >> 2.9.2-1

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.