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 10-23-2006, 07:15 AM   #1
maverick_awp
Member
 
Registered: Oct 2006
Location: Mumbai, India
Posts: 46

Rep: Reputation: 15
GRUB Gone!!!


Hi,
I am using ubuntu with dual boot winXP...
Recently I repaired my winXP partition. In the process the MBR got replaced. Now GRUB is gone. How can I boot into ubuntu.

Thanks in advance,
Karthik
 
Old 10-23-2006, 08:04 AM   #2
sn68
Member
 
Registered: Oct 2005
Distribution: FC5
Posts: 338

Rep: Reputation: 30
search for "reinstall grub" (LQ or google, both will turn up enough material)
 
Old 10-23-2006, 09:01 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Boot from a live CD--or from the Ubuntu install disk.

When Windows is installed (or sometimes repaired) it puts its own boot code in the mbr. This is why conventional wisdom is always to install Win first, then Linux.

If you boot up form the Ubuntu install disk, there should be an option to restore, repair, etc.

From a live LinuxCD (eg Knoppix) you should be able to run the grub shell (type "grub" at a terminal prompt)

Once in the grub shell, you do this:
root (hd0,X)
setup (hd0)
"X" is the partition number where your grub config file is---typically this is the /boot partition of your Linux install. If Linux is on the second partition of your only drive, then you would use "1" (grub numbering starts with "0")

To find all the partitions (running from the live Linux):
fdisk -l
 
  


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
can some fc4 user mail his grub.conf and tell me how can i make this grub read this amolgupta Linux - Software 1 03-15-2006 05:04 AM
Grub 0.97 issues on slackware - grub-install is very slow, & updating menu.lst fails dieyouspammer Linux - Software 1 02-27-2006 02:06 PM
Setting password on grub, wha to do after changing default values in /boot/grub/menu. sarajevo Linux - Security 1 08-17-2005 09:01 PM
Why grub prompt after installing Grub inder Debian woody 3.0r2? velan Debian 1 04-20-2004 05:55 AM
1st HDD = RH9.0 (grub) ... How do I modify grub when adding 2nd hard disk ? Onyx^ Linux - Software 1 09-05-2003 10:16 AM


All times are GMT -5. The time now is 03:47 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration