During shutdown: sys/oldroot busy

During shutdown of computer, I see the following message:

/sys/oldroot busy
Ignoring. Shutdown

How to solve this ?

Unless it actually prevents your system from shutting down, you can ignore it.

Notes:

  • Not every warning is an error message. The operating system is just very verbose by default.
  • This has nothing to do with the kernel — moved to #support .
1 Like

Those with some Nvidia GPU, and depending on the system, might catch that message at shutdown, and in the past we had the /usr/lib/systemd/system-shutdown/nvidia.shutdown script to “gracefully” rmmod the nvidia modules, hence not have that /sys/oldroot busy happening.

#!/bin/sh
# Remove all Nvidia modules on shutdown
# to avoid errors like
# [35509.312925] sd-umoun[56020]: Failed to unmount /oldroot: Device or resource busy
# [35509.317505] sd-umoun[56021]: Failed to unmount /oldroot/sys: Device or resource busy
# [35509.322349] shutdown[1]: Failed to finalize file systems, ignoring.
#
for MODULE in nvidia_drm nvidia_modeset nvidia_uvm nvidia
do
rmmod $MODULE
done

Apparently was removed as there was some change to systemd, but not quite sure, because i see that message too without that file, but as pointed out:

2 Likes