XP, Ubuntu and 7 on same disc

Asked by Megawatts

I have a Dell 8300 with a 320GB HDD. XP is installed on the first 25 GB partition. I have Ubuntu 9.04 installed on the second partition of 25 GB (ext3). Both were running great. Then I decided to create a third 25GB partition (NTFS) and install Windows 7 RC to try it out. Install went great. But, now when reboooting the PC it only gives me the XP and windows 7 boot options. Ubuntu is no longer a boot option. How do I fix this so I can boot into any of the Operating Systems? I am VERY new to Ubuntu but I like it so far. Thanks for any help!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub Edit question
Assignee:
No assignee Edit question
Solved by:
Tom
Solved:
Last query:
Last reply:
Revision history for this message
Tom (tom6) said :
#1
Revision history for this message
Miguel (sanvimosca-deactivatedaccount) said :
#2

This happens because Microsoft don't support Linux and the windows boot loader didn't include Ubuntu. There are ways to recover the Ubuntu boot loader using the livecd but if you are newbie on Linux the better way is the supergrub disk that is a grub livecd to solve problems like this one.

You only have to burn it like an linux iso image and boot the computer with the disk inside. It works with menus.

http://www.supergrubdisk.org/

Sorry if my english is too bad.

Revision history for this message
Tom (tom6) said :
#3

It is really quite easy with an Ubuntu cd and since you can make one of those in Windows fairly easily (and would need to with supergrubdisk anyway) i don't see much point except that it's another good tool and quite fun to use ;)

Revision history for this message
Tom (tom6) said :
#4

Sorry that was a bit rude of me. Supergrubdisk is popular and does often sort quite a few problems out easily using a graphical interface which is much less scary than using the command-line but i just prefer the command-line for this, others prefer a nice gui <shrugs>

Apols and regards from
Tom :)

Revision history for this message
Best Tom (tom6) said :
#5

Please let us know when you have either got a supergrubdisk or an Ubuntu Cd and we can guide you from there :)

Revision history for this message
Megawatts (wattssteve97) said :
#6

Thanks to both of you for your assistance. Those steps worked. The only step I needed to add was the following:

Quote from www.troublefixers.com ... On grub prompt type “find /boot/grub/stage1” without quotes and press enter key. This will show a output like this one “(hd1,4)” or something like that, note down the output you see on a piece of paper, its very important that u note it correctly else it will mess up the next steps.

Initially I thought my ubuntu ext3 partition was the second partition on my drive (therefore hd0,1). I thought that because it was the 2nd partition that was displayed in both the XP disk manager and the Ubuntu partition editor. I tried (h0,1) with the steps you provided a number of times with no luck. Then I used the FIND command and discovered that my ext2 partition for ubuntu was actually (hd0,4). I never would have guessed that based on my looks on multiple partition editors.

Once I tried the same steps with (hd0,4) it worked the first time.

Thanks again for all your help. Now I can boot and get the dual boot screen. Then choose XP and get the dual boot windows screen and select XP or windows 7. It's great. Thanks much

Steve

Revision history for this message
Tom (tom6) said :
#7

Brilliant, nicely done :))
Yes that "Find" command is pretty crucial. Good to see you worked out the grub numbering system and how that relates to linux 'numbering', one being easier for machine the other better for humans ;)

Congrats and welcome to linux-land, especially the ubuntu corner of it :))
Regards from
Tom :)