On Wed, Nov 13, 2002 at 08:29:20PM +0000, Paul wrote:
Much of the information I need is in the /var/log/dmesg (oops reports, etc), but this is overwritten on the next boot - Question: Is there any way of saving an old dmesg log at the next boot ?
I've tried adding a "mv -f /var/log/dmesg /var/log/old-dmesg" to the end of rc.sysinit, but it copies the current dmesg log.
well in Debian it appears to be part of the bootmisc.sh script in /etc/init.d but from memory I think you are using Redhat. Anyhow all I did to find where it gets set was a grep -r dmesg * in /etc and it looks as though it just overwrites the file at bootup on Debian but you could either put a boot script in before this to rotate the logs or move them elsewhere i guess.
If you want further help I can look on a Redhat box at work tomorrow.
Adam