PDA

View Full Version : [ubuntu] how do i boot into ubuntu after installing windows



thingy87654321
May 4th, 2009, 08:33 PM
i didnt have a xp install disc when i installed ubuntu, but today i got a xp pro disc, when i installed ubuntu, i put a partition for windows, si today i installed windows on that partition. but now i cant boot into ubuntu anymore, please help, or get me a compiled version of grub and install instructions. please help

xreaper
May 4th, 2009, 08:36 PM
Hey! Do you have an ubuntu live cd handy?

xreaper
May 4th, 2009, 08:47 PM
...If so, its fairly simple to get Ubuntu working again.

If its what I think it is... It is a problem with Window's bootloader overwriting GRUB.

To restore it, boot into the live cd and go into a terminal, and write the following commands:

sudo grub
This will set it to grub mode


find /boot/grub/stage1
This will locate your boot partition. If you already know the location, you can ignore this step.


root (hdX,Y)
Replace the (hdX,Y) by your boot partition number.


setup (hdX)


quit

thingy87654321
May 4th, 2009, 09:47 PM
yeah.. why?, i dont have to reinstall do i?

thingy87654321
May 4th, 2009, 09:53 PM
ok, i didnt see your second post, thank you

thingy87654321
May 4th, 2009, 10:33 PM
i mean the third post, and is there any way to do this without a cd, i am at work and my cd is at home, and i dont have any blank cds in my office?

thingy87654321
May 4th, 2009, 10:37 PM
what is a boot partition number?

xreaper
May 4th, 2009, 11:18 PM
Okay, when you enter the certain commands that I gave you into the terminal, you get an output, eg:

Type "find /boot/grub/stage1". You'll get a response like "(hd0)" or in my case "(hd0,3)". Use whatever your computer spits out for the following lines.

Type "root (hd0,3)".

Type "setup (hd0)".

Type "quit".

xreaper
May 4th, 2009, 11:18 PM
And the boot partition number is the number that is given to you when you enter the command "find /boot/grub/stage1"

networm1230
May 4th, 2009, 11:27 PM
look on your screen when your PC is booting look for your grub boot up screen and move your keys up or down to choose what OS you want to boot in to

install windows first than Linux. I have found that installing is much easer in this order. (windows than Linux)

thingy87654321
May 4th, 2009, 11:32 PM
ok, thank you

networm1230
May 4th, 2009, 11:43 PM
for windows the minimum partition size 40GB or more. for Linux 20GB or more I have used partition editor http://gparted.sourceforge.net/

hope this helps you

networm1230
May 4th, 2009, 11:45 PM
ok, thank you

vary good point

thingy87654321
May 5th, 2009, 12:58 AM
windows isnt showing up on the grub boot menu, how do i fix that little problem

xreaper
May 5th, 2009, 01:11 AM
in the terminal type:

cd /boot/grub

then:

gedit menu.lst

then scroll down to the bottom of the page and add this line of code:
title Windows NT/2000/XP (loader)
root (hd0,0)
makeactive
savedefault
chainloader +1
boot

xreaper
May 5th, 2009, 01:59 AM
Did you manage to get windows working?

thingy87654321
May 5th, 2009, 02:25 AM
yes, thank you very much, but can you help me with this please? thanks in advance

http://ubuntuforums.org/showthread.php?p=7215039#post7215039