Date: Thu, 12 Feb 2009 06:41:32 +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: <4993C49C.3020704@infracaninophile.co.uk> In-Reply-To: <4993C12D.5070705@infracaninophile.co.uk> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4993C49C.3020704>