From owner-freebsd-questions@FreeBSD.ORG Sun Jun 3 14:59:12 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CC18E106564A for ; Sun, 3 Jun 2012 14:59:12 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (nightmare.dreamchaser.org [12.32.44.142]) by mx1.freebsd.org (Postfix) with ESMTP id 93C658FC0C for ; Sun, 3 Jun 2012 14:59:12 +0000 (UTC) Received: from breakaway.dreamchaser.org (breakaway.dreamchaser.org. [12.32.36.73]) by nightmare.dreamchaser.org (8.13.6/8.13.6) with ESMTP id q53ExBCh068401 for ; Sun, 3 Jun 2012 08:59:11 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) Message-ID: <4FCB7BBF.7090603@dreamchaser.org> Date: Sun, 03 Jun 2012 08:59:11 -0600 From: Gary Aitken User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120528 Thunderbird/12.0.1 MIME-Version: 1.0 To: FreeBSD Mailing List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (nightmare.dreamchaser.org [12.32.36.65]); Sun, 03 Jun 2012 08:59:11 -0600 (MDT) Subject: umount device busy X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@dreamchaser.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jun 2012 14:59:12 -0000 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