Ask Your Question

/boot partition is still full after removing kernels

asked 2014-10-09 19:11:48 -0500

Marko gravatar image

updated 2014-10-09 19:38:31 -0500


When i installed fedora i followed recommended partition size guide and set /boot size to 250 MB. Today when i ran dnf update command it gave me error:

At least 18MB more space needed on the /boot filesystem.

Then i followed tutorials on how to remove old kernels and i left only with the current one. I managed to shrink /boot partition down to 60MB according to nautilus. Problem is i still get same error:

At least 18MB more space needed on the /boot filesystem.

df -h printed:

Filesystem               Size  Used Avail Use% Mounted on
/dev/mapper/fedora-root   48G  7,5G   38G  17% /
devtmpfs                 2,0G     0  2,0G   0% /dev
tmpfs                    2,0G   69M  1,9G   4% /dev/shm
tmpfs                    2,0G  928K  2,0G   1% /run
tmpfs                    2,0G     0  2,0G   0% /sys/fs/cgroup
tmpfs                    2,0G  812K  2,0G   1% /tmp
/dev/sda1                239M  210M   13M  95% /boot
/dev/mapper/fedora-var    15G 1020M   13G   8% /var
/dev/mapper/fedora-home  379G   74G  286G  21% /home
tmpfs                    396M   20K  396M   1% /run/user/1000

This shows that i have 13MB of free space in /boot but i dont know how is that possible?

Last good idea i tried was to boot gparted live and resize /boot. Then i noticed that gparted is showing my /home partition almost full to the top (400GB) which is not true. I gave up since it would need 6 hours for computer to move litle bit of the nothing to the right.

Does anyone have an idea why is /boot partition full when its actually not?

edit retag flag offensive close merge delete


I edited in the table header for you; it helps demonstrate how much unused space is available in /boot: 13M. It doesn't sound like that's enough. What guide recommended a 250MB /boot partition?

randomuser gravatar imagerandomuser ( 2014-10-09 19:19:34 -0500 )edit

This one: link text

Marko gravatar imageMarko ( 2014-10-09 19:23:30 -0500 )edit

Okay, I see you noticed the 13MB :)

Look for old initramfs, for kernels that are no longer installed.

randomuser gravatar imagerandomuser ( 2014-10-09 19:24:20 -0500 )edit

I removed that and .img files also. Whatever i did from start to end, partition size was same.

Marko gravatar imageMarko ( 2014-10-09 19:35:12 -0500 )edit

That guide is for F15, not F20 :) Anyway, can you update your post with ls -al /boot please?

randomuser gravatar imagerandomuser ( 2014-10-09 22:30:30 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2014-10-11 22:53:31 -0500

klausi gravatar image

updated 2014-10-11 22:55:00 -0500

  1. Erase obsolete kernel versions "yum erase kernel" (keeps the current version).
  2. Check Space usage in /boot and subdirectories "du /boot | sort -n", I have 88 M, 87 M in /boot itself.
  3. Check files in /boot "ls -la /boot", should contain two vmlinuz* and initramfs* for the current kernel.
  4. Check the file system on /boot (assuming it is on /dev/sda1):"cd && umount /boot && fsck -f /dev/sda1 && mount -a"
edit flag offensive delete link more

answered 2014-10-12 16:50:21 -0500

dnozay gravatar image

Please run:

du -h /boot

It will let you know what's consuming the space.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-10-09 19:11:48 -0500

Seen: 1,296 times

Last updated: Oct 12 '14