From owner-freebsd-stable@FreeBSD.ORG Mon May 5 14:10:51 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 13779C86 for ; Mon, 5 May 2014 14:10:51 +0000 (UTC) Received: from udns.ultimateDNS.NET (ultimatedns.net [209.180.214.225]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B5CE611F0 for ; Mon, 5 May 2014 14:10:49 +0000 (UTC) Received: from udns.ultimateDNS.NET (localhost [127.0.0.1]) by udns.ultimateDNS.NET (8.14.5/8.14.5) with ESMTP id s45EC0gL051151; Mon, 5 May 2014 07:12:06 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) Received: (from www@localhost) by udns.ultimateDNS.NET (8.14.5/8.14.5/Submit) id s45EBsh9051147; Mon, 5 May 2014 07:11:54 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) Received: from udns.ultimatedns.net ([209.180.214.225]) (UDNSMS authenticated user chrish) by ultimatedns.net with HTTP; Mon, 5 May 2014 07:11:54 -0700 (PDT) Message-ID: <1d27f6abdde62335e20e792d944862c5.authenticated@ultimatedns.net> In-Reply-To: <20140505133034.1e2e4e83289130872f1fac9c@mimar.rs> References: <20140505133034.1e2e4e83289130872f1fac9c@mimar.rs> Date: Mon, 5 May 2014 07:11:54 -0700 (PDT) Subject: Re: another busy mount point From: "Chris H" To: =?utf-8?B?TWFya28gQ3VwYcOE77+9?= User-Agent: UDNSMS/2.0.3 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 May 2014 14:10:51 -0000 > Hi, > > I have problem unmounting external FAT32-formatted USB drive on > 10.0-RELEASE-p1 (with XFCE): > > pacija@mephala:~ % umount /usr/home/pacija/mnt > umount: unmount of /usr/home/pacija/mnt failed: Device busy > > lsof /usr/home/pacija/mnt gives no output. > > I am not under mounted part in terminal or Thunar, I have no su session > left there. > > I am mounting it as user, here are relevant lines: > > pacija@mephala:~ % sudo gpart show da5 > => 34 975400893 da5 GPT (465G) > 34 975400893 1 mbr (465G) > > pacija@mephala:~ % mount > /dev/ada0p2 on / (ufs, local, journaled soft-updates) > devfs on /dev (devfs, local, multilabel) > tmpfs on /tmp (tmpfs, local) > procfs on /proc (procfs, local) > fdescfs on /dev/fd (fdescfs) > data on /data (zfs, local, nfsv4acls) > data/pacija on /usr/home/pacija/data (zfs, local, noatime, nfsv4acls) > /dev/da5p1 on /usr/home/pacija/mnt (msdosfs, local, nosuid, mounted by > pacija) > > pacija@mephala:~ % cat /etc/sysctl.conf > kern.ipc.shm_allow_removed=1 > vfs.usermount=1 > > pacija@mephala:~ % cat /etc/devfs.rules > [system=10] > add path 'usb/*' mode 0660 group operator > add path 'cd*' mode 0666 > add path 'da*' mode 0666 > add path 'pass*' mode 0666 > add path 'xpt*' mode 0666 > > pacija@mephala:~ % cat /etc/rc.conf > ... > devfs_system_ruleset="system" > ... > > pacija@mephala:~ % cat .gaminrc > poll /home/pacija/mnt/* > > Any advices? Greetings, I frequently experience similar behavior when running x11-wm/xfce4. I only investigated the matter long enough to determine that there weren't any pending writes to the mount points. After discovering that this was going to be a consistent problem, with no /reasonable/ cause. I simply issue: umount -f /some/mount-point which never causes any problem, and always dis-mounts the mount points. --Chris > -- > Marko Cupać > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > >