Woke up this morning ready to get some work done, and the laptop was frozen. Tried everything, and ultimately had to hard reset. And then I got the dreadful blank screen with the little blinking dash at the top. I was able to boot into recovery and tried various things, which led to the computer telling me the disk was full. I thought, well that's just impossible. I just installed Kali a month ago, there's no way I filled up 300Gb in a month. du and df both also said the disk usage was at 100%, but I still didn't believe it. Next step was to boot the live CD and run fsck to check the disk for errors. It took about 5 hours, and then another 3 to fix the bad blocks, and still I had disk usage at 100%. Ultimately, I ran sudo du -a / | sort -n -r | head -n 20 and found that /var/log was using 250Gb. It was mainly 3 files, syslog, messages, and user.log, at about 80Gb each. I truncated them and I'm back up and running again. I obviously didn't fix the underlying problem, but I'll figure that out over the weekend. If I would have just believed what it was telling me, I probably would have had it fixed in minutes.

Comment