Grub Rescue Prompt

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read this

Grub Rescue Prompt

Postby LinuxNeophyte on Mon May 07, 2012 10:01 pm

I have a laptop with a dual boot with Windows 7 and Mint 12. I had multiple entries from failed Mint 12 installs showing up in the Grub2 menu. Using the disk utility, I deleted a partition from an earlier install of Ubuntu and then ran the sudo update -grub command. After that, I rebooted and no longer received the Grub2 menu and can only get a grub rescue prompt. I know that I am in over my head and need some help. I don't plan on doing anything else until I hear back from someone on the forum. Thanks.
LinuxNeophyte
Level 1
Level 1
 
Posts: 18
Joined: Mon May 07, 2012 4:48 pm

Linux Mint is funded by ads and donations.
 

Re: Grub Rescue Prompt

Postby wayne128 on Mon May 07, 2012 10:14 pm

When you delete a partition, the hard disk partition table will change.
Your previous working partition might become unbootable.

To figure out what is the new partition that still has your old and working installation, what you can do is:

1. boot from Live DVD/CD,
2. open a terminal, type
sudo os-prober

look for the line that looks like your old working installation, such as
/dev/sda15:Linux Mint Xfce Edition (1):LinuxMint1:linux

the highlighted is the partition you want, yours would be different.

3. mount the new partition with
sudo mount /dev/sda15 /mnt

4. reinstall grub with
sudo grub-install --root-directory=/mnt /dev/sda

5, if no error on last line in terminal, then, reboot to check if grub is back and working.
wayne128
Level 10
Level 10
 
Posts: 3325
Joined: Tue Jul 13, 2010 12:15 am

Re: Grub Rescue Prompt

Postby LinuxNeophyte on Mon May 07, 2012 10:43 pm

Wayne128,

Thanks for the quick reply. It worked and I was able to boot into Mint 12. I then tried to boot into Windows 7 and chkdsk came up and scanned the drive. I was worried that there was still a problem but was also able to boot into Windows 7. Thanks for your help. This forum is great and I will be spending a lot of time here as I learn more about Linux.
LinuxNeophyte
Level 1
Level 1
 
Posts: 18
Joined: Mon May 07, 2012 4:48 pm

Re: Grub Rescue Prompt

Postby SplashMan on Fri May 18, 2012 10:51 am

Thanks to Wayne128 from me too. I'd just replaced Mint 12 with 13 and got the Grub Rescue on reboot :-/

All fixed now, thanks also to LinuxNeophyte for asking the question :-)
SplashMan
Level 1
Level 1
 
Posts: 3
Joined: Thu Mar 01, 2012 12:00 pm

Re: Grub Rescue Prompt

Postby trippr78 on Sun Jun 03, 2012 10:33 am

+1 for Wayne128! This is why I love Linux, the support here is unbelievable! I love you guys!
trippr78
Level 1
Level 1
 
Posts: 1
Joined: Mon Dec 12, 2011 6:54 pm


Return to Installation & Boot

Who is online

Users browsing this forum: deathwiz, groover, kytong, wimk and 15 guests