After an install of a new kernel these files were created in /boot
initrd.img-4.10.0-38-generic
initrd.img-4.13.0-45-generic
initrd.img-4.15.0-29-generic
initrd.img-4.15.0-30-generic
initrd.img-4.15.0-32-generic
initrd.img-4.15.0-33-generic
initrd.img-4.15.0-34-generic
initrd.img-4.15.0-36-generic
initrd.img-4.15.0-38-generic
initrd.img-4.15.0-39-generic
initrd.img-4.15.0-42-generic
May I rm them without concern?
I am running kernel 4.15.0-42
(I'm new with Mint so forgive me if I'm not spot on with terminology.)
[SOLVED] are these files necessary in /boot?
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
[SOLVED] are these files necessary in /boot?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
- smurphos
- Level 18
- Posts: 8501
- Joined: Fri Sep 05, 2014 12:18 am
- Location: Irish Brit in Portugal
- Contact:
Re: are these files necerray in /boot?
Don't remove them manually.
Does
If not use Update Manager > View > Linux Kernels to remove some of the older kernels manually.
Does
apt autoremove --purge
list any old kernels for automatic removal? If so go ahead and allow the command to remove them.If not use Update Manager > View > Linux Kernels to remove some of the older kernels manually.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
Re: are these files necerray in /boot?
Aw, do I still get to post my script?
Automatic cleanup of all old kernels, copy & paste into a terminal window:
Code: Select all
dpkg-query -W -f '${Version}\n' 'linux-image-[^gl]*'|sort -u|sed -e "/^$/d;s/\~[^~]*$//;s/\.[^.]*$//;/$(uname -r|sed 's/-generic\|-lowlatency//')/d;s/.*/linux-*-&*/"|tr '\n' ' '|xargs -r sudo apt-get remove --purge -y
Last edited by gm10 on Fri Dec 21, 2018 4:23 pm, edited 1 time in total.
Re: are these files necerray in /boot?
Thank you... I will have to study that script. It ran on for a long time, and in the end may /boot directory had been
purged and was clean. Very good!
Re: are these files necerray in /boot?
Happy to help. In Mint 19.1 you can also now do a kernel mass removal via Update Manager by the way.