From owner-freebsd-questions@FreeBSD.ORG Wed Apr 29 15:47:50 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 477B0AE6 for ; Wed, 29 Apr 2015 15:47:50 +0000 (UTC) Received: from nightmare.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (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 118E01007 for ; Wed, 29 Apr 2015 15:47:49 +0000 (UTC) Received: from breakaway.dreamchaser.org (breakaway.dreamchaser.org. [192.168.151.122]) by nightmare.dreamchaser.org (8.13.6/8.13.6) with ESMTP id t3TFlYZN050363; Wed, 29 Apr 2015 09:47:35 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) Message-ID: <5540FD16.3020302@dreamchaser.org> Date: Wed, 29 Apr 2015 09:47:34 -0600 From: Gary Aitken Reply-To: freebsd@dreamchaser.org User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: frank2@fjl.co.uk, freebsd-questions@freebsd.org, lenzi.sergio@gmail.com Subject: Re: /cd0 held open but no files reported References: <553A9593.30500@dreamchaser.org> <5540A4D9.7010904@fjl.co.uk> In-Reply-To: <5540A4D9.7010904@fjl.co.uk> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (nightmare.dreamchaser.org [192.168.151.101]); Wed, 29 Apr 2015 09:47:35 -0600 (MDT) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2015 15:47:50 -0000 On 04/29/15 03:31, Frank Leonhardt wrote: > On 24/04/2015 20:12, Gary Aitken wrote: >> I have a situation I'd like some insights on... >> >> running 9.2 release on an AMD 64, X with xfce4 >> >> I mounted a CD from root: #mount -t cd9660 /dev/cd0 /cd0 Accessed >> some files on the CD using gimp. Exited gimp >> >> When I try to umount, I get the message: #umount /cd0 umount: >> unmount of /cd0 failed: Device busy > > How about using gvfs-mount -u instead? Unfortunately, that doesn't work as expected: # gvfs-mount -u /cd0 Error finding enclosing mount: Containing mount does not exist looks like umount -f will have to do. > I've not had the pleasure of using Gnome on FreeBSD specifically, but > as no one else has answered and given what gvfs mounting deamons seem > to get up to, I'd be surprised if a kernel umount was ever going to > work. yeah, that appears to be the case. On 04/29/15 05:58, sergio de Almeida Lenzi wrote: > fstat | grep cd0 > will tell you what is the program holding the ope files... > probably gvfs daemon... Thanks, that shed some light; Turns out it is gvfsd-trash I suspect the home, file system, and trash concepts in xfce4 force gvfsd-trash to run, as they activate file system browsers which allow dragging to a trash-bin. But why the trash-bin holds /cd0 open is a mystery, especially if it is read-only media. thanks for the reply. Gary