Running out of space in partition 1

12 respuestas [Último envío]
Potato
Desconectado/a
se unió: 06/04/2014

My Partition 1 has 15GB, with 2.6GB still free, about 83% full. I have not installed any software other than what I am required to. Each time I do an update, I have a little bit less space left.
I have had this computer for at least two years (perhaps four). Do I need to manually delete log files with sudo? Do I need to leave my computer on overnight? How do I fix this? Thank you.

lembas
Desconectado/a
se unió: 05/13/2010

15 GB sounds like a decent amount.

Have you deleted your APT cache? That's all the packages you've ever downloaded. You can do that withsudo apt-get cleanor somewhere in the Synaptic package manager too if you wish to do it graphically.

Besides that you've probably collected a fair number of kernels, you only need one so you might want to uninstall the older ones, at 150 megs a pop. Look for installed packages named Linux-image-versionnumber.

The logs probably don't take a huge amount of space but if they do and you have no use for them, feel free to zap them.

stas730 (no verificado)
stas730

View /var/cache/

Potato
Desconectado/a
se unió: 06/04/2014

I thank you for your help. I appreciate it.
I did: "ls -l /var/cache", and only fifteen files listed. All but one had 4096, and one had 12,288 bytes?.

Magic Banana

I am a member!

I am a translator!

Conectado
se unió: 07/24/2010

4096 bytes is the space that a directory takes, not counting its content. With 'sudo apt-get clean' you removed the content /var/cache/apt/archives and it was far more data. The command line to now the space that a directory *and its content* (recursively) occupies is 'du -hs':
$ du -hs /var/cache

Potato
Desconectado/a
se unió: 06/04/2014

I thank you. I appreciate your help. I executed the command: "sudo apt-get clean", and it freed up .3GB.
I then did: find / Linux-image-versionnumber, which, of course, found nothing. I think that I need more detailed assistance with this recommendation.

Potato
Desconectado/a
se unió: 06/04/2014

I think that i will forget about deleting the log files for now.

Magic Banana

I am a member!

I am a translator!

Conectado
se unió: 07/24/2010

You can use the "Synaptic Package Manager" in the "System Settings". Many package names start with "linux-" (you can "search" them) and contain a number, e.g., "3.13.0-24". That is the version of the kernel. You certainly only use the kernel with the highest number (the command 'uname -r' tells the one you are currently running). You can remove all packages with lower numbers. If you are unsure whether the latest kernel broke the support of some of your hardware (the reason why the kernels are not automatically removed when a newer one is installed), you can keep as well one older kernel. There is no need to keep more kernels.

To remove packages in Synaptic, you can select them and use the "Del" key or right click and mark them for removal (the removal can be "complete": you need not keep the configuration files of package you will never reinstall). Then, click the "Apply" button and confirm the application of the changes.

SuperTramp83

I am a translator!

Desconectado/a
se unió: 10/31/2014

You could try bleachbit for cleaning up some space.
Don't check "memory" and "disk space" under "system" (the first is buggy, the second can take hours).
https://www.bleachbit.org/

sudo apt-get install bleachbit
sudo bleachbit

Potato
Desconectado/a
se unió: 06/04/2014

Thank you, Magic Banana for your help.
I typed: sudo du -hs /var/cache, and it freed up only .2GB.

I typed: uname -r, and it gave me: 3.13.0-100-generic.

I went into the Synaptic Package Manager and searched for Linux.
All of the Linux images with 3.13 had a green block to the left, as did an image with 3.2.0.
I also saw many Linux images with 3.16, 3.19, 4.2.0. None of them had a green block to the left.
I also saw many files called LinuxCloud and Linux headers.
Am I running with a very old version of the kernel?

Magic Banana

I am a member!

I am a translator!

Conectado
se unió: 07/24/2010

'du -hs /var/cache' does not free any space. It only shows how much space on the disk /var/cache occupies. 0.2 GB is not much. The space is wasted elsewhere. Probably in /boot where the kernels are.

You are running version 3.13.0-100-generic of the kernel, Linux. Version 3.13 was released in January 2014 but 100 security updates (the last number) were released since then. You will receive such updates until March 2019. If all your hardware properly works, there is no reason to switch to a newer version.

You need neither version 3.2 of the kernel nor the older versions of the 3.13 kernel, i.e., those with the last number below 100 and that are installed (green block in Synaptic). You can remove them like I explained in the second paragraph of https://trisquel.info/forum/running-out-space-partition-1#comment-105035

Potato
Desconectado/a
se unió: 06/04/2014

Correction: I meant to write that: all of the Linux images with 3.13 and "generic" had a green block to the left.

Potato
Desconectado/a
se unió: 06/04/2014

Success. 69 packages completely removed. It was 81.1% full. NOW, it is only 28.2% full. I am relieved and grateful. Thanks again, Magic Banana!