I was prompted that I was running low on disk space, so I checked my disk useage and found a "syslog.1" file that was over 300GB. When I opened the file it was an endless stream of some tracking error. I naively gave myself sudo privileges and deleted the file, and now I'm dealing with the consequences. The file is no longer visible, but my disk useage remains full.
I gave my machine a restart, but now I'm locked out of the Ubuntu GUI and stuck with the tty2-6 terminals.
I tried to kill any process by running...
sudo lsof +L1
And finding the PIDs and...
sudo kill [PIDs]
However when I view my total disk useage with...
df -x squashfs --total
I still see the drive at 100% Use%.
At the moment I'm locked out of my machine, any help is greatly appreciated.
journalctl --vacuum-time=2d
– kanehekili Jan 24 '23 at 00:09sudo du -hfx /root | sort -rh |head -n 10
and found my /root is taking up 496 GBs. – KitCat Jan 24 '23 at 00:34