public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Boot has no space left.
@ 2022-06-27  8:35 Guillermo García
  2022-06-27 10:03 ` Dale
  2022-06-27 17:14 ` wkuz
  0 siblings, 2 replies; 15+ messages in thread
From: Guillermo García @ 2022-06-27  8:35 UTC (permalink / raw
  To: gentoo-user

Hello,

I was updating my gentoo install, and now it says that /boot has 0 
bytes, however i don't know why since i never save anything in that folder.

Any idea on what can i do?

Thanks.



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Boot has no space left.
  2022-06-27  8:35 [gentoo-user] Boot has no space left Guillermo García
@ 2022-06-27 10:03 ` Dale
  2022-06-27 10:20   ` Michael
  2022-06-27 10:26   ` tastytea
  2022-06-27 17:14 ` wkuz
  1 sibling, 2 replies; 15+ messages in thread
From: Dale @ 2022-06-27 10:03 UTC (permalink / raw
  To: gentoo-user

Guillermo García wrote:
> Hello,
>
> I was updating my gentoo install, and now it says that /boot has 0
> bytes, however i don't know why since i never save anything in that
> folder.
>
> Any idea on what can i do?
>
> Thanks.
>
>
>


I'd start by doing this:

du -shc /boot/* | sort -h

That will show the size of files in /boot and sort them from smallest to
largest. It could be that you have a large number of kernels and maybe
init thingys in there.  If so, some house cleaning may be required. 

Dale

:-)  :-) 


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Boot has no space left.
  2022-06-27 10:03 ` Dale
@ 2022-06-27 10:20   ` Michael
  2022-06-27 10:26   ` tastytea
  1 sibling, 0 replies; 15+ messages in thread
From: Michael @ 2022-06-27 10:20 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 929 bytes --]

On Monday, 27 June 2022 11:03:51 BST Dale wrote:
> Guillermo García wrote:
> > Hello,
> > 
> > I was updating my gentoo install, and now it says that /boot has 0
> > bytes, however i don't know why since i never save anything in that
> > folder.
> > 
> > Any idea on what can i do?
> > 
> > Thanks.
> 
> I'd start by doing this:
> 
> du -shc /boot/* | sort -h
> 
> That will show the size of files in /boot and sort them from smallest to
> largest. It could be that you have a large number of kernels and maybe
> init thingys in there.  If so, some house cleaning may be required. 
> 
> Dale
> 
> :-)  :-) 

Also check the output of mount, or findmnt, to determine if /boot is the 
mountpoint of a partition and if it is currently mounted or not.

The /boot directory is typically where the boot manager files are installed, as 
well as the kernel & initrd images, kernel config and System.map files.

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Boot has no space left.
  2022-06-27 10:03 ` Dale
  2022-06-27 10:20   ` Michael
@ 2022-06-27 10:26   ` tastytea
  1 sibling, 0 replies; 15+ messages in thread
From: tastytea @ 2022-06-27 10:26 UTC (permalink / raw
  To: gentoo-user

On 2022-06-27 05:03-0500 Dale <rdalek1967@gmail.com> wrote:

> Guillermo García wrote:
> > Hello,
> >
> > I was updating my gentoo install, and now it says that /boot has 0
> > bytes, however i don't know why since i never save anything in that
> > folder.
> >
> > Any idea on what can i do?
> >
> > Thanks.
> >
> >
> >  
> 
> 
> I'd start by doing this:
> 
> du -shc /boot/* | sort -h
> 
> That will show the size of files in /boot and sort them from smallest
> to largest. It could be that you have a large number of kernels and
> maybe init thingys in there.  If so, some house cleaning may be
> required. 

app-admin/eclean-kernel can help with automating the house cleaning. 😉


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Boot has no space left.
  2022-06-27  8:35 [gentoo-user] Boot has no space left Guillermo García
  2022-06-27 10:03 ` Dale
@ 2022-06-27 17:14 ` wkuz
  1 sibling, 0 replies; 15+ messages in thread
From: wkuz @ 2022-06-27 17:14 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 589 bytes --]

Dnia 2022-06-27, o godz. 10:35:49
Guillermo García <guillermo18barresiones@gmail.com> napisał(a):

> Hello,
> 
> I was updating my gentoo install, and now it says that /boot has 0 
> bytes, however i don't know why since i never save anything in that
> folder.
> 
> Any idea on what can i do?
> 
> Thanks.
> 
> 

Hello,

Check if there are old kernels (posibly along with initramfs if you use
them). After a while (especially if your /boot partition is not that
big or you use testing kernels) thay can add up to quite some
megabytes.

Hope that helps

-- 
xWK

[-- Attachment #2: Podpis cyfrowy OpenPGP --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [gentoo-user] Boot has no space left.
@ 2022-06-30 16:19 Guillermo García
  2022-06-30 16:29 ` Dale
  2022-06-30 16:47 ` Julien Roy
  0 siblings, 2 replies; 15+ messages in thread
From: Guillermo García @ 2022-06-30 16:19 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 333 bytes --]

Hello guys,

Sorry for not replying the first email i sent, however i got covid and i 
cannot reply you, i forgot the original mail i sent here so i make a new 
one.

This is the same as my previous one, boot has no space left, here you 
have a df -h output inside /boot:

Again, thank you all for your help :)

Regards,

Guillermo.

[-- Attachment #2.1: Type: text/html, Size: 611 bytes --]

[-- Attachment #2.2: 5TvgMnMN8YKobYAz.png --]
[-- Type: image/png, Size: 37151 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Boot has no space left.
  2022-06-30 16:19 Guillermo García
@ 2022-06-30 16:29 ` Dale
  2022-06-30 16:47 ` Julien Roy
  1 sibling, 0 replies; 15+ messages in thread
From: Dale @ 2022-06-30 16:29 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 523 bytes --]

Guillermo García wrote:
>
> Hello guys,
>
> Sorry for not replying the first email i sent, however i got covid and
> i cannot reply you, i forgot the original mail i sent here so i make a
> new one.
>
> This is the same as my previous one, boot has no space left, here you
> have a df -h output inside /boot:
>
> Again, thank you all for your help :)
>
> Regards,
>
> Guillermo.
>


Now do a ls -al for /boot.  There has to be something in there taking up
all that space.  ;-)

Glad you feeling better.

Dale

:-)  :-)

[-- Attachment #2.1: Type: text/html, Size: 1236 bytes --]

[-- Attachment #2.2: 5TvgMnMN8YKobYAz.png --]
[-- Type: image/png, Size: 37151 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Boot has no space left.
  2022-06-30 16:19 Guillermo García
  2022-06-30 16:29 ` Dale
@ 2022-06-30 16:47 ` Julien Roy
  2022-06-30 17:11   ` Guillermo
  1 sibling, 1 reply; 15+ messages in thread
From: Julien Roy @ 2022-06-30 16:47 UTC (permalink / raw
  To: gentoo-user


[-- Attachment #1.1: Type: text/plain, Size: 427 bytes --]

On 6/30/22 12:19, Guillermo García wrote:
> Hello guys,
> 
> Sorry for not replying the first email i sent, however i got covid and i 
> cannot reply you, i forgot the original mail i sent here so i make a new 
> one.

If you don't have the replies in your mailbox, you can find them on the 
mailing list archive: 
https://archives.gentoo.org/gentoo-user/message/ba92573a301b482184cdfe790704110c

Regards,
Julien

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Boot has no space left.
  2022-06-30 16:47 ` Julien Roy
@ 2022-06-30 17:11   ` Guillermo
  0 siblings, 0 replies; 15+ messages in thread
From: Guillermo @ 2022-06-30 17:11 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 470 bytes --]

On 30/06/2022 18:47, Julien Roy wrote:
> On 6/30/22 12:19, Guillermo García wrote:
>> Hello guys,
>>
>> Sorry for not replying the first email i sent, however i got covid 
>> and i cannot reply you, i forgot the original mail i sent here so i 
>> make a new one.
>
> If you don't have the replies in your mailbox, you can find them on 
> the mailing list archive: 
> https://archives.gentoo.org/gentoo-user/message/ba92573a301b482184cdfe790704110c
>
> Regards,
> Julien

[-- Attachment #2.1: Type: text/html, Size: 1116 bytes --]

[-- Attachment #2.2: yztDtnmgSOkrP3kJ.png --]
[-- Type: image/png, Size: 178969 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [gentoo-user] Boot has no space left.
@ 2022-07-14 22:51 Guillermo García
  2022-07-14 23:01 ` Dale
  2022-07-14 23:16 ` Wol
  0 siblings, 2 replies; 15+ messages in thread
From: Guillermo García @ 2022-07-14 22:51 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 478 bytes --]

Hello again guys, how are you? I hope you're fine.

I remember someone told me a program to use to remove old kernels in 
order to get more space on /boot, i tried to search the original message 
that the guy sent me trough this list, but i cannot find it.

Here's a screenshot of my /boot folder:

I guess the kernel version i use is this one:

Could someone tell me a method to remove the old kernels in order to get 
more space in /boot?

Thank you, and regards,

Guillermo.

[-- Attachment #2.1: Type: text/html, Size: 849 bytes --]

[-- Attachment #2.2: Y5QHKWQJPz2Irged.png --]
[-- Type: image/png, Size: 42810 bytes --]

[-- Attachment #2.3: zMUN0ouG00IpWXHG.png --]
[-- Type: image/png, Size: 5065 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Boot has no space left.
  2022-07-14 22:51 Guillermo García
@ 2022-07-14 23:01 ` Dale
  2022-07-14 23:21   ` Wol
  2022-07-14 23:16 ` Wol
  1 sibling, 1 reply; 15+ messages in thread
From: Dale @ 2022-07-14 23:01 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 736 bytes --]

Guillermo García wrote:
>
> Hello again guys, how are you? I hope you're fine.
>
> I remember someone told me a program to use to remove old kernels in
> order to get more space on /boot, i tried to search the original
> message that the guy sent me trough this list, but i cannot find it.
>
> Here's a screenshot of my /boot folder:
>
> I guess the kernel version i use is this one:
>
> Could someone tell me a method to remove the old kernels in order to
> get more space in /boot?
>
> Thank you, and regards,
>
> Guillermo.
>


I found it for you.  The package is app-admin/eclean-kernel.  I think
there is a wiki page on the Gentoo website for that.  I recall it being
pretty easy to use. 

Hope that helps.

Dale

:-)  :-) 

[-- Attachment #2.1: Type: text/html, Size: 1571 bytes --]

[-- Attachment #2.2: Y5QHKWQJPz2Irged.png --]
[-- Type: image/png, Size: 42810 bytes --]

[-- Attachment #2.3: zMUN0ouG00IpWXHG.png --]
[-- Type: image/png, Size: 5065 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Boot has no space left.
  2022-07-14 22:51 Guillermo García
  2022-07-14 23:01 ` Dale
@ 2022-07-14 23:16 ` Wol
  1 sibling, 0 replies; 15+ messages in thread
From: Wol @ 2022-07-14 23:16 UTC (permalink / raw
  To: gentoo-user

On 14/07/2022 23:51, Guillermo García wrote:
> Hello again guys, how are you? I hope you're fine.
> 
> I remember someone told me a program to use to remove old kernels in 
> order to get more space on /boot, i tried to search the original message 
> that the guy sent me trough this list, but i cannot find it.
> 
> Here's a screenshot of my /boot folder:
> 
> I guess the kernel version i use is this one:
> 
> Could someone tell me a method to remove the old kernels in order to get 
> more space in /boot?
> 
What kernels are in your grub.cfg / boot menu. If they're not in there, 
just delete them from /boot.

It's normal to have your latest kernel in the boot menu, and one backup 
kernel.

So, for every kernel NOT in your boot list, cd into /boot and, as root, 
do "rm -i *x.y.z*" where x.y.z is the kernel version you want to get rid 
of. It'll query what files it's going to delete, but so long as it looks 
sensible, say "y" and get rid of it.

It looks like you've got seven kernels there, so five sevenths space 
freed up is quite a lot ...

Cheers,
Wol


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Boot has no space left.
  2022-07-14 23:01 ` Dale
@ 2022-07-14 23:21   ` Wol
  2022-07-14 23:32     ` tastytea
  2022-07-14 23:44     ` Dale
  0 siblings, 2 replies; 15+ messages in thread
From: Wol @ 2022-07-14 23:21 UTC (permalink / raw
  To: gentoo-user

On 15/07/2022 00:01, Dale wrote:
> Guillermo García wrote:
>>
>> Hello again guys, how are you? I hope you're fine.
>>
>> I remember someone told me a program to use to remove old kernels in 
>> order to get more space on /boot, i tried to search the original 
>> message that the guy sent me trough this list, but i cannot find it.
>>
>> Here's a screenshot of my /boot folder:
>>
>> I guess the kernel version i use is this one:
>>
>> Could someone tell me a method to remove the old kernels in order to 
>> get more space in /boot?
>>
>> Thank you, and regards,
>>
>> Guillermo.
>>
> 
> 
> I found it for you.  The package is app-admin/eclean-kernel.  I think 
> there is a wiki page on the Gentoo website for that.  I recall it being 
> pretty easy to use.
> 
Bear in mind, if the OP is running 5.15.10, that's the second oldest 
kernel in the list. If he's got five newer kernels there, is 
eclean-kernel going to assume the live kernel is out-of-date and delete 
it? NOT a good idea.

The OP needs to make sure that both 5.15.41 and 5.15.48 are in his boot 
menu, AND that they both work, before risking clearing out the rest ...

Cheers,
Wol


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Boot has no space left.
  2022-07-14 23:21   ` Wol
@ 2022-07-14 23:32     ` tastytea
  2022-07-14 23:44     ` Dale
  1 sibling, 0 replies; 15+ messages in thread
From: tastytea @ 2022-07-14 23:32 UTC (permalink / raw
  To: gentoo-user

On 2022-07-15 00:21+0100 Wol <antlists@youngman.org.uk> wrote:

> On 15/07/2022 00:01, Dale wrote:
> > Guillermo García wrote:  
> >>
> >> Hello again guys, how are you? I hope you're fine.
> >>
> >> I remember someone told me a program to use to remove old kernels
> >> in order to get more space on /boot, i tried to search the
> >> original message that the guy sent me trough this list, but i
> >> cannot find it.
> >>
> >> Here's a screenshot of my /boot folder:
> >>
> >> I guess the kernel version i use is this one:
> >>
> >> Could someone tell me a method to remove the old kernels in order
> >> to get more space in /boot?
> >>
> >> Thank you, and regards,
> >>
> >> Guillermo.
> >>  
> > 
> > 
> > I found it for you.  The package is app-admin/eclean-kernel.  I
> > think there is a wiki page on the Gentoo website for that.  I
> > recall it being pretty easy to use.
> >   
> Bear in mind, if the OP is running 5.15.10, that's the second oldest 
> kernel in the list. If he's got five newer kernels there, is 
> eclean-kernel going to assume the live kernel is out-of-date and
> delete it? NOT a good idea.
> 
> The OP needs to make sure that both 5.15.41 and 5.15.48 are in his
> boot menu, AND that they both work, before risking clearing out the
> rest ...

The current kernel is never removed by eclean-kernel.

> The kernel choice algorithm is quite simple:
> 
> 1. If the kernel is currently used, don't remove it;
> 2. If the kernel is referenced by a bootloader, don't remove it
>    (unless ``--destructive``);
> 3. If auxiliary files do not map to existing kernel, remove them;
> 4. If ``--all`` is used, remove the kernel;
> 5. If kernel is not within *N* newest kernels (where *N* is the
> argument to ``-n``), remove it.

<https://github.com/mgorny/eclean-kernel/blob/master/README.rst>

Since the grub boot menu includes all kernels in /boot by default as
far as i know, it is probably necessary to run eclean-kernel with
--destructive and re-generate the boot menu afterwards.

Kind regards, tastytea


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Boot has no space left.
  2022-07-14 23:21   ` Wol
  2022-07-14 23:32     ` tastytea
@ 2022-07-14 23:44     ` Dale
  1 sibling, 0 replies; 15+ messages in thread
From: Dale @ 2022-07-14 23:44 UTC (permalink / raw
  To: gentoo-user

Wol wrote:
> On 15/07/2022 00:01, Dale wrote:
>> Guillermo García wrote:
>>>
>>> Hello again guys, how are you? I hope you're fine.
>>>
>>> I remember someone told me a program to use to remove old kernels in
>>> order to get more space on /boot, i tried to search the original
>>> message that the guy sent me trough this list, but i cannot find it.
>>>
>>> Here's a screenshot of my /boot folder:
>>>
>>> I guess the kernel version i use is this one:
>>>
>>> Could someone tell me a method to remove the old kernels in order to
>>> get more space in /boot?
>>>
>>> Thank you, and regards,
>>>
>>> Guillermo.
>>>
>>
>>
>> I found it for you.  The package is app-admin/eclean-kernel.  I think
>> there is a wiki page on the Gentoo website for that.  I recall it
>> being pretty easy to use.
>>
> Bear in mind, if the OP is running 5.15.10, that's the second oldest
> kernel in the list. If he's got five newer kernels there, is
> eclean-kernel going to assume the live kernel is out-of-date and
> delete it? NOT a good idea.
>
> The OP needs to make sure that both 5.15.41 and 5.15.48 are in his
> boot menu, AND that they both work, before risking clearing out the
> rest ...
>
> Cheers,
> Wol
>
> .
>


I've never used the tool.  I clean mine manually.  That way I know what
is going on.  Right now, I can't get a new kernel to boot cleanly.  I'm
stuck with a older one but it works.  I've tried two different version
but still fails with something.  Maybe next time. 

Dale

:-)  :-) 


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2022-07-14 23:45 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-27  8:35 [gentoo-user] Boot has no space left Guillermo García
2022-06-27 10:03 ` Dale
2022-06-27 10:20   ` Michael
2022-06-27 10:26   ` tastytea
2022-06-27 17:14 ` wkuz
  -- strict thread matches above, loose matches on Subject: below --
2022-06-30 16:19 Guillermo García
2022-06-30 16:29 ` Dale
2022-06-30 16:47 ` Julien Roy
2022-06-30 17:11   ` Guillermo
2022-07-14 22:51 Guillermo García
2022-07-14 23:01 ` Dale
2022-07-14 23:21   ` Wol
2022-07-14 23:32     ` tastytea
2022-07-14 23:44     ` Dale
2022-07-14 23:16 ` Wol

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox