LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-28-2010, 01:18 AM   #1
imagine_me2
Member
 
Registered: Nov 2009
Location: Kolkata, India
Distribution: Fedora 11
Posts: 136

Rep: Reputation: 22
Reinstalling grub.


i just installed win xp and win server 2003 (dual) on my machine, but grub got overwritten and i cannot access my fedora installation. how can i fix that so that i can triple boot the machine.
 
Old 04-28-2010, 01:20 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

You can boot from a LiveCD that has Grub and install it from there or you can use SuperGrub to install it.

Grub2 tutorial.
SuperGrub Home page

Kind regards,

Eric
 
Old 04-28-2010, 05:34 PM   #3
ahmed_as8
Member
 
Registered: Nov 2008
Location: Egypt
Distribution: Ubuntu, SuSE
Posts: 101

Rep: Reputation: 16
That worked with me in Ubuntu

Code:
sudo fdisk -lIn other words, you have to run fdisk as root in order for it to work. Also, please identify the Windows/Ubuntu partitions that fdisk lists. Since you mentioned that you can set your BIOS to boot whichever drive you choose, how about booting the Ubuntu drive on start up, but use the following instructions to install Grub to the MBR of the Ubuntu drive so it is bootable:

Code:
sudo grub
grub> find /boot/grub/stage1
grub> find /grub/stage1One of the above commands should return your main Ubuntu partition (or /boot partition if you have one) in the form of (hdX,Y) where X and Y are numbers, for example (hd1,4), but use whatever it returns as follows:

Code:
grub> root (hdX,Y)
grub> setup (hdX)
grub> quitThen reboot, set your BIOS to boot the Ubuntu drive, and you should at least get a Grub menu on start up if all goes well. Let me know if you get that far or if you run into problems.
 
  


Reply


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
[SOLVED] Reinstalling GRUB without Reinstalling my Distro MBA Whore Linux - Newbie 8 03-15-2008 08:39 PM
reinstalling the GRUB offbeat Linux - Newbie 3 02-10-2007 01:22 PM
reinstalling grub tm2383 SUSE / openSUSE 3 11-10-2006 01:54 AM
Reinstalling grub darkangel29 Linux - Newbie 3 04-03-2005 05:53 PM
Reinstalling GRUB Petelow Linux - Newbie 1 05-24-2004 04:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:06 AM.

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