From owner-freebsd-questions@FreeBSD.ORG Fri Apr 24 19:41:33 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 B945DCA8 for ; Fri, 24 Apr 2015 19:41:33 +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 5BFBB19B9 for ; Fri, 24 Apr 2015 19:41:32 +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 t3OJCJii031160 for ; Fri, 24 Apr 2015 13:12:20 -0600 (MDT) (envelope-from ah@dreamchaser.org) Message-ID: <553A9593.30500@dreamchaser.org> Date: Fri, 24 Apr 2015 13:12:19 -0600 From: Gary Aitken User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: FreeBSD Mailing List Subject: /cd0 held open but no files reported Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (nightmare.dreamchaser.org [192.168.151.101]); Fri, 24 Apr 2015 13:12:20 -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: Fri, 24 Apr 2015 19:41:33 -0000 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 However: #lsof /cd0 shows nothing but: fuser /cd0 /cd0: 2029 >From lsof: gvfsd-tra 2029 garya cwd VDIR 0,121 512 2 / gvfsd-tra 2029 garya rtd VDIR 0,121 512 2 / gvfsd-tra 2029 garya txt VREG 0,129 45792 4220202 /usr/local/libexec/gvfsd-trash gvfsd-tra 2029 garya txt VREG 0,121 105608 66081 /libexec/ld-elf.so.1 gvfsd-tra 2029 garya txt VREG 0,129 147752 1993838 /usr/local/lib/gvfs/libgvfsdaemon.so gvfsd-tra 2029 garya txt VREG 0,129 247312 1993832 /usr/local/lib/gvfs/libgvfscommon.so gvfsd-tra 2029 garya txt VREG 0,129 11832 1472099 /usr/local/lib/libgmodule-2.0.so.0.4200.1 gvfsd-tra 2029 garya txt VREG 0,129 1448336 1472091 /usr/local/lib/libgio-2.0.so.0.4200.1 gvfsd-tra 2029 garya txt VREG 0,129 308128 1472103 /usr/local/lib/libgobject-2.0.so.0.4200.1 gvfsd-tra 2029 garya txt VREG 0,129 1038952 1472095 /usr/local/lib/libglib-2.0.so.0.4200.1 gvfsd-tra 2029 garya txt VREG 0,129 52295 1471356 /usr/local/lib/libintl.so.8.1.3 gvfsd-tra 2029 garya txt VREG 0,129 334240 1468794 /usr/local/lib/libdbus-1.so.3.8.9 gvfsd-tra 2029 garya txt VREG 0,121 74176 99126 /lib/libutil.so.9 gvfsd-tra 2029 garya txt VREG 0,121 101048 99122 /lib/libthr.so.3 gvfsd-tra 2029 garya txt VREG 0,121 1369840 99098 /lib/libc.so.7 gvfsd-tra 2029 garya txt VREG 0,129 1084833 1469655 /usr/local/lib/libiconv.so.2.5.1 gvfsd-tra 2029 garya txt VREG 0,129 422120 1468248 /usr/local/lib/libpcre.so.1.2.3 gvfsd-tra 2029 garya txt VREG 0,129 28248 1471297 /usr/local/lib/libffi.so.6.0.4 gvfsd-tra 2029 garya txt VREG 0,121 82800 99128 /lib/libz.so.6 gvfsd-tra 2029 garya txt VREG 0,129 126280 2512671 /usr/local/lib/gio/modules/libgioremote-volu me-monitor.so gvfsd-tra 2029 garya txt VREG 0,129 205184 2512674 /usr/local/lib/gio/modules/libgvfsdbus.so gvfsd-tra 2029 garya 0r VCHR 0,19 0t0 19 /dev/null gvfsd-tra 2029 garya 1u VCHR 0,19 0t0 19 /dev/null gvfsd-tra 2029 garya 2u VCHR 0,19 0t0 19 /dev/null gvfsd-tra 2029 garya 3u PIPE 0xfffffe000cba2b60 16384 ->0xfffffe000cba2cb8 gvfsd-tra 2029 garya 4u PIPE 0xfffffe000cba2cb8 0 ->0xfffffe000cba2b60 gvfsd-tra 2029 garya 5u unix 0xfffffe01a501a2a8 0t0 ->0xfffffe01a501a000 gvfsd-tra 2029 garya 6u PIPE 0xfffffe01a501d5b0 16384 ->0xfffffe01a501d708 gvfsd-tra 2029 garya 7u PIPE 0xfffffe01a501d708 0 ->0xfffffe01a501d5b0 gvfsd-tra 2029 garya 8u KQUEUE 0xfffffe000cc98800 count=0, state=0x2 gvfsd-tra 2029 garya 9u unix 0xfffffe0184aea000 0t0 ->0xfffffe0184abdd48 gvfsd-tra 2029 garya 10u unix 0xfffffe0184abdd48 0t0 ->0xfffffe0184aea000 gvfsd-tra 2029 garya 11r VREG 0,121 2893 34721 /etc/fstab gvfsd-tra 2029 garya 12r VDIR 0,171 512 8748359 /hd2/home/garya/.local/share gvfsd-tra 2029 garya 13u unix 0xfffffe000caec000 0t0 /tmp/gvfs-garya-7d54udcg/socket gvfsd-tra 2029 garya 14r VDIR 0,171 512 8748371 /hd2/home/garya/.local/share/Trash gvfsd-tra 2029 garya 15r VDIR 0,171 16384 8750121 /hd2/home/garya/.local/share/Trash/files gvfsd-tra 2029 garya 16r VDIR 0,169 2560 2 /hd2/Downloads gvfsd-tra 2029 garya 17r VDIR 0,169 2560 2 /hd2/Downloads gvfsd-tra 2029 garya 18r VDIR 0,171 1024 2 /hd2/home gvfsd-tra 2029 garya 19r VDIR 0,171 1024 2 /hd2/home gvfsd-tra 2029 garya 20r VDIR 0,173 2560 2 /hd2/home/garya/Photos gvfsd-tra 2029 garya 21r VDIR 0,173 2560 2 /hd2/home/garya/Photos gvfsd-tra 2029 garya 22r unknown file system type: isofs gvfsd-tra 2029 garya 23u unix 0xfffffe01a5019aa0 0t0 /tmp/gvfs-garya-4y77tyna/socket gvfsd-tra 2029 garya 24r unknown file system type: isofs Can anyone give me a clue as to what's going on? I thought a device was only busy if a file was open on it, but clearly there are other ways to tie up a device. I presume it's tied up because gvfsd is looking for CDs being inserted, and apparently doesn't release the device after its last use. Just trying to understand what's going on; I know I can force an unmount using umount -f /cd0 After forcing a umount, the last entry and 3rd to last entry, with no TYPE and DEVICE reported, are missing, so I presume those are associated with /dev/cd0 Thanks for any pearls of wisdom... Gary