From owner-freebsd-questions@freebsd.org Wed Jul 22 20:16:35 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 D935435F74F for ; Wed, 22 Jul 2020 20:16:35 +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 4BBmvQ6dJhz4jD6 for ; Wed, 22 Jul 2020 20:16:34 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from [192.168.43.113] (unknown [172.58.139.170]) (Authenticated sender: galtsev) by kicp.uchicago.edu (Postfix) with ESMTPSA id 2C08B4E690 for ; Wed, 22 Jul 2020 15:16:34 -0500 (CDT) Subject: Re: Unmounting usb disk impossible To: freebsd-questions@freebsd.org References: From: Valeri Galtsev Message-ID: <7e96086e-c765-469c-f200-f1ca94b0296a@kicp.uchicago.edu> Date: Wed, 22 Jul 2020 15:16:33 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4BBmvQ6dJhz4jD6 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 [2.52 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[172.58.139.170:received]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.99)[0.991]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; NEURAL_SPAM_MEDIUM(0.76)[0.764]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_LONG(0.66)[0.661]; R_SPF_NA(0.00)[no SPF record]; 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]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[uchicago.edu : No valid SPF, No valid DKIM,none] 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 20:16:35 -0000 On 7/22/20 12:44 PM, Mehmet Erol Sanliturk wrote: > On Wed, Jul 22, 2020 at 6:12 PM Morten Bo Johansen via freebsd-questions < > freebsd-questions@freebsd.org> wrote: > >> Hi >> >> I simply cannot unmount my usb disk. It is mounted by automount/autofs >> on /media/da0s1. I try to unmount it like this >> >> sudo umount -At autofs >> >> but it replies with the error message >> >> umount: unmount of /media failed: Device busy >> >> I run lsof grepping for "/media" or "da0s1" both with and >> without sudo. Nothing shows. >> Did you try lsof -k /media/[whatever name it is mounted with] and then try to force unmount umount -f /media/[whatever name it is mounted with] ? Valeri >> I got no terminals accessing the mount point, no zombie >> processes or anything. >> >> If the error message is really correct and some process is >> actually accessing /media, how do I find it if lsof shows nothing? >> >> Any other advice? >> >> Thanks, >> Morten >> >> >> >> _______________________________________________ >> >> > > You did not write your mount statement . > > 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" . > > Please check manual of "umount" to write specific file(s) to unmount . > > Mehmet Erol Sanliturk > _______________________________________________ > 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 ++++++++++++++++++++++++++++++++++++++++