LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I deleted GRUB after removing an OS (https://www.linuxquestions.org/questions/linux-newbie-8/i-deleted-grub-after-removing-an-os-845104/)

Bhakta Neal 11-18-2010 11:32 AM

I deleted GRUB after removing an OS
 
HI thank you community.

I run a Toshiba laptop, Celeron.
Pre-loaded with Win7,
currently multi-boot, with
Kubuntu 10.04,
Ubuntu 10.04 and
Sabayon KDE.

Grub 1.98 (Grub2)

I still have partitions to spare.

I always write Grub to /dev/sda .

The problem is, I used the Gparted CD to remove Sabayon, by method of simply re-formatting over that drive. I didn't foresee a problem.

Now, when I start that machine, it looks like Grub is about to load, then it gives me the black screen with:

Quote:

error: file not found.
Entering rescue mode...
grub rescue>

The cursor just blinks at me. My machine is in a coma. Please help me, friends. How do I revive the Grub so I can access my other OS's?

TobiSGD 11-18-2010 11:40 AM

Get SuperGrubDisk and boot from it into one of your *buntus. Then start a terminal and do
Code:

sudo grub-install /dev/sda
sudo update-grub

All should be fine after this procedure.

Explanation: I assume that Sabayon was the last OS you installed. It installed its Grub to the disk, so the first part of Grub is searching for his files on the Sabayon-partition. You deleted this files, so Grub can't find them. Solution: Let an other OS install Grub.

Bhakta Neal 11-18-2010 11:47 AM

May I assume that without doing anything else, that I can just install another OS and my Grub will re-appear?

linus72 11-18-2010 11:54 AM

yes, it will

stress_junkie 11-18-2010 11:56 AM

Quote:

Originally Posted by Bhakta Neal (Post 4163340)
May I assume that without doing anything else, that I can just install another OS and my Grub will re-appear?

Installing another OS that uses GRUB 2 (i.e. a Linux OS) will work by itself.

Or you can follow the instructions.

Or you can boot a live Linux CD, chroot into one of the installed systems, and repair GRUB 2 from there.

Bhakta Neal 11-18-2010 07:32 PM

Ok then, Super Grub is ready, here I go..

Bhakta Neal 11-18-2010 08:10 PM

Sweet! All good!

Thank you folks


All times are GMT -5. The time now is 04:18 PM.