I had Windows 7 and installed Ubuntu using the Windows installer. Now when I restart the PC, it directly boots to Ubuntu. What happened to my Windows 7 and how I can make it dual boot?
are you sure, that you save your windows installation during ubuntu installation process?
Usually ubuntu installer write windows loader into grub menu. Only if you does all correctly.
At the start of Ubuntu installation, when Preparing to Install window appears, it presents you with following options
I have installed Ubuntu from a DVD. During installation process I was asked about options to install as only simple system or dual system or other. So make sure what you've selected before installation, it's decisively the right point.
There is a software on ubuntu called Gparted that lets you see what's on your hard drive. To access it, go to Terminal and type
And enter your root/ubuntu password. If it says you don't have it, download it with
and then try the first command again. This software can cause loss of data if you use it without knowing it well enough, so read the warnings carefully if you plan on changing something. For now, you don't need to change anything.
Look for a partition with data type "NTFS" or "ntfs" : it's the windows part of your hard drive. The Linux part is generally "ext4" for home use. Two cases :
1) If you have only an "EFI" partition and "ext4" partition, maybe a "swap" one too, and NO "NTFS", congratulations, you've deleted Windows. ^^" If you had anything worthwhile on your disk, I suggest you bring your hard drive to a data recovery center and use your computer as little as possible until then, as it will make data recovery harder. This will remind you to backup your data before any OS manipulations...
Or if you don't care about what was on there and just want your dual-boot : reinstall windows from scratch while erasing everything on your disk in the Windows installer menu (by booting with a Windows CD or Live USB of the Windows distribution of your choice). Then once Windows is installed, pick up your Ubuntu Live USB and this time, pick the "Install Ubuntu alongside Windows" option. From then on, your computer should recognize both.
2) If you do have an NTFS partition, or had to follow part 1) and your windows is still unrecognized, then windows is quite probably still there, it's just not recognized by your Linux-centric computer.
The key to fixing this is a software called GRUB (or GRUB2) that allows your computer to pick an OS when it boots. It's basically a black screen on startup with the choice of "ubuntu", "memtest", "setup", and "windows".
To work, Grub needs a) to be installed, b) information about which OS exists in the machine.
will install grub, you might already have it.
will have grub check the hard drive for the OSs present. It will then correct the grub boot menu (or have it appear for the first time, if your computer used to boot to Linux automatically).
Normally that should fix your problem. On startup, you should be able to pick between Windows and Ubuntu.