Discover Centmin Mod today
Register Now

Sysadmin Grub Help?

Discussion in 'System Administration' started by Jimmy, Sep 15, 2017.

  1. rdan

    rdan Premium Member Premium Member

    4,444
    1,069
    113
    May 25, 2014
    Ratings:
    +1,561
    Local Time:
    5:22 PM
    Mainline
    10.2
    Different server with same specs.
    First reboot since August 2017.
     
    • Informative Informative x 1
  2. eva2000

    eva2000 Administrator Staff Member

    37,710
    8,254
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,710
    Local Time:
    7:22 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Ah I see :)
     
  3. rdan

    rdan Premium Member Premium Member

    4,444
    1,069
    113
    May 25, 2014
    Ratings:
    +1,561
    Local Time:
    5:22 PM
    Mainline
    10.2
    Do you guys have any idea about this?
    upload_2019-1-21_3-56-55.png


    Grub is missing :/
    upload_2019-1-21_3-58-39.png
     
  4. rdan

    rdan Premium Member Premium Member

    4,444
    1,069
    113
    May 25, 2014
    Ratings:
    +1,561
    Local Time:
    5:22 PM
    Mainline
    10.2
    Will it be fix by copying all files from
    /usr/lib/grub/x86_64-efi/ to
    /boot/grub2 ?

    But I can't CP though on grub console.
     
  5. rdan

    rdan Premium Member Premium Member

    4,444
    1,069
    113
    May 25, 2014
    Ratings:
    +1,561
    Local Time:
    5:22 PM
    Mainline
    10.2
    I boot on rescue mode, then mounted
    mount /dev/md3 to /mnt/
    I can now copy files on this console?

    /mnt/usr/lib/grub/x86_64-efi/
    to
    /mnt/boot/grub2 ?
     
  6. rdan

    rdan Premium Member Premium Member

    4,444
    1,069
    113
    May 25, 2014
    Ratings:
    +1,561
    Local Time:
    5:22 PM
    Mainline
    10.2
    Done this, I did successfully executed this command:
    But still after reboot, stuck on grub console.

    Not sure what else I need to do :/
     
  7. rdan

    rdan Premium Member Premium Member

    4,444
    1,069
    113
    May 25, 2014
    Ratings:
    +1,561
    Local Time:
    5:22 PM
    Mainline
    10.2
    [email protected]:~# sudo mount /dev/md3 /mnt
    [email protected]:~# sudo grub-install --boot-directory=/mnt /dev/md
    md/ md2 md3
    [email protected]:~# sudo grub-install --boot-directory=/mnt /dev/md3
    Installing for x86_64-efi platform.
    grub-install: error: cannot find EFI directory.
     
  8. pamamolf

    pamamolf Premium Member Premium Member

    3,156
    304
    83
    May 31, 2014
    Ratings:
    +547
    Local Time:
    11:22 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    From grub run:

    Code:
    ls
    you will see something like this:

    (md/md3) (md/md2) (hd0)

    then run:

    Code:
    ls (md/md2)
    or
    ls (md/md2)/
    just to veryify that md2 is the main disk by finding the folder /home

    If md2 is the main disk then run:

    Code:
    set prefix=(md/md2)/boot/grub2
    set root=(md/md2)
    insmod linux
    normal
    reboot the server after that

    Then it should boot...

    And then run:

    Code:
    yum reinstall grub2-efi shim
    grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
    reboot
     
  9. rdan

    rdan Premium Member Premium Member

    4,444
    1,069
    113
    May 25, 2014
    Ratings:
    +1,561
    Local Time:
    5:22 PM
    Mainline
    10.2
    That is not working with me.
    For some reason /boot/ is empty :/
     
..