• [gentoo-user] Boot has no space left.

    From =?UTF-8?Q?Guillermo_Garc=c3=ada?=@21:1/5 to All on Mon Jun 27 10:40:02 2022
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dale@21:1/5 to All on Mon Jun 27 12:10:01 2022
    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

    :-)  :-) 

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to All on Mon Jun 27 11:20:43 2022
    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. -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmK5hHsACgkQseqq9sKV ZxmTAxAAxiGIL13oVlKtyMwMgRHpPcxMC2OeX6WAqo7aYwISRbhm1SGmNcBgQ87r wOriLsbp8BZpVvZfkV75D13JfdCLafq3p+yz56oCBAvZxR/qmbfHiQ8CRs46EGJO RXzwYvIv8t2xVXIWdOutjUSckv9Fs4MO7XRh3SoPk2JetAeAh+irwTlWlxeLDuXh 8yEnGpx1fVtoQf+HscQlF2taC/cOt8HwqSiBYyEUsAUo/HV0JmJLtEtvAxWn8SJs 9ZkQ+RivAnk13FRk4CJp4JyMzYvFVAlv1aMDNqVUkTHQ6JLlAyA3xSSBSEFrIrCI l+FbPrVvJkDPjGIiRhmi0HgQsusBPOlEJRNnUgS5+MF3j1rZqH9YtYFFXB9edO8r 71P/bQ+fx0QYRNqw7MtxkiMSTBPdsfemtol3qtZWjEapEShks/r16Tl3hxAtQcqX xW+X3F503fEad2FmcyVpGkvXVDYKif/G+Ynq0IuEakdYyMTUQ8lvAiLpjDGvhGTc GZZ5my068W9tzfe/2QW7lBrthILwUO6ITHAhBmo0tXrnBz50XpXSek5AFlVGf5gF FIY2SA/R9DZLGjGivwndnCkOyUlOxUnHT9dJev9xq5wyICC7d2RWswrwZMRw2Qg4 bdy9luOE+WWywyzGCes5Pnzj8LudSv8OTRMSGq54Av2IzGcYSeY=
    =2Tfq
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From tastytea@21:1/5 to rdalek1967@gmail.com on Mon Jun 27 12:30:01 2022
    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. 😉

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From wkuz@op.pl@21:1/5 to All on Mon Jun 27 19:20:01 2022
    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

    -----BEGIN PGP SIGNATURE-----

    iHUEAREIAB0WIQTD0rOlRXTVQVPxHd4dqSXVhOqGqwUCYrnlZgAKCRAdqSXVhOqG q/n0AP963DoxqtU/GuYXkVy00g+k2yXx34g4wVVm2P+UMR3aSgD/TAovdRSNZx1U mK36Jsb49mQ6Hi3rLQQMJG0jY7H3z9s=
    =tB5Y
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Julien Roy@21:1/5 to All on Thu Jun 30 18:50:01 2022
    This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------fhRj5nLtODrNk0GW5eYPZlIj
    Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64

    T24gNi8zMC8yMiAxMjoxOSwgR3VpbGxlcm1vIEdhcmPDrWEgd3JvdGU6DQo+IEhlbGxvIGd1 eXMsDQo+IA0KPiBTb3JyeSBmb3Igbm90IHJlcGx5aW5nIHRoZSBmaXJzdCBlbWFpbCBpIHNl bnQsIGhvd2V2ZXIgaSBnb3QgY292aWQgYW5kIGkgDQo+IGNhbm5vdCByZXBseSB5b3UsIGkg Zm9yZ290IHRoZSBvcmlnaW5hbCBtYWlsIGkgc2VudCBoZXJlIHNvIGkgbWFrZSBhIG5ldyAN Cj4gb25lLg0KDQpJZiB5b3UgZG9uJ3QgaGF2ZSB0aGUgcmVwbGllcyBpbiB5b3VyIG1haWxi b3gsIHlvdSBjYW4gZmluZCB0aGVtIG9uIHRoZSANCm1haWxpbmcgbGlzdCBhcmNoaXZlOiAN Cmh0dHBzOi8vYXJjaGl2ZXMuZ2VudG9vLm9yZy9nZW50b28tdXNlci9tZXNzYWdlL2JhOTI1 NzNhMzAxYjQ4MjE4NGNkZmU3OTA3MDQxMTBjDQoNClJlZ2FyZHMsDQpKdWxpZW4NCg==

    --------------fhRj5nLtODrNk0GW5eYPZlIj--

    -----BEGIN PGP SIGNATURE-----

    wsB5BAABCAAjFiEEUri1ZrRDZASH+Q0NvvIpdEiEiEIFAmK905wFAwAAAAAACgkQvvIpdEiEiEJs RQf9EMmx6LRN1R8dj8GNx60hvmAAzxheKTlSFbnSAaTstWl8jYQY4EGCrojGkLWDKJu6xRQjFv65 E6M2QE5552hz8ziRLbJy8DalEKohdkkttKFd7MACw4/9MW0i41CXptPzxf2OWgZ3reKlqzXt95oF N4flu7dg1MASSPgZLMuHO6M8qte8hl/n3rMc5Vk5hWYPShjYdF1G3QH+qRynYCOePh1CcdNKnhnP 3+txTUvVdQq8MewJFxadom7iqSF1kgyzmC3YX2VHLEAgtmotTmVsIHuRuLSC3pPD06Yeny6igIdX Qs0FkfEb+0bspXaZmvSN8wBHV6CV3HsKkJWdkgngpg==
    =KyXC
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Wol@21:1/5 to All on Fri Jul 15 01:20:01 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From tastytea@21:1/5 to antlists@youngman.org.uk on Fri Jul 15 01:40:01 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dale@21:1/5 to Wol on Fri Jul 15 01:50:01 2022
    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

    :-)  :-) 

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Wol@21:1/5 to Dale on Fri Jul 15 01:30:01 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)