Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Mar 2020 13:01:23 -0700
From:      Michael Sierchio <kudzu@tenebras.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: "directory not empty", "no such file or directory" errors on upgrade
Message-ID:  <CAHu1Y70h5B4qakT8=9mq7vARMdG-BU_neZw8=dqJubx7OUP31g@mail.gmail.com>
In-Reply-To: <20200312195259.GA1025@neutralgood.org>
References:  <c6e1a79d-2ce9-52a3-9039-d5f3b727cc49@dreamchaser.org> <94e006d9-bf6e-52e2-c667-763385cdd98e@kicp.uchicago.edu> <20200312195259.GA1025@neutralgood.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Some quick observations =E2=80=93 rmdir will fail if a directory is not emp=
ty, and
rm -rf will fail if a file has the schg flag set.  A possible brute force
solution to this is

> chflags -R 0 <dir>
> rm -rf <dir>



On Thu, Mar 12, 2020 at 12:53 PM Kevin P. Neal <kpn@neutralgood.org> wrote:

> On Thu, Mar 12, 2020 at 02:09:33PM -0500, Valeri Galtsev wrote:
> >
> >
> > On 2020-03-12 14:03, Gary Aitken wrote:
> > > Upgrading from 11.2-RELEASE to 11.3-RELEASE
> > >
> > > The final invoke of freebsd-update install completed with the followi=
ng
> > > messages:
> > >
> > > ///usr/src/sys/pc98/include/acpica_machdep.h  no such file or directo=
ry
> > > rmdir: ///usr/src/contrib/ofed/usr.lib        directory not empty
> > > rmdir: ///usr/src/contrib/ofed/usr.bin        directory not empty
> > > rmdir:
> ///usr/src/contrib/llvm/tools/lldb/source/Plugins/InstrumentationRuntime/=
ThreadSanitizer
> > > directory not empty
> > > rmdir:
> ///usr/src/contrib/llvm/tools/lldb/source/Plugins/InstrumentationRuntime/=
AddressSanitizer
> > > directory not empty
> >
> > I would unmount filesystem and run fsck on it first.
>
> And add the "-f" flag to fsck.
> --
> "A method for inducing cats to exercise consists of directing a beam of
> invisible light produced by a hand-held laser apparatus onto the floor ..=
.
> in the vicinity of the cat, then moving the laser ... in an irregular way
> fascinating to cats,..." -- US patent 5443036, "Method of exercising a ca=
t"
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe@freebsd.org"
>


--=20

"Well," Brahm=C4=81 said, "even after ten thousand explanations, a fool is =
no
wiser, but an intelligent person requires only two thousand five hundred."

- The Mah=C4=81bh=C4=81rata



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHu1Y70h5B4qakT8=9mq7vARMdG-BU_neZw8=dqJubx7OUP31g>