Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Linux Users: Need help setting up XP/Ubuntu dual boot

Author
Message
draknir_
18
Years of Service
User Offline
Joined: 19th Oct 2006
Location: Netherlands
Posted: 29th Aug 2009 11:19
Hi,

I know there are some knowledgeable linux users here so I was wondering if some of you smart guys could help me out. I recently reinstalled windows XP and decided to add an ubuntu install just to play around with Linux.

I only have one 160GB hard drive, so I partitioned a 120GB primary (windows) and left 40GB unpartitioned space for ubuntu. In the ubuntu installer (9.04, from the official ubuntu site) I partitioned the free space into 35.5GB for '/' and 500MB swap space. Ubuntu installed fine and ejected the cd, then wanted to restart.

After restarting, the PC boots straight to windows without any way to get into ubuntu. Ideally I would like the PC to boot to windows as it does now, but have the option to press a button to get into ubuntu. How can I set this up?

cheers,
draknir
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 29th Aug 2009 11:42
Does the GRUB show up?

TheComet


Make the paths of your enemies easier with WaypointPro!
draknir_
18
Years of Service
User Offline
Joined: 19th Oct 2006
Location: Netherlands
Posted: 29th Aug 2009 12:01
No, it doesn't. It did install I think, I remember seeing it while ubuntu was installing.
Mr Z
17
Years of Service
User Offline
Joined: 27th Oct 2007
Location:
Posted: 29th Aug 2009 15:18 Edited at: 29th Aug 2009 15:19
So you installed Windows first and XP later? Think you said you did, but this usually occur when you do it the other way around, since Windows overwrites GRUB. It is easy to fix. Think this is how:

1. Boot into the Ubuntu Live-CD.

2. Open a terminal.

3 You may have to type this in there, but I am not sure:


4. Now you must found out what the partitions are called, think this command will list that:

Ubuntu will label drives and partitions with names like sda1, sda2 and so on. Grub uses another system to identify drives and partitions, but it is quite easy to convert between the two. I think it is that the number at the end of the "sda/sdb/whatever-ubuntu-calles-them" is +1 then the system grub uses, but I am not sure.

5. Type the following to enter grub:


6. Type the following two commands (the X is the number I spoke of before, when you looked up what partitions are called in Ubuntu):


7. Type the following to exist grub:


8. Now it is just to restart and see if Grub appears.

However, note that if Windows does not appear in the menu, you will have to add it yourself. This is quite easy, Grub has a text file that it reads to get what is in the menu, and all you have to add is a Windows entry and a few details about it (such as where it boots from).

Anyway, here is the site I used to get how to recover Grub (I just googled and took the first thing that came up):
https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows

"Operator! Give me the number for 911!"
- Homer J. Simpson
draknir_
18
Years of Service
User Offline
Joined: 19th Oct 2006
Location: Netherlands
Posted: 30th Aug 2009 16:49
Quote: "So you installed Windows first and XP later? Think you said you did, but this usually occur when you do it the other way around, since Windows overwrites GRUB. It is easy to fix. Think this is how:"


Um, I installed Windows first and Ubuntu later.

Quote: "1. Boot into the Ubuntu Live-CD."


Is that the same as the install disk downloaded from the official site?
jezza
17
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 30th Aug 2009 19:30
Live-CD is running Ubuntu directly from the CD, which was on the install disk you downloaded.

Omega gamer 89
17
Years of Service
User Offline
Joined: 10th Sep 2007
Location: Pittsburgh, PA
Posted: 30th Aug 2009 21:49
one thing you MUST be sure of:
If, at any point, you decide to remove Ubuntu, do NOT simply delete the partition!!! you MUST uninstall grub first!!!

I once made the mistake of installing Ubuntu on a partition, then deleting the partition without removing GRUB. I took me SEVEN HOURS to fix it.

I have a devious mind.
jezza
17
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 30th Aug 2009 21:56
You could have just changed which was the primary partition to the windows one with a simple boot cd utility...

Jeku
Moderator
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Vancouver, British Columbia, Canada
Posted: 31st Aug 2009 17:37
Quote: "I took me SEVEN HOURS to fix it."


A search on Google would have told you what to do. That is a common beginner's mistake.


Senior Web Developer - Nokia

Login to post a reply

Server time is: 2025-05-26 05:03:29
Your offset time is: 2025-05-26 05:03:29