From owner-freebsd-questions@FreeBSD.ORG Sun Jun 3 20:01:44 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 7C220106564A for ; Sun, 3 Jun 2012 20:01:44 +0000 (UTC) (envelope-from gobble.wa@gmail.com) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx1.freebsd.org (Postfix) with ESMTP id 0D1608FC12 for ; Sun, 3 Jun 2012 20:01:43 +0000 (UTC) Received: by wibhn6 with SMTP id hn6so1808475wib.13 for ; Sun, 03 Jun 2012 13:01:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=aCt1Ruc3/gM70iFS+oXgaQ6C55PlVUDH6WEUjUdi5xQ=; b=azys4DbfcEgIpL0/qlk5hcFSmIN1udVsXXKDjTq32yrpiEogI+mvReDdmln88FCDX/ q5CfMXKHjnPx9Hgq+ISET48ua9CTkHHb8P/bNd0vhcUFoUYVQNtARzMcGw0dodzRdSeP YB2Wbn4P6q6IiuOoxQ+FUapvfA/ws2HHLKC3S5uHJglakYXBph5WyV3vREgtMe4stKrU UFJVbVmZEMUOn/ym63FWqF59E4wrzrw6UJJGwG//HsQUvJG692OpoO9ChYciXZdlDvyt mfuMPzJMFPLtVJegDPR4PM5JVe1hKStg0LPYs3bJLkTrHFmxDNbhhLhMp3Eo3P4nrSJ/ G6MQ== MIME-Version: 1.0 Received: by 10.216.145.153 with SMTP id p25mr8989173wej.112.1338753700959; Sun, 03 Jun 2012 13:01:40 -0700 (PDT) Received: by 10.216.184.73 with HTTP; Sun, 3 Jun 2012 13:01:40 -0700 (PDT) In-Reply-To: <4FCB7BBF.7090603@dreamchaser.org> References: <4FCB7BBF.7090603@dreamchaser.org> Date: Sun, 3 Jun 2012 13:01:40 -0700 Message-ID: From: Waitman Gobble To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: umount device busy X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jun 2012 20:01:44 -0000 On Sun, Jun 3, 2012 at 7:59 AM, Gary Aitken wrote: > 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" > something that *might* be helpful to you, it's a basic little man page browser in Qt left side of the pane shows a treeview of filesystem, so you can navigate /bin, /usr/bin, etc.. when you click on a file it looks for the corresponding man page and shows it on the right pane formatted html, which is a webkit panel. https://github.com/creamy/man-browser i built it on a FreeBSD machine but it also works with cygwin systems and probably GNU/Linux as well but i have not tried it. it is intended as a way to quickly look at what's installed on your system and possibly 'discover' and learn about previously 'unknown' commands. Waitman Gobble San Jose California USA