system partition persists to report being full on ubuntu 18.04
Hello everyone ! I hope you are well.
I am currently experiencing a problem on ubuntu 18.04, concerning my system partition which began to report being full two days after I installed matlab (the trial version). Since then, I can not use my browser anymore, I can not visit more than one partition of my hard drive (I receive a message that tells me that I do not have enough space), my system has in general extremely slowed down. I have uninstalled Matlab, but no change. I even went so far as to uninstall other software, but I did not notice any changes. I am about to reinstall my operating system, but first, I would like to know if there is another alternative to this. Thank you in advance ! |
Start by running the df command and reporting the result.
If the partition is really full, there are tools to identify files or directories that occupy a lot of space. |
check /tmp and what he said.
|
Yeah I would use df first
Code:
df -h Code:
sudo du -h --max-depth=1 Code:
ls -lS |
Thank you for your answers !
But I did not have time to apply them because since my last post, this problem has gotten worse and I could not have access to my system anymore. When I want to access it by normal start, it appears sequences of sequence of line which stop at a given moment and I just have to shutdown my computer and to restart it. I tried to go through the "Ubuntu, with Linux 4.15.0-43-generic (recovery mode)" option, in "Advanced options for ubuntu" of "GNU GRUB". Coming to the "Recovery Menu", I chose the "clean Try to make free space" option and the result looked like: --- Trying to find packages you don't need (apt-get autoremove), please review carefully. Reading package lists...Error! E: Write error - write(28: No space left on device) E: IO Error saving source cache E: The package lists or status fille could not be parsed or opened. Finished, please press ENTER --- After that, when I take the "resume Resume normal boot" option, I end up with a flashing screen which last, until I shutdown my computer. |
you need to boot "Live", i.e. from a USB stick, so you can access your hard drive "from the outside".
you then mount your internal hard drive and can essentially try the same commands as recommended previously, just including the path to the mounted hard drive. with pictures: Code:
sudo su - Code:
fdisk -l assuming it's /dev/sda2: Code:
cd |
One other thing to check: check the trash, not just the one that may show up on your desktop. There are often hidden trash directories (usually named something like .Trash*) especially on directories mounted through the mount command. The files in these directories do not show up but do take up space. If you delete the files or the entire directories the files will finally actually be deleted, not just marked for deletion. It the trash directory is needed again later it will automatically be recreated (empty).
|
Hi, hope you're doing well !
Thank you @ondoho ! I did as you said and here is what i got : Code:
Code:
Code:
|
While examining the result above, i saw that the folder "var" was occupying around 26GB.
And in those 26Gb, 24GB came from the "log" folder that include the directory named "cups" with a single file inside it named "error_log" of size 22GB. Code:
root@ubuntu:~/mnt# cd ./var Code:
root@ubuntu:~/mnt/var/log/cups# rm --force error_log Code:
... Code:
chmod 755 /usr/lib/cups/notifier |
well done!
thank you for sharing the solution in full detail. now please mark your thread SOLVED. |
Welcome and Thanks for the remembrance !
|
All times are GMT -5. The time now is 08:50 AM. |