Ask Your Question

"extra" images in /boot folder

asked 2018-12-27 14:40:18 -0500

neverknew gravatar image

My system originally had Fedora 23 - I'm now running F29 and it looks like some things haven't been cleared out during various upgrades.

Ex 1: I still have the F23 Rescue image appearing in the Grub menu. I've run ' dnf rm /boot/"rescue" ' a couple of times, but the file still shows. When I look at the list of files in /boot there is an "initramfs-0-rescue" and a "vmlinuz-0-rescue" with the same identifying number.

Ex 2: When I list files in the /boot directory there is an image "initramfs-4.17.2-200.fc28"

How do I get rid of the unneeded files?

edit retag flag offensive close merge delete



This is probably because that's not a valid command for dnf. Not only do you have to specify a package, not a file, you use remove or erase. Use man dnf for more information.

sideburns gravatar imagesideburns ( 2018-12-27 16:23:11 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-12-27 18:30:55 -0500

nmgiffin gravatar image

If you remove the old rescue image and associated initramfs file then when dnf does its next kernel update, a new rescue image and intramfs file should be generated. dnf by default leaves 3 consecutive versions of the kernel and initramfs files along with the rescue image and initramfs file. As mentioned in the comment, the dnf command is not directly used to delete the files you mentioned. Make sure you have a good handle on what you are doing before you delete any files in the /boot directory.

edit flag offensive delete link more


That is how you get an up-to-date rescue image.

To remove:

rm  /boot/*rescue*

The next regular kernel update will create a new rescue image.

villykruse gravatar imagevillykruse ( 2018-12-28 04:16:59 -0500 )edit

Question Tools

1 follower


Asked: 2018-12-27 14:40:18 -0500

Seen: 72 times

Last updated: Dec 27 '18