Grub Rescue

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
joe_21

Grub Rescue

Post by joe_21 »

Hey , Unfortunately i seem to have destroyed my Laptop through deleting partitions , and as a first time Linux User this is Intimidating.

I was/am Dual booting with Windows 7 and decided to clean up my partitions using GPartion , however once i had done this i cannot choose my operating system at reset and am thrown to the Grub Rescue menu stating that partition cannot be found.

I have the Live CD and have tried a few methods mentioned on the Internet , however mostly the Terminal throws back "Command cannot be found"

I am Running Mint 11 GNOME
Any help would be appreciated
Thanks!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
AlbertP
Level 16
Level 16
Posts: 6701
Joined: Sun Jan 30, 2011 12:38 pm
Location: Utrecht, The Netherlands

Re: Grub Rescue

Post by AlbertP »

You have deleted the partition with Grub files, which should not be deleted.

Please look in Gparted for the /dev/sdXY name of the Linux root partition.
Then mount the partition using terminal:

Code: Select all

sudo mount /dev/sda6 /mnt
(replace /dev/sda6 with the partition's /dev name)

Then execute this command:

Code: Select all

sudo grub-install --root-directory=/mnt/ /dev/sda
Warning: remove the digit (6 or whatever you're using) from the /dev/sdXY name. When you fail to do this, it installs Grub to the wrong place and doesn't fix the rescue prompt.


If Mint gives you errors about missing partitions during boot, press the button to ignore.
If there are such partitions, open the filesystem table:

Code: Select all

gksu gedit /etc/fstab
(or if you don't like Terminal: right-click the fstab file in the etc folder, and click Open as Root)

Then remove the entries for missing partitions.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
AdamS

Re: Grub Rescue

Post by AdamS »

Simple fix would be to use super grub2 recovery disk.

use the boot to any partition option, then boot to your linux OS.

Use synaptic to reinstall grub-pc and grub common

When it asks partitions to manage or install with grub, select all.
AlbertP
Level 16
Level 16
Posts: 6701
Joined: Sun Jan 30, 2011 12:38 pm
Location: Utrecht, The Netherlands

Re: Grub Rescue

Post by AlbertP »

If you have deleted the /boot partition (that's what I think that you've done) the kernel is also away. I think you should or recover the partition, or reinstall Mint.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
joe_21

Re: Grub Rescue

Post by joe_21 »

Thanks for the replies!.
I have downloaded Super grub2 recovery disk and booted into Linux
However when i attmept to reinstall Grub-PC and Grub Common , the following error is returned.
Writing GRUB to boot device failed - Continue?
Failed to install to /dev/sda5 ?

eek
AdamS

Re: Grub Rescue

Post by AdamS »

easy fix

complete remove all to do with grub with synaptic.

then close synaptic and reopen

then install grub-pc grub common startup manager grub2-mint-theme

be sure to install grub for all partitions.

repeat one more time if needed.
joe_21

Re: Grub Rescue

Post by joe_21 »

How do i select install grub for all partitions?
AdamS

Re: Grub Rescue

Post by AdamS »

it pops up with a window, select install maintainers version , then another window pops up with listed partitions.

Just check all boxes.

If ya don't see this, ya might need to restart and try one more time. I have had it take twice a few times.
joe_21

Re: Grub Rescue

Post by joe_21 »

It still said failure to write Boot.
However i restarted and am now able to boot in ! so i guess it worked!
Thanks heaps!
AdamS

Re: Grub Rescue

Post by AdamS »

It still said failure to write Boot.
concerned, I hope it keeps working.

Keep that grub rescue disk , just in case.
Locked

Return to “Installation & Boot”