Friday, 2 August 2013

move avira logfile location

so since it seems impossible to move the file location (means change the settings in avira that determine where the logfiles is located by default), and I have an SSD that I want to protect from too many writes, I am using my ramdisk on drive Z:

first I had to stop avira real time scan, and create the directory z:\temp\avira\logfiles

then I moved all the files from the default avira logs directory C:\ProgramData\Avira\AntiVir Desktop\LOGFILES to the ramdisk folder

then I deleted the default avira logfile location, and created a symbolic link instead:

mklink /D  "C:\ProgramData\Avira\AntiVir Desktop\LOGFILES" z:\temp\avira\logfiles

This seems to work and I don't see many avira logfile writes in process monitor any more.

Would have been possible to move the windows temp folder setting to the ramdisk, but then we would have to keep backing this up on hard disk at shut down (or even periodically if we are afraid of power cut), so that the contents don't get lost between restarts, and we don't really want to do that, as it would add many more disk writes and would slow down the system in general, especially during start up and shut down.

PS: I had to modify my ramdisk to always load a fixed image at start up, which contains the above path. Otherwise, at initialisation, the ram drive is always empty, and then avira can't find its temp file, which means it can't start its real time scanner.

No comments: