I recently installed windows 7 alongside my Ubuntu installation but am having some trouble getting things to boot properly.
There are two issues (probably related).. First thing is that there just isnt an option to boot for windows in the Grub menu. Second issue being that Windows will not load unless a USB stick and I navigate to BOOT menu to choose USB boot (despite that there is nothing to do with Windows on the USB stick)
Here is a look at my system in Gparted:
The Windows install is on the same drive as my Ubuntu 14.04 install (different partition). UEFI is the boot method. Here is output of my Grub file
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX=""
Here is the output of sudo fdisk -l
with /dev/sda
being the drive with the windows & Ubuntu installations. sdb is a media drive and sdc is a thumb drive.
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0006e69e
Device Boot Start End Blocks Id System
/dev/sda1 2048 1050623 524288 b W95 FAT32
/dev/sda2 1050624 103450623 51200000 83 Linux
/dev/sda3 233527296 488396799 127434752 83 Linux
/dev/sda4 * 103450624 233527295 65038336 7 HPFS/NTFS/exFAT
Partition table entries are not in disk order
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0b3923d5
Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 1953521663 976759808 7 HPFS/NTFS/exFAT
WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'!
The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdc: 7736 MB, 7736072192 bytes
255 heads, 63 sectors/track, 940 cylinders, total 15109516 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdc1 1 15109515 7554757+ ee GPT
also when I tried to reinstall Grub on sda with sudo grub-install /dev/sda
I go the following output:
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory
Is there a way I can add Windows to my Grub menu or get windows to load wihtout having to have a USB stick plugged in? I tried boot repiar, but it said 'Grub was still present' so it didnt seem to work
--------(EDIT) NEW INFO ADDED--------------
so I completely formatted dev/sda/
and then created new partitions for Windows & Ubuntu.. I then installed Windows first and was successfully able to boot to Windows on Startup. The Next Step I did was to clone my backup Ubuntu partition back onto a separate partion of the new sda volume.
I was not able to boot into the Ubuntu installation until I reinstalled grub with Boot Repair. I am now able to login to Ubuntu, but Windows is still not showing up in the Grub menu. Here is the new output of sudo fdisk -l
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0007f9d1
Device Boot Start End Blocks Id System
/dev/sda1 2048 1050623 524288 b W95 FAT32
/dev/sda2 1050624 103450623 51200000 83 Linux
/dev/sda3 * 103450624 233527295 65038336 7 HPFS/NTFS/exFAT
/dev/sda4 233527296 488396799 127434752 7 HPFS/NTFS/exFAT
Disk /dev/sdb: 1019 MB, 1019215872 bytes
255 heads, 63 sectors/track, 123 cylinders, total 1990656 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 * 2 1990655 995327 b W95 FAT32
The output of Boot Repair can be seen HERE