LinuxQuestions.org
Help answer threads with 0 replies.
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 09-08-2008, 04:22 PM   #1
fosopip
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Rep: Reputation: 0
get MBR to show MS Windows and Ubuntu


HELP...pretty please


I had to reinstall winxp (again) that seems to have overwritten the mbr so linux did not show as a choice.
Reinstalled that yep you got it Ubuntu is now the only OS I hav a choice of.

Can anyone help me restore the system so that I have a choice of OS (need windoze to help family etc..)

thanks for looking and appreciate any help you can offer
 
Old 09-08-2008, 04:33 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,056

Rep: Reputation: 2468Reputation: 2468Reputation: 2468Reputation: 2468Reputation: 2468Reputation: 2468Reputation: 2468Reputation: 2468Reputation: 2468Reputation: 2468Reputation: 2468
ubuntu uses grub so the fedora bit of code should work .
any Ubuntu users correct me if i am wrong
( using Gnome)
Code:
sudo gedit ( YOUR PATH TO /??/grub.conf )
   --- example ---
sudo gedit /boot/grub/grub.conf
and add this at the bottom
Code:
title Windows_XP
	rootnoverify (hd0,0)
	chainloader +1
then hit enter to add a blank line at the end of the file and save
you may need to play with the numbers a bit (hd0,0) or (hd0,1)
 
Old 09-08-2008, 06:45 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,312

Rep: Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989
"sudo fdisk -l" from a Ubuntu terminal will give you an idea of which partition you might need to chainload.
 
Old 09-09-2008, 02:10 AM   #4
james2b
Member
 
Registered: Feb 2007
Location: Washington state, USA
Distribution: Fedora 13, SUSE 11, Ubuntu 10.04, Mandriva 2010, Mint 8
Posts: 338

Rep: Reputation: 34
Smile just edit the grub file

In Ubuntu the grub boot file is called menu.lst, in some other Linux such as Fedora, it's called grub.conf, but really is the same file. If you can boot up into your Ubuntu desktop, click to open a terminal window, (which is like a command prompt text window in windows), then just type in this here; sudo gedit /boot/grub/menu.lst , and hit enter. This should open that grub boot file so you can add XP to it, like the other post guy showed, title XP
root (hd0,0)
makeactive
chainloader +1
your root depends on which hard drive and partition number your XP is installed on, in this example it is the 1rst drive, first partition.
 
Old 09-09-2008, 06:11 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,645
Blog Entries: 27

Rep: Reputation: 2012Reputation: 2012Reputation: 2012Reputation: 2012Reputation: 2012Reputation: 2012Reputation: 2012Reputation: 2012Reputation: 2012Reputation: 2012Reputation: 2012
Hi,
Quote:
Originally Posted by fosopip View Post
HELP...pretty please

I had to reinstall winxp (again) that seems to have overwritten the mbr so linux did not show as a choice.
Reinstalled that yep you got it Ubuntu is now the only OS I hav a choice of.

Can anyone help me restore the system so that I have a choice of OS (need windoze to help family etc..)

thanks for looking and appreciate any help you can offer
To restore the M$ Win/XP you can use the XP 'fdisk /mbr' after booting the M$ XP cd.

Once you have the 'MBR' restored you follow the previous instructions.
 
Old 09-09-2008, 02:27 PM   #6
fosopip
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for your responses guys, trying it out now...
so far got windows xp to shows as an option..however I then get the folowing error message
"25 error whilst parsing number"
does the fact that I have Royale xp make any difference to the entry needed?
I will keep playing and try to get it working

once again thank you for your help
 
  


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
MBR problems under Win98 and Ubuntu r0m23 Linux - Hardware 1 08-13-2007 05:25 PM
I need help with GRUB and my MBR(Ubuntu 7.04) namanbagga Ubuntu 1 06-18-2007 12:53 AM
Installed FC5> Wrote over Ubuntu MBR: How do i add Ubuntu Partition to Grub Loader Free_beer Ubuntu 4 10-02-2006 06:11 PM
ubuntu: windows took over MBR and can't restore grub eantoranz Linux - Software 3 02-03-2006 08:29 PM
[SOLVED] Ubuntu Install Corrupted MBR? thund3rstruck Linux - Newbie 4 11-30-2005 09:55 AM


All times are GMT -5. The time now is 12:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration