[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: No space left when: update-initramfs: Generating /boot/initrd.img-5.10.0-5-amd64




# df -h /boot
Filesystem      Size  Used Avail Use% Mounted on
/dev/nvme0n1p1  236M  233M     0 100% /boot

What do you recommend I do?

1. Autoremove old automatically installed stuff

$ apt purge --autoremove

2. Check packages:

$ dpkg-query --show -f='${Installed-Size}\t${Package}\t${Status}\n' | sort -nr | head

This will give you the biggest packages (latest field should show if they are really installed).
Find the one you do not need  (old kernel probably, but be sure not to delete the current kernel: check "uname -r" !)

Then, purge them:
apt purge "package name"
 
 

Doubt: after this, by default old kernels will be cleaned up in Bullseye Vs
       Buster?


AFAIK yes, when you call "autoremove" , but one prev. kernel left untouched.

see
/etc/apt/apt.conf.d/01autoremove-kernels
or something like this





 

Reply to: