The Map Is Not The Territory

A blog by Christian Willmes.

Ubuntu standard installation /boot partition size

| categories: server, ubuntu | View Comments

This is just a short rant on the standard installation settings for Ubuntu. On a fresh ubuntu install you have the option to automatically partition your harddrive for the installation of a Ubuntu Server or Desktop installation.

Normally you would think, that there are useable best practise settings for the automatic partition. But this is not really the case for Ubuntu.

As you can see in the following listing, Ubuntu creates a 228 MB partition for grub and the linux kernel images.

christian@willmes:~$ df -h
Dateisystem Gr@@e Benutzt Verf. Verw% Einge@ngt auf
/dev/mapper/ubuntu--vg-root 98G 38G 56G 41% /
none 4,0K 0 4,0K 0% /sys/fs/cgroup
udev 5,9G 4,0K 5,9G 1% /dev
tmpfs 1,2G 848K 1,2G 1% /run
none 5,0M 0 5,0M 0% /run/lock
none 5,9G 432K 5,9G 1% /run/shm
none 100M 36K 100M 1% /run/user
/dev/sdb1 228M 209M 7,5M 97% /boot
/dev/sdc1 459G 137G 299G 32% /media/workspace

This would be totally fine, if the old images would be deleted after some time atomatically, say to hold only the last 3 working or if the partition is full, delete the oldest? But you have to take care of the deletion of old kernel images yourself. See the following listing, for the files, which got collected in my /boot partiton since the installation of my current desktop system, within ca. 4 month.

christian@willmes:/boot$ ll
insgesamt 206842
drwxr-xr-x 4 root root 2048 Sep 6 13:46 ./
drwxr-xr-x 28 root root 4096 Sep 24 09:47 ../
-rw-r--r-- 1 root root 918229 Apr 1 2013 abi-3.8.0-16-generic
-rw-r--r-- 1 root root 918328 Apr 7 22:05 abi-3.8.0-17-generic
-rw-r--r-- 1 root root 918917 Mai 1 19:00 abi-3.8.0-19-generic
-rw-r--r-- 1 root root 919001 Jun 6 23:16 abi-3.8.0-25-generic
-rw-r--r-- 1 root root 919001 Jun 18 00:09 abi-3.8.0-26-generic
-rw-r--r-- 1 root root 919493 Jul 9 02:46 abi-3.8.0-27-generic
-rw-r--r-- 1 root root 919604 Aug 13 22:10 abi-3.8.0-29-generic
-rw-r--r-- 1 root root 919661 Aug 22 23:21 abi-3.8.0-30-generic
-rw-r--r-- 1 root root 154872 Apr 1 2013 config-3.8.0-16-generic
-rw-r--r-- 1 root root 154872 Apr 7 22:05 config-3.8.0-17-generic
-rw-r--r-- 1 root root 154942 Mai 1 19:00 config-3.8.0-19-generic
-rw-r--r-- 1 root root 154943 Jun 6 23:16 config-3.8.0-25-generic
-rw-r--r-- 1 root root 154945 Jun 18 00:09 config-3.8.0-26-generic
-rw-r--r-- 1 root root 154960 Jul 9 02:46 config-3.8.0-27-generic
-rw-r--r-- 1 root root 154960 Aug 13 22:10 config-3.8.0-29-generic
-rw-r--r-- 1 root root 154960 Aug 22 23:21 config-3.8.0-30-generic
drwxr-xr-x 5 root root 1024 Sep 6 13:46 grub/
-rw-r--r-- 1 root root 16801774 Apr 6 18:11 initrd.img-3.8.0-16-generic
-rw-r--r-- 1 root root 16800381 Apr 26 09:42 initrd.img-3.8.0-17-generic
-rw-r--r-- 1 root root 16795943 Mai 3 11:01 initrd.img-3.8.0-19-generic
-rw-r--r-- 1 root root 16801073 Jun 17 08:17 initrd.img-3.8.0-25-generic
-rw-r--r-- 1 root root 16802554 Jul 5 10:46 initrd.img-3.8.0-26-generic
-rw-r--r-- 1 root root 16862724 Aug 21 10:30 initrd.img-3.8.0-27-generic
-rw-r--r-- 1 root root 16864121 Aug 30 08:56 initrd.img-3.8.0-29-generic
-rw-r--r-- 1 root root 16861214 Sep 6 13:46 initrd.img-3.8.0-30-generic
drwxr-xr-x 2 root root 12288 Apr 6 17:44 lost+found/
-rw-r--r-- 1 root root 176764 Dez 5 2012 memtest86+.bin
-rw-r--r-- 1 root root 178944 Dez 5 2012 memtest86+_multiboot.bin
-rw------- 1 root root 3059383 Apr 1 2013 System.map-3.8.0-16-generic
-rw------- 1 root root 3059783 Apr 7 22:05 System.map-3.8.0-17-generic
-rw------- 1 root root 3060094 Mai 1 19:00 System.map-3.8.0-19-generic
-rw------- 1 root root 3060761 Jun 6 23:16 System.map-3.8.0-25-generic
-rw------- 1 root root 3060957 Jun 18 00:09 System.map-3.8.0-26-generic
-rw------- 1 root root 3061544 Jul 9 02:46 System.map-3.8.0-27-generic
-rw------- 1 root root 3062491 Aug 13 22:10 System.map-3.8.0-29-generic
-rw------- 1 root root 3062704 Aug 22 23:21 System.map-3.8.0-30-generic
-rw-r--r-- 1 root root 5354016 Apr 6 17:46 vmlinuz-3.8.0-16-generic
-rw------- 1 root root 5355856 Apr 7 22:05 vmlinuz-3.8.0-17-generic
-rw------- 1 root root 5356528 Mai 1 19:00 vmlinuz-3.8.0-19-generic
-rw------- 1 root root 5357392 Jun 6 23:16 vmlinuz-3.8.0-25-generic
-rw------- 1 root root 5355920 Jun 18 00:09 vmlinuz-3.8.0-26-generic
-rw------- 1 root root 5359184 Jul 9 02:46 vmlinuz-3.8.0-27-generic
-rw------- 1 root root 5360272 Aug 13 22:10 vmlinuz-3.8.0-29-generic
-rw------- 1 root root 5361936 Aug 22 23:21 vmlinuz-3.8.0-30-generic

This deletion of old images is doable for me and maybe for the 5-10% of technically savvy computer users out there. But for the "normal" user, who just want's to do things like internet, office, multimedia or other normal stuff, this is not understandable. The result will be, that those users will not have their system up to date, the update manager won't install new kernels, because there is not enough space left. And this also prevents the update manager from updating other packeges of the system. A google search of the topic shows, that I am not the only person having this issue. So this might be something the Ubuntu dev community want's maybe to rethink for furture distributions?

Have fun!


 

comments powered by Disqus

blog comments powered by Disqus