Page 1 of 3 123 LastLast
Results 1 to 10 of 29

Thread: Always getting 'Failed unmounting Runtime Directory' (and /var) during shutdown

  1. #1
    heyjoe NNTP User

    Question Always getting 'Failed unmounting Runtime Directory' (and /var) during shutdown

    Each time I shutdown/reboot I get these red colored messages:

    Code:
    Failed unmounting Runtime Directory.
    ...
    Failed unmounting /var.

    This has been happening since I installed Leap 42.1 (currently I use 42.3). Nothing seems to have been broken so far but during the last boot there was some more extensive disk check.

    Is there anything I need to fix or worry about?

  2. #2
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,719

    Default Re: Always getting 'Failed unmounting Runtime Directory' (and /var) during shutdown

    Quote Originally Posted by heyjoe View Post
    Is there anything I need to fix or worry about?
    See if this thread helps with troubleshooting the issue, at least for /run

    https://lists.opensuse.org/opensuse-.../msg00341.html
    Regards, Paul

    2x Tumbleweed (Snapshot: 20210330) KDE Plasma 5
    2x Leap 15.2 KDE Plasma 5

  3. #3
    heyjoe NNTP User

    Default Re: Always getting 'Failed unmounting Runtime Directory' (and /var) during shutdown

    Quote Originally Posted by tannington View Post
    See if this thread helps with troubleshooting the issue, at least for /run

    https://lists.opensuse.org/opensuse-.../msg00341.html
    Thank you. It says

    Boot with


    systemd.log_level=debug systemd.log_target=kmsg log_buf_len=1M
    How do I do that?

    Also what means "Runtime Directory" (is that /run?)? Could you help to customize the debug.sh given there to match my issue, so I can post more relevant feedback after that:

    Code:
    #!/bin/sh
    mount -o remount,rw /
    lsof /run > /shutdown-log.txt
    dmesg >> /shutdown-log.txt
    mount -o remount,ro /

  4. #4
    Join Date
    Jun 2008
    Location
    Belleville, Ontario, Canada
    Posts
    493

    Default Re: Always getting 'Failed unmounting Runtime Directory' (and /var) during shutdown

    Code:
    create /usr/lib/systemd/system-shutdown/debug.sh and make it
    executable with the following content
    
    #!/bin/sh
    mount -o remount,rw /
    lsof /run > /shutdown-log.txt
    dmesg >> /shutdown-log.txt
    mount -o remount,ro /
    
    
    Reboot the system
    "Making rich people richer doesn't make the rest of us richer." Ha-Joon Chang
    openSUSE 15.1 4.12.14-lp151.28.16-default x64

  5. #5
    heyjoe NNTP User

    Default Re: Always getting 'Failed unmounting Runtime Directory' (and /var) during shutdown

    Ok, here are the last lines of the generated log:

    Code:
    [  350.817459] watchdog watchdog0: watchdog did not stop!
    [  350.820838] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
    [  351.344116] systemd-journald[455]: Received SIGTERM from PID 1 (systemd-shutdow).
    [  351.497036] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
    [  351.503541] systemd-shutdown[1]: Hardware watchdog 'iTCO_wdt', version 0
    [  351.503790] systemd-shutdown[1]: Unmounting file systems.
    [  351.503999] systemd-shutdown[1]: Remounting '/var/run' read-only with options 'mode=755'.
    [  351.504021] systemd-shutdown[1]: Unmounting /var/run.
    [  351.504028] systemd-shutdown[1]: Remounting '/var' read-only with options 'data=ordered'.
    [  351.699374] EXT4-fs (sdb3): re-mounted. Opts: data=ordered
    [  351.700069] systemd-shutdown[1]: Unmounting /var.
    [  351.700087] systemd-shutdown[1]: Remounting '/' read-only with options 'data=ordered'.
    [  351.716036] EXT4-fs (sdd5): re-mounted. Opts: data=ordered
    [  351.726278] systemd-shutdown[1]: Remounting '/var/run' read-only with options 'mode=755'.
    [  351.726336] EXT4-fs (sdb3): re-mounted. Opts: data=ordered
    [  351.726360] EXT4-fs (sdd5): re-mounted. Opts: data=ordered
    [  351.743245] EXT4-fs (sdd5): re-mounted. Opts: acl,user_xattr

  6. #6
    Join Date
    Sep 2012
    Posts
    6,320

    Default Re: Always getting 'Failed unmounting Runtime Directory' (and /var) during shutdown

    Quote Originally Posted by heyjoe View Post
    Ok, here are the last lines
    While the most interesting information should be in the beginning.

  7. #7
    heyjoe NNTP User

    Default Re: Always getting 'Failed unmounting Runtime Directory' (and /var) during shutdown

    Quote Originally Posted by arvidjaar View Post
    While the most interesting information should be in the beginning.
    https://paste.opensuse.org/dee4affc

    Do you think it is related to mounting?

    Here is also the output of grep -iE "error|fail|mount" shutdown-log.txt:

    https://paste.opensuse.org/e846faf6

  8. #8
    heyjoe NNTP User

    Default Re: Always getting 'Failed unmounting Runtime Directory' (and /var) during shutdown

    This particular line just got my attention:

    Code:
    [    9.888841] FAT-fs (sdd1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    sdd1 is /boot/efi

  9. #9
    Join Date
    Sep 2012
    Posts
    6,320

    Default Re: Always getting 'Failed unmounting Runtime Directory' (and /var) during shutdown

    Quote Originally Posted by heyjoe View Post
    And you immediately have the reason for busy filesystem:
    Code:
    plymouthd 4858 root mem    REG   0,19   217032 17175 /var/run/nscd/group



  10. #10
    heyjoe NNTP User

    Default Re: Always getting 'Failed unmounting Runtime Directory' (and /var) during shutdown

    Quote Originally Posted by arvidjaar View Post
    And you immediately have the reason for busy filesystem:
    Code:
    plymouthd 4858 root mem    REG   0,19   217032 17175 /var/run/nscd/group


    I have no idea what this means and why this happens.

    What can I do in order to have proper unmounting?

Page 1 of 3 123 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •