From owner-freebsd-questions@FreeBSD.ORG Sun Jun 3 15:22:38 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC584106566B for ; Sun, 3 Jun 2012 15:22:38 +0000 (UTC) (envelope-from dwhytcross@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 999BE8FC0C for ; Sun, 3 Jun 2012 15:22:38 +0000 (UTC) Received: by dadv36 with SMTP id v36so5035462dad.13 for ; Sun, 03 Jun 2012 08:22:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:reply-to:from:to:references:subject:date:mime-version :content-type:content-transfer-encoding:x-priority:x-msmail-priority :x-mailer:x-mimeole; bh=QIIgX12c1vPfNDkhR6un7U/596iTAtB9WOBfMjYvdak=; b=A7vWiI5Bco2oIbucVzO/KCwBzmVaqdFGjretuAcYjmomQSlmx4gI+PEamLLcLBU2nH 5YSjGi5S1tY36KO9wwq0MzFaTjcyS6bfTgNxW0JfPtIyOXiKgunJoXD2jM4S1sV+Dl2C vVW6y9BBoWcCthiZ7vJlqJC1z5bKi0VuPWXnl98Cg0nhc+4iTAWvgQtKQIN/nyFnSmGX 494GFail/KCQ4CklXBHRd2G77FZnVoT7jgHSi2e4+5GNy1I2u5aJkgngr7Jrnj81Bvqt rgFl21AubCz/CDHmN3fyuyA8agL71WoNP4m7CrspufS2I1AjxihzqCOgunyhsyYhU3dT vsiw== Received: by 10.68.220.197 with SMTP id py5mr7416979pbc.90.1338736958175; Sun, 03 Jun 2012 08:22:38 -0700 (PDT) Received: from astrolap (CPE-120-146-199-17.static.vic.bigpond.net.au. [120.146.199.17]) by mx.google.com with ESMTPS id oy8sm9962015pbc.52.2012.06.03.08.22.35 (version=SSLv3 cipher=OTHER); Sun, 03 Jun 2012 08:22:37 -0700 (PDT) Message-ID: <7581F5930C4F42B28B1E4A5162491B35@astrolap> From: "David Whytcross" To: , "FreeBSD Mailing List" References: <4FCB7BBF.7090603@dreamchaser.org> Date: Mon, 4 Jun 2012 01:21:37 +1000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-Mailman-Approved-At: Sun, 03 Jun 2012 15:38:42 +0000 Cc: Subject: Re: umount device busy X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: David Whytcross List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jun 2012 15:22:39 -0000 Hi Gary, if you are using xfce4, then you have most likely got gamin running as well, this caused the same problem for me when trying to umount an external USB drive I resolved my umount problem by including the -f switch #umount -f /mnt/goflex Dave Whytcross ----- Original Message ----- From: "Gary Aitken" To: "FreeBSD Mailing List" Sent: Monday, June 04, 2012 12:59 AM Subject: umount device busy > Something I'm overlooking here and a lot of questions I can't seem to find > the answers to... > > I mounted a usb drive > mount -t ntfs /dev/da0s1 /mnt/goflex > > Then, as nearly as I can remember... > I then poked around a bit using the xfce4 browser. > I tried to mkdir from the mount point as a normal user: > cd /mnt/goflex > %mkdir breakaway > mkdir: .: No such file or directory > After checking write premissions, which I didn't have, > I did an su -l and tried again, with the same results. > > I then tried to unmount the drive, believing it was mounted read-only: > #umount /mnt/goflex > umount: unmount of /mnt/goflex failed: Device busy > > As nearly as I can tell, I don't have anything pointing at that drive. > > Questions: > > 1. What does the "No such file or directory" mean from mkdir? > It's a relative dir name, and I'm sitting at a valid dir. > > 2. How do I find out how the file-system was mounted? > mount (noargs) does not show read/write status > > 3. I tried lsof but I don't get any output from it: > lsof +d /mnt/goflex -x -- /mnt/goflex > Where does it go if not to stdout? > > 4. lsof has a *long* man page, so I'd like to save it temporarily so I > can search it in an editor. If I do man lsof >temp.tmp the output > contains backspace sequences which screw up searching. How do I get man > to produce plain text without the control sequences? > > 5. The lsof man page references a faq which is supposed to be part of the > distribution. > find . -ls | grep lsof doesn't show any faq. > > 6. And finally, any idea why umount says the device is busy? > > Seems like I should have been able to find the answer to at least one of > those but I'm coming up short. > > Thanks for relevant pointers, > > Gary > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >