Ubuntu + XP... Restoring grub - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Linux and Open Source
Click Here to Login
Closed Thread
 
Thread Tools Display Modes
 
Old 09-24-2008, 07:09 PM   #1 (permalink)
Newb Techie
 
Join Date: Sep 2008
Posts: 16
Default Ubuntu + XP... Restoring grub

I had an entirely unallocated HDD that I partitioned with Ubuntu into:

Root - 5Gig
Swap - 3Gig
NTSF - 20Gig
Unallocated - almost 50Gig

I then installed Ubunto which worked great. Followed that with installing XP on the 20Gig partition and it also runs good but I can no longer get to Ubuntu. Looking at the dual boot xp+linux (linux first) guide I can see I was supposed to back grub up first. Is there a simple way to fix my mistake and restore grub so it boots first? I am a newb to Linux and dual booting of all kinds.

Thanks,
NewTechGuy
__________________

__________________
NewTechGuy is offline  
Old 09-24-2008, 08:09 PM   #2 (permalink)
Call me Mak or K
Mod Emeritus
 
KSoD's Avatar
 
Join Date: Sep 2004
Location: C:\
Posts: 35,647
Default Re: Ubuntu + XP... Restoring grub

How to install Grub from a live Ubuntu cd. - Ubuntu Forums
__________________

__________________
I do not accept support questions via EMail, PM, IM or my G+ page!

Phone: LG Optimus G Pro
Running: Stock JB from LG with Nova Launcher

KSoD is offline  
Old 09-24-2008, 09:22 PM   #3 (permalink)
 
Join Date: Nov 2006
Location: Illinois, USA
Posts: 2,363
Default Re: Ubuntu + XP... Restoring grub

Yeah, I use that guide all the time lol, reinstalling Windows is a pain cause it insists on killing the MBR and ruining GRUB, though it's a super easy fix.
__________________

CalcProgrammer1 is offline  
Old 09-24-2008, 10:01 PM   #4 (permalink)
Newb Techie
 
Join Date: Sep 2008
Posts: 16
Default Re: Ubuntu + XP... Restoring grub

Halfway home, Ubuntu loaded right away after Grub loaded now. Almost too fast actually, only left me 1 second to hit esc to go to the menu. But when I got to the menu XP wasn't an option and there was no "Other operating systems" list. How do I make XP visible now and can I just get a list right away instead of a short timer before Ubuntu loads?

**EDIT**
I solved this part of it with a little googling...
In the terminal I entered
Code:
sudo gedit /boot/grub/menu.lst
Then my root password. This gave access to edit Grub's menu. I edited the timeout line to read
Code:
timeout                   30
and added these lines below the Ubuntu's listed towards the bottom.
Code:
title              Microsoft Windows XP Pro
root		  (hd0,2)
makeactive
chainloader	+1
The 2 is the partition since XP is on my 3rd partition (0,1,2...)
**END EDIT**

Also, my external drive was visible before and now I get the error that its volume can't be read and am unable to mount it at all.
__________________
NewTechGuy is offline  
Old 09-25-2008, 01:03 PM   #5 (permalink)
Junior Techie
 
Join Date: Aug 2008
Posts: 42
Default Re: Ubuntu + XP... Restoring grub

Glad you got that grub sorted out. Check to see if the device shows up, fdisk -l
If it lists the external drive try mounting it manually to an empty directory.
__________________
brad8266 is offline  
Old 09-26-2008, 09:08 AM   #6 (permalink)
Wizard Techie
 
Join Date: Sep 2005
Location: /home/jason
Posts: 3,056
Send a message via AIM to Jayce
Default Re: Ubuntu + XP... Restoring grub

Not to butt in, but I noticed you edited the timeout time on the boot menu. Can you change the order of the menu as well?
__________________
Jayce is offline  
Old 09-28-2008, 08:50 PM   #7 (permalink)
Newb Techie
 
Join Date: Sep 2008
Posts: 16
Default Re: Ubuntu + XP... Restoring grub

I believe that should work fine as long as you make sure you have the right hd and partition numbers.
__________________
NewTechGuy is offline  
Old 10-02-2008, 12:00 AM   #8 (permalink)
 
Join Date: Nov 2006
Location: Illinois, USA
Posts: 2,363
Default Re: Ubuntu + XP... Restoring grub

You can change the order of the GRUB menu, simply copy/paste the OS entries in the desired order (for instance, move the XP entry from the bottom up to the top to make XP the primary OS, or make an order, mine's Vista, then XP, then Mac, then Ubuntu, then Ubuntu recovery, then Memtest).
__________________

CalcProgrammer1 is offline  
Old 10-02-2008, 08:17 AM   #9 (permalink)
Wizard Techie
 
Join Date: Sep 2005
Location: /home/jason
Posts: 3,056
Send a message via AIM to Jayce
Default Re: Ubuntu + XP... Restoring grub

Calc - Instead of changing the order, I just changed which one was by default highlighted.

When I boot up, I have a total of 6 things load. 5 are Ubuntu... recovery mode, memtest, the regular OS, blah blah. By default the regular OS shows up. But on my laptop, which has RTL8187B wireless and I haven't figured it out on Ubuntu yet, I use XP 99% of the time. There's a "default = 0" setting. If you change that 0 accordingly to whatever number is on the boot loader, that one will load first. For me, XP was 6. Default = 6 highlights XP first, but I can still hit my up arrow key to toggle to memtest or ubuntu or whatever else I want.
__________________
Jayce is offline  
Old 10-02-2008, 01:23 PM   #10 (permalink)
 
Join Date: Nov 2006
Location: Illinois, USA
Posts: 2,363
Default Re: Ubuntu + XP... Restoring grub

Yeah, I know about the default one, but I don't call that "changing the order", just changing the default. I like to have my default as the first one on the list.
__________________

__________________

CalcProgrammer1 is offline  
Closed Thread

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Ubuntu from second hdd Jake2k Linux and Open Source 0 07-16-2008 04:57 AM
Windows wont load, grub error? blue4paper Linux and Open Source 0 04-11-2008 10:50 PM
Ubuntu 8 makes it even easier to try out Linux Osiris Linux Tips and Tricks 5 04-04-2008 10:22 PM
Ubuntu 7.10 Beta Released Osiris Linux and Open Source 9 09-30-2007 12:25 AM
Ubuntu 7.04 Available Osiris Linux and Open Source 0 04-19-2007 05:44 PM



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

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


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2018, vBulletin Solutions, Inc.