On 22/12/99 Shaul Karl wrote:
There are times that this remounting is not done because /usr is left busy after apt-get dist-upgrade. There for, I wonder if and how lsof can be used in order to find the offending files?
it won't help really, the problem is files being overwritten that are in use, so if you are running a rxvt and you overwrite the rxvt binary with a new one you will not be able to remount /usr ro until that running rxvt is closed. (since the disk blocks are not freed until that occurs) lsof does not help in the case really since before you upgraded it would show rxvt opened and the exact same thing after the upgrade (at least as far as I have seen, maybe there is an option to show pending disk removal i don't know about?)
since there are usually a dozen or more programs and libraries from /usr open at any given time its hard to say which one is the offender unless you pay very close attention to what packages were upgraded and know exactly what they overwrote.
-- Ethan Benson To obtain my PGP key: http://www.alaska.net/~erbenson/pgp/