Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Feb 2009 06:26:53 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Polytropon <freebsd@edvax.de>
Cc:        Robert Huff <roberthuff@rcn.com>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Determining process preventing umount of busy partition
Message-ID:  <4993C12D.5070705@infracaninophile.co.uk>
In-Reply-To: <20090212071335.a595cefa.freebsd@edvax.de>
References:  <20090212062505.ca66b93e.freebsd@edvax.de>	<18835.46899.607357.649275@jerusalem.litteratus.org>	<20090212070837.08bbf237.freebsd@edvax.de> <20090212071335.a595cefa.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4993C12D.5070705>