Re: Root File System Full /var/log/upstart/lightdm.log is 9.8 gb
Originally Posted by
dasjefe
I'm having the same issue. My lightdm.log was >100GB when I deleted it. It is back and growing once again. I had the same problem with the .xsession-errors file. However, I was able to delete/recreate and set this file to immutable and that problem went away. I can't seem to use the same trick for the lightdm.log file. Does anyone have a solution for this besides just deleting it all the time? Thanks!
You could set up a cron job (sudo crontab -e) that would empty it every week or every two days-- however often you feel necessary.
Code:
0 3 */2 * * > /var/log/lightdm/lightdm.log # empty the file at 3AM every two days.
I would also look into the man page for crontab for examples (man 5 crontab). This doesn't figure out the reason for it becoming so large, but automates emptying the file.
"Where is the heal-anything blood?"
Bookmarks