Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a windows xp os, and I ve decided to give ubuntu a shot. I installed and It when rebooting it did boot by default windows. I red several forums and after entering those commands:

sudo mkdir /mnt/ubuntu
sudo mount /dev/sda2 /mnt/ubuntu
sudo grub-install /dev/sda --root -directory=/mnt/ubuntu

after rebooting the system showed me the command grub. And I cannot get anywhere. I don t have a windows cd to fix anything. so how can I launch windows from this command grub?

Thanks... I am in a real mess.

share|improve this question
add comment

3 Answers

Looks like you've managed to bork the bootloader. Insert the live cd and follow these instructions to restore it using the live cd.

share|improve this answer
    
Thanks, yes.. i am stupid...lol. I ll try this. –  user903645 Oct 4 '12 at 15:40
    
Don't worry about messing things up, it's the best way to learn. I've stuffed the bootloader up many times in the past and it took me awhile to become confident enough in knowing that I could fix it whenever it broke. –  eltommo Oct 4 '12 at 15:45
add comment

If you want to do it the (very) easy way download the boot repair disk and burn it to a cd, and boot from the cd.

https://help.ubuntu.com/community/Boot-Repair

http://sourceforge.net/projects/boot-repair-cd/files/

share|improve this answer
add comment

I'm going to guess that you used EasyBCD to set up your dual-boot situation? This is what I had done (running Windows 7), and I suffered from a similar problem.

You need to boot to XP, upgrade EasyBCD to version 2.2, and then manually create a new entry for Linux using GRUB2. Version 2.2 of EasyBCD allows you to specify the Linux boot partition location for GRUB2, which older versions did not allow for.

Once you ensure that your new entry successfully boots you into Ubuntu 12.10, go back and delete the old entry.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.