You are not logged in.

#1 2022-03-21 09:29:52

twoexem
Member
From: Essen, NRW, Germany
Registered: 2021-12-27
Posts: 12
Website

/oldroot fails to unmount, shutdown unaffected

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

#2 2022-03-21 13:04:33

ratcheer
Member
Registered: 2011-10-09
Posts: 862

Re: /oldroot fails to unmount, shutdown unaffected

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

#3 2022-03-21 13:33:55

Scimmia
Fellow
Registered: 2012-09-01
Posts: 9,447

Re: /oldroot fails to unmount, shutdown unaffected

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

#4 2022-03-21 13:35:38

twoexem
Member
From: Essen, NRW, Germany
Registered: 2021-12-27
Posts: 12
Website

Re: /oldroot fails to unmount, shutdown unaffected

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

#5 2022-03-21 13:37:44

Maniaxx
Member
From: .de
Registered: 2014-05-14
Posts: 637

Re: /oldroot fails to unmount, shutdown unaffected

'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

#6 2022-03-21 14:12:59

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 10,843
Website

Re: /oldroot fails to unmount, shutdown unaffected

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 MEG B550 UNIFY // 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

#7 2022-03-22 23:05:36

slick3371
Member
Registered: 2021-12-20
Posts: 7

Re: /oldroot fails to unmount, shutdown unaffected

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

#8 2022-05-04 06:30:03

twoexem
Member
From: Essen, NRW, Germany
Registered: 2021-12-27
Posts: 12
Website

Re: /oldroot fails to unmount, shutdown unaffected

WorMzy wrote:

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.

slick3371 wrote:

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

#9 2022-07-30 10:35:39

DAC324
Member
Registered: 2020-03-12
Posts: 80

Re: /oldroot fails to unmount, shutdown unaffected

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

#10 2022-08-03 21:20:07

Hello_User
Member
Registered: 2022-08-03
Posts: 1

Re: /oldroot fails to unmount, shutdown unaffected

DAC324 wrote:

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

#11 2022-08-05 21:02:27

DAC324
Member
Registered: 2020-03-12
Posts: 80

Re: /oldroot fails to unmount, shutdown unaffected

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

Board footer

Powered by FluxBB