Z
Z
Zhandos M2017-05-31 22:38:50
linux
Zhandos M, 2017-05-31 22:38:50

How to free up space on /boot partition?

Hello!
The /boot folder is on a separate partition, with a certain size. When trying to update / install packages, it turned out that this was impossible, because. there is not enough space in /boot to load new kernels.
The current kernel version is older than anything in the /boot folder. Those. there are no kernels older than the current one in the folder, and everywhere on the Internet they write to delete old kernels. Can I safely remove any kernels, not the latest ones?
Let's have it now

vmlinuz-4.4.0-31-generic
vmlinuz-4.4.0-38-generic
vmlinuz-4.4.0-42-generic
vmlinuz-4.4.0-45-generic
vmlinuz-4.4.0-47-generic
vmlinuz-4.4.0-51-generic
vmlinuz-4.4.0-53-generic
vmlinuz-4.4.0-57-generic
vmlinuz-4.4.0-59-generic
vmlinuz-4.4.0-62-generic
vmlinuz-4.4.0-63-generic
vmlinuz-4.4.0-64-generic

Is it possible to at least remove kernels greater than 4.4.0.31 (current) and less than 4.4.0.64 ?
Restarting the system is not possible, because. the site is spinning on the server, so maybe the kernel would have been updated.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2017-05-31
@Zhandos

apt autoremove
there is no tragedy to make a reboot

D
devloh, 2020-09-27
@devloh

When apt and dpkg fail:
1. Boot from a LiveCD, such as PuppyLinux.
2. Mount boot-disk, for example, sba2.
3. Remove some cores that are not in use.
4. Boot normally and sudo apt-get autoremove

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question