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.

This question already has an answer here:

So I installed Ubuntu 12.04 alongside Windows XP, and I played with it for a like an hour. When I wanted to go back to Windows, I chose the Windows option in the GRUB screen. It just gives a black screen and goes back to grub. I tried boot-repair as I've seen in some other post that it could resolve the problem, but it's all the same. Nothing changed. I can use Ubuntu but not Windows. Can someone please tell me how I can solve this? Thanks.

http://paste.ubuntu.com/1231432/

share|improve this question

marked as duplicate by bain, Eric Carvalho, Warren Hill, karel, Radu Rădeanu Jul 12 at 10:26

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Just a wild, shot-in-the-dark thing, but look at lines 263-266: 1 disks with OS, 2 OS : 1 Linux, 0 MacOS, 1 Windows, 0 unknown type OS. Warning: extended partition does not start at a cylinder boundary. DOS and Linux will interpret the contents differently. –  InkBlend Sep 28 '12 at 1:40
    
I have no idea what that means. Its not the first something like this happens and I normally just do a clean install and voila. This time I'm seeing if someone can point me to some solution because i'm just tired of having to config windows all over again after giving linux another try :( –  user93176 Sep 28 '12 at 1:52
add comment

2 Answers 2

Boot from a Windows XP CD and got o recovery mode and in the command line write the command fixboot then restart

share|improve this answer
add comment

Step 1: backup the current boot record from within Ubuntu using dd if=/dev/sda of=/ubuntu.bin bs=446 count=1. Copy ubuntu.bin to c:\ubuntu of your Windows partition, you should be able to mount it by simply starting the file manager within Ubuntu and mounting the Windows XP partition. You may also accomplish this by copying /boot/grub/boot.img to c:\ubuntu\ubuntu.bin.

step 2: boot from your Windows XP CD. Go to recovery mode and at the command line type fixboot then restart.

step 3: add and entry for Ubuntu into the boot.ini, C:\ubuntu\ubuntu.bin="Ubuntu 12.04". You should then be able to boot both operating systems.

share|improve this answer
add comment

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