From owner-freebsd-questions@freebsd.org Wed Jul 22 18:59:21 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 18F0335CC43 for ; Wed, 22 Jul 2020 18:59:21 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BBlBJ06Z8z4bJV for ; Wed, 22 Jul 2020 18:59:19 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([178.8.37.32]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPA (Nemesis) id 1MPGJf-1kAlmC2t2L-00PhKg; Wed, 22 Jul 2020 20:59:17 +0200 Date: Wed, 22 Jul 2020 20:59:17 +0200 From: Polytropon To: mbj@mbjnet.dk Cc: Morten Bo Johansen via freebsd-questions , Morten Bo Johansen Subject: Re: Unmounting usb disk impossible Message-Id: <20200722205917.7e81b5bc.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:18yRPtH+GSDnuHtkDvLhrMHEXkBb0UY8tQ05FGMpvdlA91P1xt2 rcSuMwswLS7MV33k7LaiJMyvolMx2nQJrQJ7KIkHTISlVE9gmWDKMseQPzx/d5iRI+dxs2k ket3H84OGT0BaSZ37zLDW1wRNLyC+A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Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 217.72.192.73) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [2.63 / 15.00]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; NEURAL_HAM_SHORT(-0.47)[-0.469]; RECEIVED_SPAMHAUS_PBL(0.00)[178.8.37.32:received]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8560, ipnet:217.72.192.0/20, country:DE]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.07)[-0.070]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.77)[0.767]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[217.72.192.73:from]; R_SPF_NA(0.00)[no SPF record]; RWL_MAILSPIKE_POSSIBLE(0.00)[217.72.192.73:from]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2020 18:59:21 -0000 On Wed, 22 Jul 2020 19:58:22 +0200, Morten Bo Johansen via freebsd-questions wrote: > On 2020-07-22 Mehmet Erol Sanliturk wrote: > > > You did not write your mount statement . > > I don't know what it is. It is automounted > > > It seems that your umount statement is completely wrong . > > > https://www.freebsd.org/cgi/man.cgi?query=umount&sektion=8 > > umount > > > > You are saying that > > > > "Unmount ALL of the mounted files in "fstab" . > > No, that is not what I am saying. This is from man autofs: > > To unmount all mounted autofs filesystems: > > umount -At autofs > > That was my command. And as you can see, it actually tries to > unmount the usb disk under /media - which is correct. It just > fails with this "device busy" error. I need to find out which > process is accessing the mount point. This command interpretation is similarly listed in "man 1 umount", i. e., "umount -a -t ". However, have you checked that the filesystems beneath /media, mounted by automountd, are listed in /etc/fstab? This is a required condition according to the manual page. In worst case, try to add the -f (force) option to umount. You should then verify, at least for testing, that the filesystems in question are consistent (use fsck accordingly). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...