Title: Installed Ubuntu next to Windows but can't find Windows
Tags: boot;grub2;dual-boot;windows-7
Question: I just installed Ubuntu onto my hard drive from a USB drive. When I reached the partitions screen, I noticed it listed the full hard drive as "free space" even though I already had Windows 7 installed. 

I knew I had about 50 GB of free space on the hard drive, so I partitioned ```sda1``` for 35 GB and installed Ubuntu onto it, and partitioned ```sda2``` for 4 GB of swap space. 

The installation went fine, but when I reach the GRUB boot menu, there is no option for Windows 7 -- only Ubuntu. It seems as though my Windows 7 installation has completely disappeared. This would be very unfortunate, as I had aplenty of files on Windows, so your help is much appreciated.

Comment: It is not clear if you still have Windows in your hard drive. Can you post the output of **sudo fdisk -l** from terminal.


Here is another answer: If you have the Windows 7 rescue CD, boot from it and try fixing the MBR.


Here is another answer: 
Boot your computer to the Windows 7 DVD (or to a "Repair CD"). At this screen choose to install now.
Select your language and click next.
Then select the first option I think "Startup Repair" then some processing will done
Then restart your computer. Even after that if it doesn't boot to windows 7 then your partition might be lost.



Here is another answer: if you have a windows boot repair disk, and the automatic repair doesn't work like mine (it was picky I had a windows xp repair disk while I had windows 7 and demanded I buy the windows 7 version...) then get to the command prompt while using the repair disk. It's not clear how you access it, I think you try to repair it, then push cancel or something.

Anyways, once you have the cmd prompt, run this command:

```bootrec.exe /FixMBR
```

If you still have windows, this will reset the master boot record and allow you to access it.


Here is another answer: Since you have your ubuntu installed. I would suggest to try this method as it is faster and easier than getting a repair CD IMHO.

open a new Terminal CtrlAlt+T, then type:

```sudo add-apt-repository ppa:yannubuntu/boot-repair &amp;&amp; sudo apt-get update
```


Press Enter.
Then type:

sudo apt-get install -y boot-repair &amp;&amp; boot-repair
Press Enter


Now after the Installation has finished:

launch Boot-Repair from either :

the Dash (the Ubuntu logo at the top-left of the screen)

or System->Administration->Boot-Repair menu (Ubuntu 10.04 only)

or by typing 'boot-repair' in a terminal

You will see window :



Click on "Recommended Repair" and it will search for all the exisitng OS in your PC (windows and linux)

Boot-repair wiki page


Here is another answer: I think that the files of Windows 7 is still existing on the hard drive, but the MBR is broken. So you can build a new MBR.


Here is another answer: I think you destroyed the disk partition, but it's possible to rescue some files. 

Use a Rescue CD and try ```testdisk``` in console. This program scans the hard disk for lost files and partitions. 

Good luck.

Comment for this answer: I agree with this. If you had important documents on Windows, don't write any more on your disk! And use [TestDisk](http://www.cgsecurity.org/wiki/TestDisk) to try recovering some documents. Then you can reinstall Windows , then reinstall Ubuntu.

{'source': 'StackExchangeDataset', 'subset': 'askubuntu.com', 'metadata': {'AnswerCount': 6, 'CommentCount': 1, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2012:00:09/06/12', 'FavoriteCount': 1.0, 'PostTypeId': 1, 'Tags': '<boot><grub2><dual-boot><windows-7>', 'Title': "Installed Ubuntu next to Windows but can't find Windows", 'ViewCount': 2418, 'id': 184574, 'user_AboutMe': None, 'user_AccountId': 1815695.0, 'user_DisplayName': 'Nick', 'user_Reputation': 29.0, 'user_Views': 5.0, 'user_id': 87838.0}}