LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-29-2020, 05:58 PM   #1
moabdelhameed
LQ Newbie
 
Registered: Jan 2020
Posts: 6

Rep: Reputation: Disabled
Server Stuck on grub terminal


After upgrade REHL 6 to 7 and rebooting the server which is implemented on HP Gen9 a grub terminal show up and I can't boot up the os .

Do you have any clue how to solve this issue without loss the data which was implemented on this server.

grub> reboot
HP ProLiant System BIOS P89 v2.00 (12/27/2015)
(C) Copyright 1982 - 2015 Hewlett Packard Enterprise Development LP
Early system initialization, please wait...

iLO 4 IPv4: 10.28.20.103
iLO 4 IPv6: FE80::1E98:ECFF:FE23:60D2

2%: System Chipset Initialization
4%: QPI Link Initialization - Start
6%: QPI Link Initialization - Complete
9%: Early Processor Initialization
11%: Memory Initialization - Start
21%: Memory Initialization - Complete

24%: System Security Initialization
27%: HPE SmartMemory Initialization
37%: Loading System Firmware Modules - Start
46%: Loading System Firmware Modules - Complete
49%: USB Controller Initialization
52%: Chipset Root Ports Initialization
55%: Processor Root Ports Initialization
61%: ACPI Table Initialization

64%: SMBIOS Table Initialization
67%: iLO Embedded Health Initialization
70%: BIOS Configuration Initialization
76%: Early PCI Initialization - Start
82%: Early PCI Initialization - Complete
91%: Switching console output to Primary Video. Please wait..

grub>
grub> ls
(hd0) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1) (lvm/VolGroup-lv_root)
(lvm/VolGroup-lv_swap) (lvm/VolGroup-lv_home) (lvm/VolGroup-lv_varlog)
(lvm/VolGroup-lv_var) (lvm/VolGroup-lv_vartmp) (lvm/VolGroup-lv_varlogaudit)
(lvm/VolGroup-lv_varlog_altroot) (lvm/VolGroup-lv_swap_altroot)
(lvm/VolGroup-lv_root_altroot)

Last edited by moabdelhameed; 05-29-2020 at 06:02 PM.
 
Old 05-29-2020, 06:25 PM   #2
Ratamahatta
Member
 
Registered: Feb 2012
Location: Germany
Distribution: siduction
Posts: 134

Rep: Reputation: 17
Well, I assume you backup your data regularly...

Anyway, this looks like one of these cases where you use the installation cd and boot from cd and select installation until you get to the point where the machine's hard drive is analyzed and the installer recognizes an installed linux system and offers you to boot it. (SuSE Linux always worked like that and Siduction offers a separate menu entry in its on-cd grub.) And then you reinstall grub.

If your installation cd doesn't offer that option, you likely have to find some live cd and boot that one and then chroot into the previously mounted system partition of your hard drive. (And then reinstall grub, obviously.)
There's plenty of instructions on the net on how to chroot. Also, I've only done this with other distributions (openSUSE and Ubuntu), so I can't really give you any detail on how to it on RedHat.

You may also want to try https://www.supergrubdisk.org/super-grub2-disk/ as a replacement for grub. (If it works for you, it doesn't always.)

Last edited by Ratamahatta; 05-29-2020 at 06:45 PM. Reason: added info
 
Old 05-29-2020, 07:01 PM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Your not getting a grub-rescue that is a good thing,t If you know where your grub.cfg is located can do something like this
configfile (hd0,gpt?)/grub2/grub.cfg
Is one of the partitions a boot partition?
can try something like this from the grub menu
Code:
linux (hd0,gpt?)/vmlinuz-?? root=/dev/mapper/lvm/VolGroup-lv_root
initrd (hd0,gpt?)/initrd-???
where the ? you will have to fill the appropiate variables.
Code:
ls (hd0,gpt?)/
will give insight on what is on the partition.
Then reinstall grub

Last edited by colorpurple21859; 05-29-2020 at 07:07 PM.
 
Old 05-30-2020, 07:21 AM   #4
moabdelhameed
LQ Newbie
 
Registered: Jan 2020
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Your not getting a grub-rescue that is a good thing,t If you know where your grub.cfg is located can do something like this
configfile (hd0,gpt?)/grub2/grub.cfg
Is one of the partitions a boot partition?
can try something like this from the grub menu
Code:
linux (hd0,gpt?)/vmlinuz-?? root=/dev/mapper/lvm/VolGroup-lv_root
initrd (hd0,gpt?)/initrd-???
where the ? you will have to fill the appropiate variables.
Code:
ls (hd0,gpt?)/
will give insight on what is on the partition.
Then reinstall grub
When I try to list I find the below output , Can I have a way to boot from it.

grub> ls (hd0,gpt2)/
./ ../ lost+found/ efi/ grub2/ initrd-plymouth.img
.vmlinuz-3.10.0-693.el7.x86_64.hmac System.map-3.10.0-693.el7.x86_64
config-3.10.0-693.el7.x86_64 symvers-3.10.0-693.el7.x86_64.gz
vmlinuz-3.10.0-693.el7.x86_64 initramfs-3.10.0-693.el7.x86_64.img
initramfs-0-rescue-4f765311f7a945f8a951b865bcc43525.img
vmlinuz-0-rescue-4f765311f7a945f8a951b865bcc43525
initraexit0-rescue-4f765311f7a945f8a951b865bcc43525.img
 
Old 05-30-2020, 07:45 PM   #5
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
try this
Code:
configfile (hd0,gpt2)/grub2/grub.cfg
or
Code:
linux (hd0,gpt2)/vmlinuz-3.10.0-693.el7.x86_64 root=/dev/mapper/lvm/VolGroup-lv_root
initrd (hd0,gpt2)/initramfs-3.10.0-693.el7.x86_64.img
boot
not sure what the root= should be or any other kernel parameters that are needed.

Last edited by colorpurple21859; 05-30-2020 at 08:01 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual Booting Ubuntu with Windows 10 Stuck on Grub Loading Screen (Removing Grub) modu Linux - Newbie 16 06-23-2019 08:33 AM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM
How to open programs in terminal without being stuck to the terminal?? brynjarh Linux - Newbie 6 07-07-2004 12:52 PM
GRUB GRUB GRUB GRUB "Whats Going on?" Gaweph Linux - Newbie 6 03-26-2004 10:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration