You are not logged in.
Hello!
I'm having a small issue with both of my PCs running Arch. It doesn't halt shutdown completely but just looks a bit annoying.
One PC is a Medion E2291 notebook, one is a custom rig with an AMD GPU & CPU.
I'm running the stock kernel.
Everytime Plymouth finishes displaying its splashscreen, this gets displayed:
[ 250.982832 ] sd-umount[1177]: Failed to unmount /oldroot: Device or resource busy
[ 250.983401 ] sd-umount[1178]: Failed to unmount /oldroot/dev: Device or resource busy
[ 250.984415 ] shutdown[1]: Failed to finalize file systems, ignoring.
It doesn't halt the shutdown and only gets displayed for a brief moment, but I'm still wondering what exactly causes this. Other forum threads mentioned it has something to do with NVidia drivers, but I don't have a NVidia GPU in either of the two PCs. If anybody needs additional system information, I'll happily provide it.
Offline
I always get these messages at shutdown, too.
/oldroot is not mounted when my system is running, and there is nothing about /oldroot in my fstab
Offline
During shutdown, the system pivots to a ramfs image, and your actual root partition is on /oldroot. It generally can't unmount it because it's still busy, something is open.
Offline
Ah, I see. Doesn't systemd kill all processes at shutdown, though? And how can I check if / which program is still running at that moment?
Offline
'oldroot' is the 'root' created initially by initramfs and later overmounted by real root. The errors (at least for nvidia) should be harmless as the initramfs is read-only and unchangeable anyway. The messages might be caused by custom modules added to the initramfs that can't be unloaded properly anymore.
To debug this one could maybe replace the shutdown service/command with some debug output.
Last edited by Maniaxx (2022-03-21 13:46:34)
sys2064
Offline
Check the last few messages from the previous boot session's journal:
# journalctl -b-1
Perhaps something is recorded there that could explain why your root partition is still busy.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
I have been having the same issue. From what I've experienced, the issue seems to happen only when either Plymouth is installed, or when /etc/mkinitcpio.conf contains the plymouth hook. I also cannot find this error in journalctl.
Offline
Check the last few messages from the previous boot session's journal:
# journalctl -b-1
Perhaps something is recorded there that could explain why your root partition is still busy.
Trying that doesn't help me much, sadly. There's no entry about a failed unmount.
I have been having the same issue. From what I've experienced, the issue seems to happen only when either Plymouth is installed, or when /etc/mkinitcpio.conf contains the plymouth hook. I also cannot find this error in journalctl.
Yep, same here. If I remove plymouth entirely from my system, the PCs shut down normally. Perhaps that's a Plymouth bug?
Also, sorry for not replying, I accidentaly turned off notifications for this topic.
Offline
This is random error because of Nvidia driver (apparently it never does that without Nvidia driver installed).
Solution:
Create a script with the following contents
#!/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
# we will have to check if the modules are still loaded because they aren't always
if lsmod | grep "$MODULE" &> /dev/null ; then
rmmod $MODULE
fi
done
Name this script, for example, `nvidia.shutdown`, make it executable as usual and place it in `/usr/lib/systemd/system-shutdown`.
Last edited by DAC324 (2022-07-30 10:36:14)
Offline
This is random error because of Nvidia driver (apparently it never does that without Nvidia driver installed).
This is false. I'm on a laptop with only an intel iGPU and I'm experiencing the exact same issue. As far as I can tell, it's also started happening to me after installing and configuring plymouth.
Offline
That's interesting.
What I guess is that Plymouth might interfere with intel graphics driver unloading.
To verify if that's really the case, I'd change the Nvidia module names for the Intel ones you use, in the script I proposed.
Then, I'd install it as a shutdown script as described, and test it.
Offline