core-update-121: ERROR cannot update because not enough free space on /boot

General questions.
Post Reply
praful
Posts: 13
Joined: November 4th, 2016, 3:03 pm

core-update-121: ERROR cannot update because not enough free space on /boot

Post by praful » July 30th, 2018, 9:45 pm

Hi

I tried to update to 121 today and got the following error:

Code: Select all

core-update-121: ERROR cannot update because not enough free space on /boot.
My /boot details are:

Code: Select all

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        59M   34M   22M  62% /boot
I noticed the release notes (https://www.ipfire.org/news/ipfire-2-21 ... 2-released) say "The size of the /boot partition has been increased to 128MB in the default partition layout."

The contents of /boot are:

Code: Select all

-rw-r--r--  1 root root 3.9M Nov  5  2016 vmlinuz-3.14.79-ipfire-pae
-rw-r--r--  1 root root 2.4M Nov  5  2016 System.map-3.14.79-ipfire-pae
-rw-r--r--  1 root root 136K Nov  5  2016 config-3.14.79-ipfire-pae
-rw-r--r--  1 root root 3.8M Dec 14  2016 vmlinuz-3.14.79-ipfire
-rw-r--r--  1 root root 2.3M Dec 14  2016 System.map-3.14.79-ipfire
-rw-r--r--  1 root root 135K Dec 14  2016 config-3.14.79-ipfire
-rw-------  1 root root 9.4M Dec 14  2016 initramfs-3.14.79-ipfire.img
drwx------  2 root root  16K Feb 10  2017 lost+found/
drwxr-xr-x  4 root root 4.0K Feb 10  2017 ./
-rw-------  1 root root 9.4M Feb 10  2017 initramfs-3.14.79-ipfire-pae.img
drwxr-xr-x 22 root root 4.0K Aug 28  2017 ../
drwxr-xr-x  4 root root 4.0K May  3 01:15 grub/
Is the expectation that we increase the /boot partition to 128MB before upgrading? Or should the upgrade work with the current size?

Since I have 3GB memory on the box, does that mean the PAE files are being used? If so, could I delete the non-PAE files (vmlinuz-3.14.79-ipfire, config-3.14.79-ipfire and initramfs-3.14.79-ipfire.img) to create space?

Thanks
Praful

ITechPro
Posts: 37
Joined: October 11th, 2011, 11:15 am

Re: core-update-121: ERROR cannot update because not enough free space on /boot

Post by ITechPro » July 30th, 2018, 10:45 pm

Hi,

as mentioned in another thread you need at least 22.000 KiB free on /boot, which rounds to 23 MB.

If possible, I'd try to enlarge the /boot partition to 128MB, as this is the new default.
You can alternatively look which kernel boots with you on "System -> System Information -> Kernel version:" e.g. "Linux <fw-name> 3.14.79-ipfire" with or without "-pae" attached.
If you currently use the pae kernel, you could give the non-pae kernel a try, and if it works, rather (re)move the pae-kernel, otherwise the non-pae kernel.

Regards,

User avatar
Arne.F
Core Developer
Core Developer
Posts: 8522
Joined: May 7th, 2006, 8:57 am
Location: BS <-> NDH
Contact:

Re: core-update-121: ERROR cannot update because not enough free space on /boot

Post by Arne.F » July 31st, 2018, 5:13 am

Try again. I have changed the check. 64MB is suitable...

But don`t reboot too early... the update need long time. Wait until "core 122 finished" is statet in the IPFire log section.
Arne

Support the project on the donation!

Image

Image

Image
PS: I will not answer support questions via email and ignore IPFire related messages on my non IPFire.org mail addresses.

praful
Posts: 13
Joined: November 4th, 2016, 3:03 pm

Re: core-update-121: ERROR cannot update because not enough free space on /boot

Post by praful » July 31st, 2018, 8:25 am

Thank you Arne.

I have tried again and the upgrade was successful.

For information: the upgrade was in two parts. Both parts were quick: less than one minute. I rebooted after both parts when prompted. The first part did not prompt me to restart (the pakfire screen disappeared quickly) and the version in the footer had "core update 122". Fortunately, I had a terminal Window open and a restart request appeared on the console. The second part had a clear restart message on the web interface. The system information after upgrade is:

Code: Select all

IPFire version:	IPFire 2.21 (i586) - core122
Pakfire version:	2.21
Kernel version:	Linux app01 4.14.50-ipfire-pae #1 SMP Tue Jun 19 10:53:43 GMT 2018 i686 Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz GenuineIntel GNU/Linux
I'm not sure why the upgrade is slow for some people.

Thanks again for your help.

Praful

salida
Posts: 32
Joined: July 18th, 2015, 9:33 pm

Re: core-update-121: ERROR cannot update because not enough free space on /boot

Post by salida » July 31st, 2018, 9:29 am

I have the same issue

Code: Select all

dev/sda1        64M   50M   15M  78% /boot

Code: Select all

ls -la /boot
total 15915
    280 Dec 14  2016 .
    560 Dec 15  2016 ..
 137847 Nov  5  2016 config-3.14.79-ipfire
    208 May  6 19:25 grub
9843572 Nov  5  2016 initramfs-3.14.79-ipfire.img
2370002 Nov  5  2016 System.map-3.14.79-ipfire
3922768 Nov  5  2016 vmlinuz-3.14.79-ipfire
could i resize the boot partition ?

User avatar
williamsc65
Posts: 4
Joined: November 26th, 2017, 3:11 pm

Re: core-update-121: ERROR cannot update because not enough free space on /boot

Post by williamsc65 » July 31st, 2018, 11:03 am

Arne.F wrote:
July 31st, 2018, 5:13 am
Try again. I have changed the check. 64MB is suitable...

But don`t reboot too early... the update need long time. Wait until "core 122 finished" is statet in the IPFire log section.
After you modify, update is ok on my ipfire
Sorry I'm french ;D
I don't speak english.

User avatar
Arne.F
Core Developer
Core Developer
Posts: 8522
Joined: May 7th, 2006, 8:57 am
Location: BS <-> NDH
Contact:

Re: core-update-121: ERROR cannot update because not enough free space on /boot

Post by Arne.F » July 31st, 2018, 11:20 am

@salida: looks that you have a serius filesystem problem on the bootpartition.

On a system without -pae kernel there should be much more free space...

umount /boot and run fsck -fy /dev/sda1
after this mount and check again.
Arne

Support the project on the donation!

Image

Image

Image
PS: I will not answer support questions via email and ignore IPFire related messages on my non IPFire.org mail addresses.

salida
Posts: 32
Joined: July 18th, 2015, 9:33 pm

Re: core-update-121: ERROR cannot update because not enough free space on /boot

Post by salida » July 31st, 2018, 12:12 pm

@Arne.F i have followed your instructions:
unmounted /boot
fsck
mount again.

Code: Select all

sudo pakfire upgrade
core-list.db         100.00% |=============================>|   233.00 B
CORE UPGR: Upgrading from release 120 to 121
core-upgrade-2.21... 100.00% |=============================>|   54.90 MB
PAKFIRE UPGR: core-upgrade-121: Decrypting...
PAKFIRE UPGR: core-upgrade-121: Upgrading files and running post-upgrading scripts...
^N
Message from syslogd@ipfire at Tue Jul 31 14:39:13 2018 ...
ipfire ipfire: core-update-121: ERROR cannot update because not enough free space on /boot.
is there a way to resize the partition ?
Last edited by salida on July 31st, 2018, 12:46 pm, edited 1 time in total.

frickelpit
Posts: 297
Joined: April 18th, 2011, 7:34 am

Re: core-update-121: ERROR cannot update because not enough free space on /boot

Post by frickelpit » July 31st, 2018, 12:29 pm

Same error here. :-[

User avatar
Arne.F
Core Developer
Core Developer
Posts: 8522
Joined: May 7th, 2006, 8:57 am
Location: BS <-> NDH
Contact:

Re: core-update-121: ERROR cannot update because not enough free space on /boot

Post by Arne.F » July 31st, 2018, 12:32 pm

Resize is not easy... You need an other computer or a live linux disk with gparted or similar tools.

Please post the content of the grub dir. There must be wrong files somewhere.
On a system without extra pae kernel there should be 35MB on /boot not 50MB
Arne

Support the project on the donation!

Image

Image

Image
PS: I will not answer support questions via email and ignore IPFire related messages on my non IPFire.org mail addresses.

salida
Posts: 32
Joined: July 18th, 2015, 9:33 pm

Re: core-update-121: ERROR cannot update because not enough free space on /boot

Post by salida » July 31st, 2018, 12:38 pm

Now i get it!!! The actual size of the files contained under /boot/ does not sum up to 50MB

Code: Select all

ipfire grub]$ ls -lh
total 187
-rw------- 1 root root 4.4K May  6 19:25 grub.cfg
-rw-r--r-- 1 root root 1.0K Dec 14  2016 grubenv
drwxr-xr-x 2 root root 6.8K Dec 14  2016 i386-pc
drwxr-xr-x 2 root root   48 Dec 14  2016 locale
-rw-r--r-- 1 root root 140K Nov  5  2016 splash.png
-rw-r--r-- 1 root root  25K Nov  5  2016 unifont.pf2

Code: Select all

ipfire boot]$ du -h
2.0M    ./grub/i386-pc
0       ./grub/locale
2.2M    ./grub
18M     .

