LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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
Member
 
Registered: Apr 2020
Location: California, USA
Distribution: Debian 12.5, MX Linux 23.2, Ubuntu 22.04
Posts: 43

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: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
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
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
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 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,972
Blog Entries: 32

Rep: Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465
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
Member
 
Registered: Apr 2020
Location: California, USA
Distribution: Debian 12.5, MX Linux 23.2, Ubuntu 22.04
Posts: 43

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
Senior Member
 
Registered: Mar 2020
Posts: 3,670

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
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
.
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



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 04:46 PM.

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