Skip to contentSkip to conversation

umount fails on shutdown: causes next boot to fail

DISCUSSION Luke Kenneth Casson Leighton 1 participant 2 messages Jul 28, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

hi,

got a bit of an issue with umount failing.

i have noticed that a double-reboot is required to clear things if a filesystem is not unmounted at shutdown time...

... and now i have a filesystem (/var) that doesn't unmount _even during a regular shutdown_.

i have:

- killed everything (with run_init /etc/init.d/everything stop)

- done lsof /var to double _check_ i've killed everything that could use /var

- done a shutdown.

- watched the shutdown messages.

- observed an "umount failed: /dev/hda6 (/var) busy"

and consequently noted that, as always, /var cannot be remounted on startup: something somewhere in the initialisation actually tries to _create_ /var and is told by selinux to bugger off (fortunately), and entry into runlevel 2, as previously mentioned, goes pear-shaped.

reboot required, and then it's all hunky-dory after that.

does anyone have _any_ clues as to why, even when there are no files open on /var, a filesystem could not be umounted?

i think i will try again and this time actually manually try a umount /var myself.

i really don't want to do umount -f /var but i will if i have to.

l.

Signature · 14 lines
-- 
Information I post is with honesty, integrity, and the expectation that
you will take full responsibility if acting on the information contained,
and that, should you find it to be flawed or even mildly useful, you
will act with both honesty and integrity in return - and tell me.
--
<a href="http://lkcl.net">      lkcl.net      </a> <br />
<a href="mailto:[email protected]"> [email protected] </a> <br />


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#1 lore raw
Quoted 7 lines · Luke Kenneth Casson Leighton

hi,

got a bit of an issue with umount failing.

i have noticed that a double-reboot is required to clear things if a filesystem is not unmounted at shutdown time...

Quoted 7 lines

... and now i have a filesystem (/var) that doesn't unmount _even during a regular shutdown_.

[...]

i think i will try again and this time actually manually try a umount /var myself.

answer: pump (dhcp client) was still running. stopped both /usr _and_ /var from being unmounted.

arg.

odd that it didn't show up in lsof, though.

l.

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.