Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Mar 2020 16:12:25 -0500
From:      Valeri Galtsev <galtsev@kicp.uchicago.edu>
To:        freebsd-questions@freebsd.org
Subject:   Re: "directory not empty", "no such file or directory" errors on upgrade
Message-ID:  <29e0d537-ab69-bdfa-97e3-fb6be1eb1409@kicp.uchicago.edu>
In-Reply-To: <CAHu1Y70h5B4qakT8=9mq7vARMdG-BU_neZw8=dqJubx7OUP31g@mail.gmail.com>
References:  <c6e1a79d-2ce9-52a3-9039-d5f3b727cc49@dreamchaser.org> <94e006d9-bf6e-52e2-c667-763385cdd98e@kicp.uchicago.edu> <20200312195259.GA1025@neutralgood.org> <CAHu1Y70h5B4qakT8=9mq7vARMdG-BU_neZw8=dqJubx7OUP31g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On 2020-03-12 15:01, Michael Sierchio wrote:
> Some quick observations – rmdir will fail if a directory is not empty, and
> rm -rf will fail if a file has the schg flag set.  A possible brute force
> solution to this is

In OP rm command reports that the file that makes directory not empty is 
not there:

 >>>> ///usr/src/sys/pc98/include/acpica_machdep.h  no such file or 
directory

Which means wrong count of links, which may be due to one of two things: 
filesystem inconsistency, of some process still refers to that file...

Valeri

> 
>> 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 following
>>>> messages:
>>>>
>>>> ///usr/src/sys/pc98/include/acpica_machdep.h  no such file or directory
>>>> 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 cat"
>> _______________________________________________
>> 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"
>>
> 
> 

-- 
++++++++++++++++++++++++++++++++++++++++
Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247
++++++++++++++++++++++++++++++++++++++++



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?29e0d537-ab69-bdfa-97e3-fb6be1eb1409>