1 |
On Sunday 05 Mar 2017 16:57:11 Dale wrote: |
2 |
> thelma@×××××××××××.com wrote: |
3 |
> > On 03/05/2017 02:33 PM, thelma@×××××××××××.com wrote: |
4 |
> >> After upgrading my machine. I rebooted, everything went as planned. |
5 |
> >> So I decided to upgrade to a newer kernel. I was using: |
6 |
> >> linux-3.10.7-gentoo-r1 |
7 |
> >> |
8 |
> >> and decided to switch to: |
9 |
> >> linux-4.9.6-gentoo-r1 |
10 |
> >> |
11 |
> >> I've done kernel upgrade many, many times so it was a routine procedure. |
12 |
> >> When I re-booted the last thing on the screen were letter: |
13 |
> >> |
14 |
> >> "GRUB" and blank screen, not even a kernel selection. |
15 |
> >> I scramble, boot strap the system and copied two file in /boot/ |
16 |
> >> kernel-old --> kernel-current |
17 |
> >> System.map-old --> System.map-current |
18 |
> >> |
19 |
> >> I was under impression that something is wrong with the current (newest |
20 |
> >> kernel). But it seems to me I run out of room on the /boot partition.> |
21 |
> > [snip] |
22 |
> > |
23 |
> >> -rw-r--r-- 1 root root 2.9M Mar 5 11:03 System.map-current |
24 |
> >> -rw-r--r-- 1 root root 2.9M Mar 5 10:12 System.map-old |
25 |
> > |
26 |
> > [snip] |
27 |
> > |
28 |
> > Can I remove System.map files from /boot partition? |
29 |
> > I don't have any reference to these files in grub.conf. |
30 |
> > |
31 |
> > default 0 |
32 |
> > timeout 30 |
33 |
> > splashimage=(hd0,0)/boot/grub/splash.xpm.gz |
34 |
> > |
35 |
> > title Gentoo Current Kernel |
36 |
> > root (hd0,0) |
37 |
> > kernel /boot/kernel-current root=/dev/sda3 vga=normal |
38 |
> > |
39 |
> > title Gentoo Old Kernel |
40 |
> > root (hd0,0) |
41 |
> > kernel /boot/kernel-old root=/dev/sda3 |
42 |
> > |
43 |
> > This would save me almost 6Mb |
44 |
> > |
45 |
> > -- |
46 |
> > Thelma |
47 |
> > |
48 |
> > . |
49 |
> |
50 |
> I'm pretty sure grub uses that file. I've never tested the theory. |
51 |
> |
52 |
> Why such a small /boot? My OS is installed on a fairly small 160GB hard |
53 |
> drive. I made /boot about 400MBs and later wished it was bigger. I |
54 |
> later wanted to put a ISO image there for sysrescue. If I were to set |
55 |
> up a new system now with that same size or larger drive, I'd likely make |
56 |
> /boot 1GB and maybe even 2GBs in size. The amount of space is not that |
57 |
> large compared to the size of the hard drive. If one is pressed to save |
58 |
> space that bad on a system, maybe they need a larger drive?? |
59 |
> |
60 |
> You mentioned following a guide on that size. I have to ask, just how |
61 |
> old was that guide? I looked at the Gentoo install guide, it suggests |
62 |
> 128MBs for /boot, which I think is to small. Whatever guide you were |
63 |
> using, it must be old and need some updating. I'm not sure I'd follow |
64 |
> that one until it was. |
65 |
> |
66 |
> Dale |
67 |
> |
68 |
> :-) :-) |
69 |
|
70 |
Yes, back in the GRUB legacy days boot partition was suggested to be something |
71 |
like 30MB I recall. However, things have moved on and kernels got bigger |
72 |
since then. |
73 |
|
74 |
Despite this, on an old box using GRUB legacy I have 2 kernel images, two |
75 |
System files, two config files. I also have installed memtest, which in an |
76 |
isolinux directory on its own is taking up 11MB. My boot partition is 46MB, |
77 |
but only 33MB is used. If I didn't have memtest installed, then my 2x kernel, |
78 |
System and config files would fit in less than 20MB. |
79 |
|
80 |
Do you have anything else in there you have not accounted for? For example |
81 |
how large is this /boot/grub/splash.xpm.gz of yours? |
82 |
|
83 |
There's different ways you can hack at this problem: |
84 |
|
85 |
1. What Alan said. |
86 |
|
87 |
2. Tar everything out of the whole installation, resize/delete/recreate |
88 |
partitions, move everything back. Not as slow and painful as Alan spoke of. |
89 |
|
90 |
3. Create a new partition at the end of the disk, large enough for boot, after |
91 |
you resize the last partition to free up some space. |
92 |
|
93 |
4. Do not create a new partition for boot, just copy the /boot filesystem into |
94 |
/ and comment out the boot partition from fstab. You'll need to also edit |
95 |
your /boot/grub/grub.conf |
96 |
|
97 |
5. Boot with a LiveCD, delete/move old kernel and/or any unnecessary files, |
98 |
check /boot/grub/grub.conf, reboot. |
99 |
|
100 |
Any of the above will work, but some make more sense than others depending on |
101 |
your use case for this particular installation. |
102 |
-- |
103 |
Regards, |
104 |
Mick |