From owner-freebsd-questions@FreeBSD.ORG Thu Feb 12 06:27:22 2009 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 738AB106564A for ; Thu, 12 Feb 2009 06:27:22 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id E4A3B8FC18 for ; Thu, 12 Feb 2009 06:27:21 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id n1C6R0pF014476; Thu, 12 Feb 2009 06:27:00 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.1 smtp.infracaninophile.co.uk n1C6R0pF014476 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1234420021; bh=7Z/kmQ/8ICF1TAD3N5Ksejd69Hn6P8GXNlEfN0+BH70=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4993C12D.5070705@infracaninophile.co.uk>|Date:=20T hu,=2012=20Feb=202009=2006:26:53=20+0000|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.19=20(X11/20090125)|MIME-Vers ion:=201.0|To:=20Polytropon=20|CC:=20FreeBSD=20Q uestions=20,=20=0D=0A=20Robert=20Hu ff=20|Subject:=20Re:=20Determining=20process=2 0preventing=20umount=20of=20busy=20partition|References:=20<200902 12062505.ca66b93e.freebsd@edvax.de>=09<18835.46899.607357.649275@j erusalem.litteratus.org>=09<20090212070837.08bbf237.freebsd@edvax. de>=20<20090212071335.a595cefa.freebsd@edvax.de>|In-Reply-To:=20<2 0090212071335.a595cefa.freebsd@edvax.de>|X-Enigmail-Version:=200.9 5.6|Content-Type:=20multipart/signed=3B=20micalg=3Dpgp-sha256=3B=0 D=0A=20protocol=3D"application/pgp-signature"=3B=0D=0A=20boundary= 3D"------------enigF837685A0824ACB6C5DADB7E"; b=MAF62k4hsWkMOXWpy6yMjqlgngiBY6ktiretdD8C8XrQdU9E1rbjfzL6e6aN2mlZM s4BKfteP7Kp2staF8o4bUhYrlmurT3Od4Jq0InzenoOLNnHMmNFXB++OiZlAdDCz5B dWYIVFBr8gF8Hp+Xqrb+TkhOEJ7tkml+ylHwKn9c= Message-ID: <4993C12D.5070705@infracaninophile.co.uk> Date: Thu, 12 Feb 2009 06:26:53 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.19 (X11/20090125) MIME-Version: 1.0 To: Polytropon References: <20090212062505.ca66b93e.freebsd@edvax.de> <18835.46899.607357.649275@jerusalem.litteratus.org> <20090212070837.08bbf237.freebsd@edvax.de> <20090212071335.a595cefa.freebsd@edvax.de> In-Reply-To: <20090212071335.a595cefa.freebsd@edvax.de> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigF837685A0824ACB6C5DADB7E" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (smtp.infracaninophile.co.uk [IPv6:::1]); Thu, 12 Feb 2009 06:27:01 +0000 (GMT) X-Virus-Scanned: ClamAV 0.94.2/8981/Thu Feb 12 00:28:11 2009 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS,SUBJECT_FUZZY_TION autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: Robert Huff , FreeBSD Questions Subject: Re: Determining process preventing umount of busy partition 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: Thu, 12 Feb 2009 06:27:22 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF837685A0824ACB6C5DADB7E Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Polytropon wrote: > Replying to my own message... I'm so stupid: How do I *use* lsof which > is /usr/local/sbin/lsof when actually trying to umount /usr? Can I > put a copy of it into, let's say, /root/bin? I've checked library > dependencies: >=20 > # which lsof | xargs ldd > /usr/local/sbin/lsof: > libkvm.so.4 =3D> /lib/libkvm.so.4 (0x280a2000) > libc.so.7 =3D> /lib/libc.so.7 (0x280aa000) >=20 > So this is on the / partition. This should work, am I right? Don't use lsof for that then. Use fstat(1) which is part of the base system: # fstat -f /usr Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enigF837685A0824ACB6C5DADB7E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkmTwTQACgkQ8Mjk52CukIzFAwCgihbf6QgprN2fsQDNXK3WSmwM XjQAn1++bIEe/NREeWsgPLcRWwwaM+Io =UM2I -----END PGP SIGNATURE----- --------------enigF837685A0824ACB6C5DADB7E--