Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] boot partition size
Date: Tue, 24 Nov 2020 23:25:25
Message-Id: 0b60aa34-c846-6877-ef26-b123fbcdad6a@gmail.com
In Reply to: [gentoo-user] boot partition size by thelma@sys-concept.com
1 thelma@×××××××××××.com wrote:
2 > I run gentoo installation from:
3 > https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Disks
4 >
5 > parted -a optimal /dev/nvme0n1
6 >
7 > Device Start End Sectors Size Type
8 > /dev/nvme0n1p1 2048 6143 4096 2M BIOS boot
9 > /dev/nvme0n1p2 6144 268287 262144 128M EFI System
10 > /dev/nvme0n1p3 268288 1316863 1048576 512M Linux filesystem
11 > /dev/nvme0n1p4 1316864 3907027119 3905710256 1.8T Linux filesystem
12 >
13 > When I compiled kernel and run: make install
14 > it complained not enough space on disk
15 >
16 > sh ./arch/x86/boot/install.sh 5.4.72-gentoo arch/x86/boot/bzImage \
17 > System.map "/boot"
18 > cat: write error: No space left on device
19 > make[1]: *** [arch/x86/boot/Makefile:155: install]
20 >
21 > /dev/nvme0n1p4 1.8T 3.5G 1.7T 1% /
22 > cgroup_root 10M 0 10M 0% /sys/fs/cgroup
23 > udev 10M 0 10M 0% /dev
24 > tmpfs 16G 0 16G 0% /dev/shm
25 > /dev/sda2 6.4M 6.4M 2.0K 100% /boot
26 >
27 > (sda2 - I think is a bootable USB)
28 >
29
30 From that last tidbit, yep, /boot appears to be full.  I think the
31 smallest I ever used for /boot was like 300MBs or so.  Right now, mine
32 is about 400MBs and is 30% used.  I'd think 100MBs would suffice if you
33 don't keep to many old kernels laying about.  I cleaned out old kernels
34 a while back.  Generally when I reach about 50% or so, I clean house. 
35 This is du -shc /boot for my system.  Maybe it will help you determine
36 the minimum size needed. 
37
38
39
40 root@fireball / # du -shc /boot/*
41 0          /boot/boot
42 102K    /boot/config-4.19.40-2
43 110K    /boot/config-5.6.7-2
44 34M     /boot/grub
45 6.9M    /boot/grub2
46 8.9M    /boot/initramfs-4.19.40-3.img
47 8.9M    /boot/initramfs-5.6.7-2.img
48 7.0M    /boot/kernel-4.19.40-3
49 11M     /boot/kernel-5.6.7-2
50 12K      /boot/lost+found
51 1.2M    /boot/memtest86-iso
52 363K    /boot/memtest86plus
53 152K    /boot/mt500rc1.bin
54 4.0M    /boot/System.map
55 4.0M    /boot/System.map-5.4.32
56 4.0M    /boot/System.map-5.4.32.old
57 4.0M    /boot/System.map.old
58 94M     total
59 root@fireball / #
60
61
62 Let's see.  Kernel:  12MBs at least.  Grub, not sure which one is in
63 actual use but picking largest one:  35MBs.  Stupid init thingy: 
64 10MBs.  System.map file:  4MBs.  That's 61MBs.  100MBs would be a bit of
65 a squeeze but doable.  Future needs may cause trouble tho. 
66
67 Hope that helps.
68
69 Dale
70
71 :-)  :-)