From owner-freebsd-questions@freebsd.org Wed Jul 22 17:45:14 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 9223135A881 for ; Wed, 22 Jul 2020 17:45:14 +0000 (UTC) (envelope-from m.e.sanliturk@gmail.com) Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BBjXn4cSrz4W40 for ; Wed, 22 Jul 2020 17:45:13 +0000 (UTC) (envelope-from m.e.sanliturk@gmail.com) Received: by mail-ot1-x332.google.com with SMTP id d4so2409852otk.2 for ; Wed, 22 Jul 2020 10:45:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bdmrVSrHHmmRrNmXYEeee1xsqaCTqVhkcanT66XwWL0=; b=aS9iJG7tqBfAz+Kdla0A8HLPT5oof3lBGqayso16ZUdxdCmvcEdjc+uyBhxD9U4sPj 5wJHh3sfe5Kzylz8n9u4L+6tsFBsGAhpErAjJVAEOdmWV6kNxBrKhWxYpd6ILpIGqPP1 bRZFO6cZLUGysaKS98uPgcsgMjHvF7f23kpXafMBSBi/VFjytCjeEBLp1M4YxupfzyKP 7PugEA+gH0LU/Iz7V8b62+gXDSwn8x0H6S/sNDm4s59VSXM5B0aTK8oLoJbZfEQ8305T +LXH2m7nUT8+DBWx/xYD9XbrHceLBdFUKEgdfXKuRtvWKYiZw+yALFSGxwKhZMB6ED1T HicA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bdmrVSrHHmmRrNmXYEeee1xsqaCTqVhkcanT66XwWL0=; b=XxMXBB4j/U2nOY2RnvHcWm77AgzMcryNROFzCG1WZZU893eGdEL7FVWZ+Xl/dFXIEd lGF1Q/X8bWEIWEw6OS5oDC05dptE5qwVs5ZJL4VTPTHtU8PcjrBrnBYT5AYyyF3QXqfK m2ObVjQfwMlHF0ZozsNjsCSg/wMyJ4tEl3LS5LopIrGM7OIhrm/xHP40dhJNd333bYIP j8qyCJIiOO0Uu6VL6Y3CyG2kmeIoBdr3DC1Y52x3et+17z1CkCt071xSUS4ejVdJkzBQ gIBZ+6Okw+JtMPvSOIIEHp4UANUN2BN2zDQQbRsnNWR+//CVURy/RRoY63wYcUlFAWL3 KsVg== X-Gm-Message-State: AOAM530PrXinRiJI8nps7yLrO4yrptlktkLbNSMKNCTq5RIeIBlC3dhK dBBylHCGB/fPlDIdOOpW7Tl78mkY37KpptjCVQB9W3D8 X-Google-Smtp-Source: ABdhPJyQCfWjUy1EDcSLQmfwa+crnaBeZidlR+hkfAQfbgiZkoOhblAcN4Jbo4xN8muDOuBPBGc6Vy/iGL5RfAL6Y1Q= X-Received: by 2002:a05:6830:22ca:: with SMTP id q10mr936246otc.265.1595439912507; Wed, 22 Jul 2020 10:45:12 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Mehmet Erol Sanliturk Date: Wed, 22 Jul 2020 20:44:35 +0300 Message-ID: Subject: Re: Unmounting usb disk impossible To: mbj@mbjnet.dk, FreeBSD Questions Mailing List Cc: Morten Bo Johansen X-Rspamd-Queue-Id: 4BBjXn4cSrz4W40 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=aS9iJG7t; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mesanliturk@gmail.com designates 2607:f8b0:4864:20::332 as permitted sender) smtp.mailfrom=mesanliturk@gmail.com X-Spamd-Result: default: False [-3.13 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.979]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; NEURAL_HAM_LONG(-0.98)[-0.983]; TO_DN_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::332:from]; NEURAL_HAM_SHORT(-0.16)[-0.164]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 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 17:45:14 -0000 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. > > 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