Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-01-2009, 03:24 AM   #1
LQ Newbie
Registered: Nov 2008
Posts: 1

Rep: Reputation: 0
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.
Old 03-01-2009, 03:41 AM   #2
LQ Veteran
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,825
Blog Entries: 1

Rep: Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221
Download supergrub:
Boot a computer with it and it should restore your grub.
Old 03-01-2009, 05:21 AM   #3
Registered: Jan 2009
Location: Palermo, Italy
Distribution: Slackware
Posts: 236

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

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

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:

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

And this is the second method:

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

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 . Bye.
Old 03-01-2009, 05:21 AM   #4
Registered: Jan 2009
Location: Palermo, Italy
Distribution: Slackware
Posts: 236

Rep: Reputation: 37
Sorry, double post. ;(

Last edited by metrofox; 03-01-2009 at 05:22 AM.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Changing GRUB-GRUB, GRUB-LILO and vice versa andreas_skw Linux - Newbie 1 06-05-2008 07:40 AM
installing GRUB 2, grub-install problem r00tb33r Linux - Software 1 02-26-2007 10:42 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 01:55 PM
GRUB dual boot problem: Boot "other" (windows) just restarts GRUB! stevod333 Linux - Software 13 04-06-2006 06:26 AM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 09:13 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:10 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration