Learn about Centmin Mod LEMP Stack today
Register Now

Sysadmin Grub Help?

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

  1. Jimmy

    Jimmy Well-Known Member

    1,762
    381
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +968
    Local Time:
    11:41 AM
    1.17.x
    MariaDB 10.3.x
    I'm not sure. None listed where it was mounted. Only the problem with the grub not working.

     
  2. rdan

    rdan Well-Known Member

    5,426
    1,389
    113
    May 25, 2014
    Ratings:
    +2,172
    Local Time:
    12:41 AM
    Mainline
    10.2
    Same problem for me now, Don't know how to run this on Rescue Mode :(.
     
  3. Jimmy

    Jimmy Well-Known Member

    1,762
    381
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +968
    Local Time:
    11:41 AM
    1.17.x
    MariaDB 10.3.x
    Are you booting to the grub prompt?
     
  4. rdan

    rdan Well-Known Member

    5,426
    1,389
    113
    May 25, 2014
    Ratings:
    +2,172
    Local Time:
    12:41 AM
    Mainline
    10.2
    Yes same error.
     
  5. Jimmy

    Jimmy Well-Known Member

    1,762
    381
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +968
    Local Time:
    11:41 AM
    1.17.x
    MariaDB 10.3.x
    First you have to find the drive with your OS.
    Code:
    grub> ls
    Then you can boot into the server using:
    Code:
    grub> set prefix=(md/md2)/boot/grub2
    grub> set root=(md/md2)
    grub> insmod linux
    grub> normal
    Where md/md2 is the drive with your OS.
     
  6. Jimmy

    Jimmy Well-Known Member

    1,762
    381
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +968
    Local Time:
    11:41 AM
    1.17.x
    MariaDB 10.3.x
    Once the server boots, run:
    Code:
    # yum reinstall grub2-efi shim
    # grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
    # reboot
    
     
  7. rdan

    rdan Well-Known Member

    5,426
    1,389
    113
    May 25, 2014
    Ratings:
    +2,172
    Local Time:
    12:41 AM
    Mainline
    10.2
    This is all via IPMI Console right?
    Still Installing Java to have access to it.
    Thanks!
     
  8. Jimmy

    Jimmy Well-Known Member

    1,762
    381
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +968
    Local Time:
    11:41 AM
    1.17.x
    MariaDB 10.3.x
    Yea, do it all in the IPMI.

    I updated my post 2 above, so check that out.
     
  9. rdan

    rdan Well-Known Member

    5,426
    1,389
    113
    May 25, 2014
    Ratings:
    +2,172
    Local Time:
    12:41 AM
    Mainline
    10.2
    Confuse on the next command:
    upload_2017-9-27_3-31-58.png
     
  10. Jimmy

    Jimmy Well-Known Member

    1,762
    381
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +968
    Local Time:
    11:41 AM
    1.17.x
    MariaDB 10.3.x
    Go through each one until you find the linux file system.
     
  11. Jimmy

    Jimmy Well-Known Member

    1,762
    381
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +968
    Local Time:
    11:41 AM
    1.17.x
    MariaDB 10.3.x
    It's probably md/md2 or md/md3
     
  12. rdan

    rdan Well-Known Member

    5,426
    1,389
    113
    May 25, 2014
    Ratings:
    +2,172
    Local Time:
    12:41 AM
    Mainline
    10.2
    Different on mine.
    upload_2017-9-27_3-35-9.png
     
  13. rdan

    rdan Well-Known Member

    5,426
    1,389
    113
    May 25, 2014
    Ratings:
    +2,172
    Local Time:
    12:41 AM
    Mainline
    10.2
    This is it right?
    upload_2017-9-27_3-36-54.png
     
  14. Jimmy

    Jimmy Well-Known Member

    1,762
    381
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +968
    Local Time:
    11:41 AM
    1.17.x
    MariaDB 10.3.x
    You know when you have the right drive when you see the home, root, sys, etc. folders.

    Try

    Code:
    # ls (md/md2)
     
  15. Jimmy

    Jimmy Well-Known Member

    1,762
    381
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +968
    Local Time:
    11:41 AM
    1.17.x
    MariaDB 10.3.x
  16. Jimmy

    Jimmy Well-Known Member

    1,762
    381
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +968
    Local Time:
    11:41 AM
    1.17.x
    MariaDB 10.3.x
    Now run this:
    Code:
    grub> set prefix=(md/md2)/boot/grub2
    grub> set root=(md/md2)
    grub> insmod linux
    grub> normal
     
  17. rdan

    rdan Well-Known Member

    5,426
    1,389
    113
    May 25, 2014
    Ratings:
    +2,172
    Local Time:
    12:41 AM
    Mainline
    10.2
  18. Jimmy

    Jimmy Well-Known Member

    1,762
    381
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +968
    Local Time:
    11:41 AM
    1.17.x
    MariaDB 10.3.x
    Yes, run that when you're into the system.
     
  19. rdan

    rdan Well-Known Member

    5,426
    1,389
    113
    May 25, 2014
    Ratings:
    +2,172
    Local Time:
    12:41 AM
    Mainline
    10.2
    Running this now, I hope it all goes fine :-(.