From owner-freebsd-questions@FreeBSD.ORG Thu Feb 12 06:42:00 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 323C9106566B for ; Thu, 12 Feb 2009 06:42:00 +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 91F4D8FC18 for ; Thu, 12 Feb 2009 06:41:59 +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 n1C6fdX7014639; Thu, 12 Feb 2009 06:41:41 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.1 smtp.infracaninophile.co.uk n1C6fdX7014639 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1234420901; bh=RG5YMSzlSRFg01mK/xuYOy1tYWLHtYT33wayTaNVt9Y=; 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<4993C49C.3020704@infracaninophile.co.uk>|Date:=20T hu,=2012=20Feb=202009=2006:41:32=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:=20Robert=20Hu ff=20,=20=0D=0A=20FreeBSD=20Questions=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>=09<20090212071335.a595cefa.freebsd@edvax.de>=20<4993C12D.50707 05@infracaninophile.co.uk>|In-Reply-To:=20<4993C12D.5070705@infrac aninophile.co.uk>|X-Enigmail-Version:=200.95.6|Content-Type:=20mul tipart/signed=3B=20micalg=3Dpgp-sha256=3B=0D=0A=20protocol=3D"appl ication/pgp-signature"=3B=0D=0A=20boundary=3D"------------enigDED3 C289CEC5D8A300299AC5"; b=LEM4dirTNmeRKDxkZELOOCEVUmo8bLjy4ZOZ+az6/zuzLVY/fuuQVq5yXsDVHJ7h5 Hdy1uorp8P0Iznvg8I7DjByb+IgGb7JC/ErMnXhaDUy2e4vkIzLPA0TQOFamaXZ0IE MUcYq1OcTwougaokgGhSGubLcIVonjNQa1hyU/1s= Message-ID: <4993C49C.3020704@infracaninophile.co.uk> Date: Thu, 12 Feb 2009 06:41:32 +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> <4993C12D.5070705@infracaninophile.co.uk> In-Reply-To: <4993C12D.5070705@infracaninophile.co.uk> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigDED3C289CEC5D8A300299AC5" 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:41:41 +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:42:00 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigDED3C289CEC5D8A300299AC5 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Matthew Seaman wrote: > 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: >> >> # 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) >> >> So this is on the / partition. This should work, am I right? >=20 > Don't use lsof for that then. Use fstat(1) which is part of the base > system: >=20 > # fstat -f /usr >=20 Must stop replying to these things before I've had enough coffee.=20 fstat(1) is of course installed as /usr/bin/fstat so unmounting /usr will seriously cramp its style. As you say -- there are no shlib dependencies on stuff under /usr so just slap a copy somewhere on the root partition and away you go. Cheers, Matthew, who avoids having to think about any of this stuff=20 by the simple expedient of not having a separate /usr partition. --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enigDED3C289CEC5D8A300299AC5 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 iEYEAREIAAYFAkmTxKMACgkQ8Mjk52CukIwlqwCfefWYDvbue/YgH0AZvJxx4kvw BPAAnj0dMxN4txbsQp9DJBuN4eKaC7zw =E5JL -----END PGP SIGNATURE----- --------------enigDED3C289CEC5D8A300299AC5--