Ubuntu 13.04 not detecting Windows 7 during Install

Solution 1:

Well I finally solved the Problem using the fixparts command... it needs gdisk utility to be installed.

Following are the commands I ran to make the install.

$ sudo apt-get install gdisk
$ sudo fixparts /dev/sda
and then press the key 'w'

Done!

For more information on what FixParts is and what it is for can be found at rodsbooks. FixParts has evolved from the same author's project GPT fdisk (which includes gdisk, sgdisk and cgdisk)

Solution 2:

I found the perfect solution. I searched on the internet for "Gparted" and downloaded it and burned to disk the LIVE disk image "GParted".
After backing up all my important files, I booted up off the GParted disk, and using the partitioning software, I deleted all partitions, and clicked on "Apply".
Then I removed the GParted disk and inserted the Windows 7 disk. I then installed Windows 7.
After which I then inserted the Ubuntu 13.04 disk, and when it began the installation it recognized Windows 7 and allowed me to install it alongside Windows 7 and also installed the Grub bootloader which gave me the option of choosing which Operating System to boot.