From owner-freebsd-questions@freebsd.org Thu Mar 12 21:12:28 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2097126C03A for ; Thu, 12 Mar 2020 21:12:28 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from kicp.uchicago.edu (kicp.uchicago.edu [128.135.20.70]) by mx1.freebsd.org (Postfix) with ESMTP id 48dhNp4MCzz4Hr8 for ; Thu, 12 Mar 2020 21:12:26 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from point.uchicago.edu (point.uchicago.edu [128.135.52.6]) (Authenticated sender: galtsev) by kicp.uchicago.edu (Postfix) with ESMTPSA id B605E4E620 for ; Thu, 12 Mar 2020 16:12:25 -0500 (CDT) Subject: Re: "directory not empty", "no such file or directory" errors on upgrade To: freebsd-questions@freebsd.org References: <94e006d9-bf6e-52e2-c667-763385cdd98e@kicp.uchicago.edu> <20200312195259.GA1025@neutralgood.org> From: Valeri Galtsev Message-ID: <29e0d537-ab69-bdfa-97e3-fb6be1eb1409@kicp.uchicago.edu> Date: Thu, 12 Mar 2020 16:12:25 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 48dhNp4MCzz4Hr8 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=uchicago.edu (policy=none); spf=none (mx1.freebsd.org: domain of galtsev@kicp.uchicago.edu has no SPF policy when checking 128.135.20.70) smtp.mailfrom=galtsev@kicp.uchicago.edu X-Spamd-Result: default: False [0.89 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[uchicago.edu : No valid SPF, No valid DKIM,none]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; NEURAL_SPAM_MEDIUM(0.56)[0.562,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(0.11)[ip: (0.33), ipnet: 128.135.0.0/16(0.16), asn: 160(0.13), country: US(-0.05)]; NEURAL_SPAM_LONG(0.12)[0.117,0]; RCVD_IN_DNSWL_NONE(0.00)[70.20.135.128.list.dnswl.org : 127.0.10.0]; R_SPF_NA(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:160, ipnet:128.135.0.0/16, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Mar 2020 21:12:28 -0000 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 >> rm -rf > > > > On Thu, Mar 12, 2020 at 12:53 PM Kevin P. Neal 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 ++++++++++++++++++++++++++++++++++++++++