How do i resize my ubuntu /boot filesystem
You have 228M /boot partition. It is more then enough and you do not need to resize it. It is difficult and dangerous procedure for not advanced user. I'm sure that you need just remove 2-3 files (old kernel versions) there.
Here is my example (for Gentoo):
# df -h /boot
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 97M 52M 41M 56% /boot
# ls -la /boot/
total 50392
drwxr-xr-x 4 root root 1024 Jun 20 11:51 .
drwxr-xr-x 22 root root 4096 Feb 5 23:04 ..
-rw-r--r-- 1 root root 0 Jun 20 2012 .keep
-rw-r--r-- 1 root root 2839981 Nov 13 2012 System.map-3.5.7-gentoo
lrwxrwxrwx 1 root root 1 Sep 16 2012 boot -> .
-rw-r--r-- 1 root root 88815 Nov 13 2012 config-3.5.7-gentoo
drwxr-xr-x 2 root root 1024 Jun 20 11:52 grub
-rw-r--r-- 1 root root 5980096 Mar 1 15:26 kernel-3.7.10-gentoo
-rw-r--r-- 1 root root 5980032 Apr 20 01:54 kernel-3.7.10-gentoo_2
-rw-r--r-- 1 root root 6020960 May 10 13:52 kernel-3.7.10-gentoo_3
-rw-r--r-- 1 root root 5966912 Feb 25 19:47 kernel-3.7.9-gentoo
-rw-r--r-- 1 root root 6179840 May 16 19:14 kernel-3.8.13-gentoo
-rw-r--r-- 1 root root 6231072 May 21 12:52 kernel-3.8.13-gentoo_2
-rw-r--r-- 1 root root 6233696 Jun 20 11:51 kernel-3.8.13-gentoo_3
drwx------ 2 root root 12288 Sep 15 2012 lost+found
-rw-r--r-- 1 root root 5844768 Nov 13 2012 vmlinuz-3.5.7-gentoo
#
I can delete kernel-3.7* to clean 40-50% disk space. If you afraid, just move these files to another partition.
Related videos on Youtube
Cameron M
I currently work as a web developer - primarily developing on windows, but slowly making the transition to Linux/Ubuntu.
Updated on September 18, 2022Comments
-
Cameron M over 1 year
Recently when running "software updater", I received the message that my /boot filesystem is low on memory. This is what I found my disk space usage was:
~$ df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/ubuntu-root 145G 4.3G 134G 4% / udev 871M 4.0K 871M 1% /dev tmpfs 353M 804K 352M 1% /run none 5.0M 0 5.0M 0% /run/lock none 882M 160K 881M 1% /run/shm none 100M 28K 100M 1% /run/user /dev/sda1 228M 211M 5.0M 98% /boot /home/me/.Private 145G 4.3G 134G 4% /home/me
How do I reallocate more space to /boot? Should I be considering a better alternative solution?
I am running Ubuntu 12.10. This level of OS management is still very new to me.
-
september almost 11 yearsPlease provide content of /boot directory:
# ls -la /boot/
-
Cameron M almost 11 years@september, here is part of the output: -rw-r--r-- 1 root root 853738 Oct 9 2012 abi-3.5.0-17-generic -rw-r--r-- 1 root root 860818 Mar 25 15:29 abi-3.5.0-27-generic -rw-r--r-- 1 root root 861067 Jun 6 15:49 abi-3.5.0-34-generic -rw-r--r-- 1 root root 154429 Oct 9 2012 config-3.5.0-17-generic -rw-r--r-- 1 root root 154652 Mar 25 15:29 config-3.5.0-27-generic -rw-r--r-- 1 root root 154689 Jun 6 15:49 config-3.5.0-34-generic
-
Cameron M almost 11 yearsdrwxr-xr-x 5 root root 1024 Jun 21 18:38 grub -rw-r--r-- 1 root root 22196750 Nov 29 2012 initrd.img-3.5.0-17-generic -rw-r--r-- 1 root root 22286401 Apr 15 21:36 initrd.img-3.5.0-27-generic -rw-r--r-- 1 root root 22290842 Jun 21 18:38 initrd.img-3.5.0-34-generic -rw-r--r-- 1 root root 178944 Jan 3 16:47 memtest86+_multiboot.bin -rw------- 1 root root 2320733 Oct 9 2012 System.map-3.5.0-17-generic -rw------- 1 root root 2321612 Oct 19 2012 System.map-3.5.0-18-generic -rw------- 1 root root 2321450 Jun 6 15:49 System.map-3.5.0-34-generic
-
A. Meshu over 4 yearsrelated: askubuntu.com/questions/89710/…
-
-
Karan almost 11 yearsLink only answers aren't considered to be great since links die, so please add more details.
-
BlueBomber over 9 yearsI wouldn't call 228M "more than enough" if it requires manual user intervention from time to time. Isn't there something that reclaims old kernel versions automatically?