From: "Valdis Klētnieks" <valdis.kletnieks@vt.edu>
To: Tomek The Messenger <tomekthemessenger@gmail.com>
Cc: kernelnewbies <kernelnewbies@kernelnewbies.org>
Subject: Re: how to debug problem with "failing unmounting"
Date: Thu, 09 Jul 2020 16:22:45 -0400 [thread overview]
Message-ID: <102548.1594326165@turing-police> (raw)
In-Reply-To: <CAA4NGysu3sx-4ft+CzqpVu2ugnCqqug3NNnsVb+TVzoTO95JKQ@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1488 bytes --]
On Thu, 09 Jul 2020 14:22:00 +0200, Tomek The Messenger said:
> On the soc on which I work there is issue with unmouting some
> partitions/directories during /sbin/reboot, here is some example:
>
> [ OK ] Stopped target Local File System.
> Unmouting Temporary Directory (/tmp)...
> Unmouting /run/user/0...
> ...
> [ FAILED ] Failed unmouting Temporary Directory (/tmp).
> [ FAILED ] Failed unmouting /run/user/0.
> ....
>
> Unfortunately like it is typical in kernel information about why
> unmouting failed doesn't appear.
Those aren't kernel messages, they're messages issued by your init system.
(Based on OK/FAILED, you're probably using a sysvinit rather than systemd, and
the messages are coming from scripts in /etc/rc.d/rc6/ which is the 'reboot'
runlevel - rc6 has symlinks to the actual script. The main shutdown/reboot
script basically does a 'for $script in /etc/rc.d/rc6; do $script stop; done'.
The most common reason for a filesystem to fail to unmount is that a process still
has a file open on the file system.
And for this, lsof is your friend. Stick an '/bin/lsof /tmp' in the script at the appropriate
place to find out what's still got /tmp busy.
(Depending on the system, it may not be worth looking into - often /tmp
and /run are tmpfs systems that are going to evaporate *anyhow*, so there's
no actual danger of a filesystem or data getting corrupted due to a hard
dismount while the file system is active)
[-- Attachment #1.2: Type: application/pgp-signature, Size: 832 bytes --]
[-- Attachment #2: Type: text/plain, Size: 170 bytes --]
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
prev parent reply other threads:[~2020-07-09 20:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-09 12:22 how to debug problem with "failing unmounting" Tomek The Messenger
2020-07-09 13:51 ` Abu Rasheda
2020-07-09 20:22 ` Valdis Klētnieks [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=102548.1594326165@turing-police \
--to=valdis.kletnieks@vt.edu \
--cc=kernelnewbies@kernelnewbies.org \
--cc=tomekthemessenger@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox