LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Grub Problem (https://www.linuxquestions.org/questions/linux-newbie-8/grub-problem-708333/)

ikramdyer 03-01-2009 02:24 AM

Grub Problem
 
Ihave 2 OS in my computer 1St Win-Xp & 2nd Linux-5
due to some problem i fromat Xp after that my linux OS can't Start.
It Automaticaly start Xp, i eant to start Linux too
but i can't start Linux. How i can start Linux without New Linux installation.

sycamorex 03-01-2009 02:41 AM

Download supergrub:
http://stmaarten.globat.com/~supergrubdisk.org/
Boot a computer with it and it should restore your grub.

metrofox 03-01-2009 04:21 AM

You can also do it manually, downloading for example the ubuntu live, typing some commands...But there are three ways to recover grub:

-SuperGrubDisk
-Method n.1
-Method n.2(simpler than Method n.2)

You've to Choose one of them. Seen that SuperGrubDisk is too simple I'm gonna give you the commands for the 1st and 2nd method.
--------------------------------------------------------------------------------------------------------------------------
This is the method n.1:

Code:

sudo grub
find /boot/grub/stage1

Now, with this command you're gonna receive the answer where grub is installed, for example (hd0,2). Make sure to select the correct location and after launch the second command with the answer of the command you received first:

Code:

setup (hdX)
Where X stays for grub location. In the end run:

Code:

quit
--------------------------------------------------------------------------------------------------------------------------
And this is the second method:

Code:

sudo fdisk -lu
Identify you partition where GRUB is installed. Mount it with the following command:

Code:

sudo mount /dev/XXX /boot/
sudo grub-install /dev/sda

--------------------------------------------------------------------------------------------------------------------------

It's a more complex method of recovering grub, but seeing all these commands you might think: "How hard is it?". In the end it's a very simple method and faster than SuperGrubDisk one. They do the same things and maybe in different ways, but they do it. Let me tell you a suggestion...Use SuperGrubDisk :D. Bye.

metrofox 03-01-2009 04:21 AM

Sorry, double post. ;(


All times are GMT -5. The time now is 02:56 PM.