"directory not empty", "no such file or directory" errors on upgrade
Valeri Galtsev
galtsev at kicp.uchicago.edu
Thu Mar 12 21:12:28 UTC 2020
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 at 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 at freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "
>> freebsd-questions-unsubscribe at freebsd.org"
>>
>
>
--
++++++++++++++++++++++++++++++++++++++++
Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247
++++++++++++++++++++++++++++++++++++++++
More information about the freebsd-questions
mailing list