• [gentoo-user] /boot/grub and grub2 directories

    From Dale@21:1/5 to All on Sat Dec 4 06:30:01 2021
    Howdy,

    I was cleaning out my /boot directory.  It's on its own partition and I
    remove outdated kernels and configs etc every once in a while. I was
    noticing that I have two grub directories.  Based on time stamps, I
    think I can delete the plain grub directory and I'm pretty much certain
    grub2 is the current and active grub directory.  Is it safe to remove
    the old grub directory?  Nothing in it has been touched that the time
    stamps show in a long while.  The grub2 directory was when I did my last kernel update. 

    I just want to be certain before I remove the directory.  More info below.


    ls -al /boot/
    drwxr-xr-x  6 root root    17408 Jun 18  2019 grub
    drwxr-xr-x  6 root root     1024 Nov 30 10:55 grub2


    By the way, I had the old grub installed on here ages ago.  Can't recall
    when I switched to the new, much larger, grub2. 

    Thanks.

    Dale

    :-)  :-) 

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Neil Bothwick@21:1/5 to Dale on Sat Dec 4 08:40:01 2021
    On Fri, 3 Dec 2021 23:26:29 -0600, Dale wrote:

    I was cleaning out my /boot directory.  It's on its own partition and I remove outdated kernels and configs etc every once in a while. I was
    noticing that I have two grub directories.  Based on time stamps, I
    think I can delete the plain grub directory and I'm pretty much certain
    grub2 is the current and active grub directory.  Is it safe to remove
    the old grub directory?  Nothing in it has been touched that the time
    stamps show in a long while.  The grub2 directory was when I did my last kernel update. 

    I just want to be certain before I remove the directory.  More info
    below.

    Yes, but to be on the safe side, rename it rather than removing it. GRUB
    will look in either /boot/grub or /boot/grub2, from your setup it looks
    like it goes for grub2 first.


    --
    Neil Bothwick

    All right, set phasers to deep fat fry!

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

    iQIzBAEBCAAdFiEE8k9T/rX16EJxEKG692eFu0QSMJgFAmGrGwkACgkQ92eFu0QS MJh5FBAAtWhO0N4SpfqMGp/VK15Z+o8tFfXowjFaob0joIxlY6zr411C66ph36Ej IwHuV8NvUUrTvdRIInhboGwPJEA1MFfBI9h1Gh7HqSoxbqg4vUYFO7hDLnesO7X4 uWPVKobXJjig3COCyf5gWZFhjQXlZ1kPnyJyD8BdmOpMI12vOPYqKbqsZu0Bv2dA 3hPHirwqQ5g41gqGN97Cb2BaxsmWec9wrhBKArVLmRgkFlg9rKPdCj0RvLb27uTX bMuPFMRpaA3bCkqKiCNVgp/Ka3XBa5tJG//5jDnXJ6wRIpy5o0FrXEXXyhphcrOG lts+b8AHoen+QPlUgZqIpG2DqyF1bFZFh4gceGaiXUD0ZGxOEfhdOl7SU7pciqCs 1crwTxgJrp+spIl44jvSG/uQBJmWRG9zY/suNj5sox75ysVaHxiNwct/CdUmSniM n76Ac599kl6y9ra0/drI3Btg7KAGEFn/Gjx4K+daJv4ZPJ41xG0gQCv5u8SKqPwU 0t1u1gErUj+gK/sH6aTRSpDCxbh/NHppTlKJjyeix7novs+MrjyafBt7Uw8xPyiR qwqSgI4FLs84gJHac+dZELEd0Ul6L6mw6MyYch8kZaP+pQxCL7L+NJrW7fnfJGMC WdLQkDPVf+lIZ6NsjLgkgLtH+fOct732wUgSBvhOTlEx2ivLyV4=
    =NCwP
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dale@21:1/5 to Neil Bothwick on Sat Dec 4 17:00:02 2021
    Neil Bothwick wrote:
    On Fri, 3 Dec 2021 23:26:29 -0600, Dale wrote:

    I was cleaning out my /boot directory.  It's on its own partition and I
    remove outdated kernels and configs etc every once in a while. I was
    noticing that I have two grub directories.  Based on time stamps, I
    think I can delete the plain grub directory and I'm pretty much certain
    grub2 is the current and active grub directory.  Is it safe to remove
    the old grub directory?  Nothing in it has been touched that the time
    stamps show in a long while.  The grub2 directory was when I did my last
    kernel update. 

    I just want to be certain before I remove the directory.  More info
    below.
    Yes, but to be on the safe side, rename it rather than removing it. GRUB
    will look in either /boot/grub or /boot/grub2, from your setup it looks
    like it goes for grub2 first.




    That's a good idea.  I used equery f grub to see what grub installed
    where but it showed nothing at all for /boot.  I figure grub-install
    puts all the needed files in /boot but I wasn't sure how to get it to
    list where it put them.  The file isn't a script so I can't just peek
    into the file and see what it does. 

    While I'm at it.  When the grub package upgrades, should I reinstall
    with grub-install to update what is on the drive or is it safe to just
    leave it as is?  I seem to recall a upgrade to grub a while back.  It
    just dawned on me that while the package is updated, what is installed
    on the hard drive boot part with grub-install is still the original from
    ages ago when I first built this rig.  Thoughts??

    Dale

    :-)  :-) 

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Wols Lists@21:1/5 to Dale on Sat Dec 4 18:50:02 2021
    On 04/12/2021 15:53, Dale wrote:
    While I'm at it.  When the grub package upgrades, should I reinstall
    with grub-install to update what is on the drive or is it safe to just
    leave it as is?  I seem to recall a upgrade to grub a while back.  It
    just dawned on me that while the package is updated, what is installed
    on the hard drive boot part with grub-install is still the original from
    ages ago when I first built this rig.  Thoughts??

    I don't think I've ever updated what's in the mbr. It doesn't really
    matter in that it just hands over to the real linux and root. I think it
    would be rather hard to compromise, and anyway if anything has got so
    far as to tamper with your boot, I think the game is over anyway.

    Most changes of any consequence will be to the user-space code anyway,
    not the actual boot stuff.

    Cheers,
    Wol

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dale@21:1/5 to Wols Lists on Sat Dec 4 19:00:02 2021
    Wols Lists wrote:
    On 04/12/2021 15:53, Dale wrote:
    While I'm at it.  When the grub package upgrades, should I reinstall
    with grub-install to update what is on the drive or is it safe to just
    leave it as is?  I seem to recall a upgrade to grub a while back.  It
    just dawned on me that while the package is updated, what is installed
    on the hard drive boot part with grub-install is still the original from
    ages ago when I first built this rig.  Thoughts??

    I don't think I've ever updated what's in the mbr. It doesn't really
    matter in that it just hands over to the real linux and root. I think
    it would be rather hard to compromise, and anyway if anything has got
    so far as to tamper with your boot, I think the game is over anyway.

    Most changes of any consequence will be to the user-space code anyway,
    not the actual boot stuff.

    Cheers,
    Wol




    That info is very helpful.  I sort of figured that if there was a major change, we would see some sort of message about needing to reinstall
    before rebooting. 

    Thanks much.

    Dale

    :-)  :-) 

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