1 |
After upgrading my machine. I rebooted, everything went as planned. |
2 |
So I decided to upgrade to a newer kernel. I was using: |
3 |
linux-3.10.7-gentoo-r1 |
4 |
|
5 |
and decided to switch to: |
6 |
linux-4.9.6-gentoo-r1 |
7 |
|
8 |
I've done kernel upgrade many, many times so it was a routine procedure. When I re-booted the last thing on the screen were letter: |
9 |
|
10 |
"GRUB" and blank screen, not even a kernel selection. |
11 |
I scramble, boot strap the system and copied two file in /boot/ |
12 |
kernel-old --> kernel-current |
13 |
System.map-old --> System.map-current |
14 |
|
15 |
I was under impression that something is wrong with the current (newest kernel). But it seems to me I run out of room on the /boot partition. |
16 |
|
17 |
ll -h /boot/ |
18 |
total 17M |
19 |
lrwxrwxrwx 1 root root 1 Dec 17 2011 boot -> . |
20 |
-rw-r--r-- 1 root root 109K Mar 5 10:20 config-current |
21 |
-rw-r--r-- 1 root root 90K Mar 5 10:13 config-old |
22 |
drwxr-xr-x 5 root root 1.0K Mar 5 11:48 grub |
23 |
-rw-r--r-- 1 root root 5.5M Mar 5 11:03 kernel-current |
24 |
-rw-r--r-- 1 root root 5.5M Mar 5 10:12 kernel-old |
25 |
drwx------ 2 root root 12K Dec 17 2011 lost+found |
26 |
-rw-r--r-- 1 root root 2.9M Mar 5 11:03 System.map-current |
27 |
-rw-r--r-- 1 root root 2.9M Mar 5 10:12 System.map-old |
28 |
|
29 |
df -h |
30 |
/dev/sda1 30M 29M 0 100% /boot |
31 |
|
32 |
When I installed the system I followed standard, installation instructions, and allocated disk space accordingly in Gentoo installation instruction manual. I think it wasn't enough. |
33 |
|
34 |
What I my options to reduce kernel size or increase /boot partition? |
35 |
|
36 |
Since I'm using VirtualBox the only module I'm rebuilding against kernel are: |
37 |
modules="vboxdrv vboxnetflt vboxnetadp vboxpci" |
38 |
+ some Nvidia driver modules. |
39 |
|
40 |
But I've notice when new kernel was building where were a lot of other modules: "M" which I don't use I think. How to find them and disable them? |
41 |
Maybe it will reduce the kernel size. |
42 |
|
43 |
The current (linux-4.9.6-gentoo-r1) kernel size : |
44 |
-rw-r--r-- 1 root root 6.6M Mar 5 10:11 arch/x86/boot/bzImage |
45 |
-rw-r--r-- 1 root root 3.6M Mar 5 10:11 System.map |
46 |
|
47 |
I think when I copied the new kerenl size to /boot it didn't copied correctly as /boot run out of room. |
48 |
What are my other options? |
49 |
|
50 |
I'm using grub-0.97-r16 |
51 |
|
52 |
-- |
53 |
Thelma |