Code: Select all

mount |grep boot
/dev/sda1 on /boot type reiserfs (rw)

tg92
Posts: 16
Joined: February 25th, 2016, 10:27 am

Re: core-update-121: ERROR cannot update because not enough free space on /boot

Post by tg92 » July 31st, 2018, 7:09 pm

hi
i have exactly the same trouble yesterday. I solve it with gparted 0.31.0

Setup it on bootable CD-R or on USB key
1- launch gparted.
2- Resize the partition /dev/sda4 (on the right ) to make some space on the hard drive (move the begin address of the partition) (see https://doc.ubuntu-fr.org/gparted in french but i think the same page exit in english) (for example remove 1000)
3- move other partition on the right (for example 1000) except the partition /dev/sda1 ( partition on the left in the hard drive)
4- for partition /dev/sda1 resize it to consume the place done ( in the exemple 1000) (increase new size and the free space following should be decreasing to 0)
5- apply modification
6- be patient, the resizing of the partition /dev/sda4 can be long (for me 1h30)
7- restart ipfire, now you have space on /dev/sda1 and you can upgrade it


I have done it with 10000 and it was too much.
partition.jpg

salida
Posts: 32
Joined: July 18th, 2015, 9:33 pm

Re: core-update-121: ERROR cannot update because not enough free space on /boot

Post by salida » July 31st, 2018, 7:40 pm

Physical access to the machine is not that easy. I have mainly access using ssh. Booting another OS to resize the partition would be the last resort.

tg92
Posts: 16
Joined: February 25th, 2016, 10:27 am

Re: core-update-121: ERROR cannot update because not enough free space on /boot

Post by tg92 » July 31st, 2018, 7:50 pm

setup gparted or fdisk and try to do the same by command line

Post Reply