LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 05-28-2020, 06:24 AM   #1
G-Raps
LQ Newbie
 
Registered: Apr 2020
Location: Sandy Eggo
Distribution: Debian 10.3.0, Ubuntu 20.04
Posts: 21

Rep: Reputation: Disabled
grub rescue prompt


Hi All,

While I have a working system, I would like to draw attention to a situation that some of you may have experienced at one point or another. When the partitions of a disk fail for some reason or other, the Linux grub rescue prompt appears on the screen. Some descriptions that show onscreen describe that one has started up the system from a crash, and then the prompt appears, like the following:

grub rescue>

Some options for this prompt include ls, ?, help, and some system commands like mount, df, and lsusb. What are some tips useful for analyzing the system and restoring to a working boot of an operating system ?
 
Old 05-28-2020, 07:22 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 9,059

Rep: Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937
You should be able to find a number of sites similar to the one below with an online search with 'how to boot from a grub prompt.

https://help.ubuntu.com/community/Grub2/Troubleshooting
 
Old 05-28-2020, 10:59 AM   #3
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware, OpenBSD
Posts: 4,329
Blog Entries: 11

Rep: Reputation: 2451Reputation: 2451Reputation: 2451Reputation: 2451Reputation: 2451Reputation: 2451Reputation: 2451Reputation: 2451Reputation: 2451Reputation: 2451Reputation: 2451
Usually when you get the grub prompt, grub has failed to find the kernel or one of the other files it has been told to load. However the grub shell is running and you can seek out and load these files by hand.

When you get the grub rescue prompt, it means that grub has failed to find the grub shell itself. The shell is one of the grub modules, so there may be something wrong with your grub install or with the /boot directory.

Last edited by hazel; 05-28-2020 at 11:01 AM.
 
Old 05-28-2020, 01:29 PM   #4
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 19.2 MATE, MX-19, antiX, Manjaro
Posts: 2,963
Blog Entries: 17

Rep: Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097
G-Raps,

Have a copy of Boot-Repair-Disk or Rescatux handy on a DVD or USB drive:

https://sourceforge.net/p/boot-repair-cd/home/Home/

https://www.supergrubdisk.org/

Last edited by beachboy2; 05-28-2020 at 01:34 PM.
 
1 members found this post helpful.
Old 05-31-2020, 09:46 AM   #5
G-Raps
LQ Newbie
 
Registered: Apr 2020
Location: Sandy Eggo
Distribution: Debian 10.3.0, Ubuntu 20.04
Posts: 21

Original Poster
Rep: Reputation: Disabled
Updating the grub rescue on a virtual machine instance

Thanks for the somewhat dated Rescatux and Super Grub 2 disk ISO images. However, they seem dated for purposes of rescuing a virtual machine instance, right ? I have a Dreamhost virtual machine instance (cloud server) that is running Debian 7. When I have to maintain the server, I use the Dreamhost dashboard web interface to tap into the server and log in as a localhost. However, there is no native console display on this virtual machine. Which makes using the Rescatux and Super Grub 2 disk images challenging in a command-line interface.

Is there a more recent command-line, console authenticated version ?
 
Old 05-31-2020, 10:41 AM   #6
shruggy
Member
 
Registered: Mar 2020
Posts: 895

Rep: Reputation: Disabled
A good command-line rescue LiveCD for Debian would be Grml. This is from my /boot/grub/grub.cfg, created by update-grml-rescueboot:
Code:
menuentry "Grml Rescue System (grml64-small_2018.12.iso)" {
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  b22ffd66-807d-4a06-bfc6-3c5c975b57fd
        else
          search --no-floppy --fs-uuid --set=root b22ffd66-807d-4a06-bfc6-3c5c975b57fd
        fi
        iso_path="/grml/grml64-small_2018.12.iso"
        export iso_path
        kernelopts="   "
        export kernelopts
        loopback loop "/grml/grml64-small_2018.12.iso"
        set root=(loop)
        configfile /boot/grub/loopback.cfg
}

Last edited by shruggy; 05-31-2020 at 10:58 AM.
 
1 members found this post helpful.
Old 05-31-2020, 09:46 PM   #7
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 4,282

Rep: Reputation: 772Reputation: 772Reputation: 772Reputation: 772Reputation: 772Reputation: 772Reputation: 772
.
Quote:
When the partitions of a disk fail for some reason or other, the Linux grub rescue prompt appears on the screen.
If it was your root partition or boot partition if /boot is separate, you want recover from the grub-rescue prompt, you will need a live iso or reinstall.
Do you know what the failure is?
Here is another how-to to recover from grub-rescue prompt if it is possible.
https://www.howtoforge.com/tutorial/...h-grub-rescue/

Last edited by colorpurple21859; 06-02-2020 at 07:20 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Rescue mode and grub rescue beyond my understanding A Novice Linux Mint 9 06-15-2019 11:10 AM
Centos 7 grub rescue issue by mondo rescue hassanbsee2071 Linux - Software 8 12-17-2018 02:42 AM
error: unknown filesystem. entering rescue mode. ..grub rescue> Celsiusrising Linux - Newbie 7 06-29-2018 11:51 AM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
[SOLVED] Uninstall GRUB(2?) from Grub Rescue prompt. Zssfssz Linux - General 1 11-07-2011 05:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 01:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration