I also found this problem today, and my solution was to replace this
line
df -P --type=ext2 --type=ext3 --type=xfs 2>/dev/null
With something like this (don't miss the ending pipe)
df -P --type=ext2 --type=ext3 --type=xfs 2>/dev/null | grep -v
mymount name |
I would also like to point out to users who are trying to debug what
is causing their drives to spin up, the iwatch and itop utilities are
very useful to monitor a whole filesystem
iwatch -r -e all_events /mnt/mymount
Also for kernel level monitoring, first stop syslog (in Lenny, /etc/
init.d/rsyslog stop) to avoid a feedback loop and then as root do:
echo 1 > /proc/sys/vm/block_dump
You can then watch what is accesing your drive with
watch -d -n 4 'dmesg|grep hda|tail -n 40'
Thanks.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]