On Fri, 17 Oct 2008, james labocki wrote:
> On Fri, Oct 17, 2008 at 10:27 AM, Eben King <eben01@verizon.net> wrote:
>
>> Is there any way to see either what file is being written or who's doing
>> the writing, for a drive or even better a particular filesystem? I have
>> automount handling most of my filesystems (those that aren't vital for
>> Linux's operation, anyhow), and I find that sda5 (export) and sda6 (media)
>> are being remounted quite often, sda5 every 9:55 on average over the last 3
>> days, and sda6 less regularly. Maybe something in /proc or /sys?
> Use lsof
It shows nothing:
eben@pc:~$ lsof | grep export
eben@pc:~$ lsof | grep media
eben@pc:~$
Anyhow, it would only show open files; if an app did the equivalent of
echo foo > bar
then bar is only opened for the duration of the command. Even if I ran it
in a very tight loop, like
while : ; do
lsof | grep export
done
it wouldn't be very fast, as it takes over 10 seconds to run.
-- -eben QebWenE01R@vTerYizUonI.nOetP royalty.mine.nu:81 LIBRA: A big promotion is just around the corner for someone much more talented than you. Laughter is the very best medicine, remember that when your appendix bursts next week. -- Weird Al ----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:16:49 EDT