Ubuntu – GRUB doesn’t see Windows 7 after installing Ubuntu 12.04

12.04dual-bootgrub2partitioningwindows 7

So, this is my first time installing Ubuntu on my hard drive, and I'm running into some problems.

Until a couple of hours ago, I had 4 partitions in my hard drive:

  • XP
  • Vista
  • 7
  • Data partition

I backup up the XP and Vista partitions which weren't of any use lately, and booted a Live-USB with Ubuntu 12.04.

On the "Install 12.04 LTS" partition manager thingy I deleted the XP and Vista partitions (which where sda1 and sda2 on the partition table), leaving around 260GB of free space. There, I made 3 partitions: 8GB for root, 4GB for swap, and 80GB for home. (I know, I probably made a mess out of the partition table.)

I then proceeded to install Ubuntu, hoping to be able to move back and forth between 7 and Ubuntu, but GRUB doesn't seem to recognize my Windows installation. I read some forums, and tried two things, neither of which actually worked:

  1. I added a # to GRUB_HIDDEN_TIMEOUT=0 in /etc/default/grub to at least be able to see the GRUB screen when booting, and effectively, Windows 7 wasn't there.
  2. I ran boot-repair from my Live-USB, but it didn't solve the problem either. Anyway, I got the boot info at least, which I'm linking right away: paste.ubuntu.com/5589763/

So, this is my family computer, and I'm probably getting killed in the morning if I don't sort this out. Any advice is truly, truly appreciated. Thanks in advance!

Best Answer

Boot from Ubuntu LiveCD, do a sudo os-prober in terminal to see if all operating systems are listed.

1> If yes, then you are safe. the boot-repair should work:

https://help.ubuntu.com/community/Boot-Repair

2> If it doesn't detect Windows7, then there is a conflict in UEFI/EFI/Legacy bootloader. Probably Ubuntu is installed in UEFI BIOS, while previous Operating Systems are installed in LEGACY bios, which means you'll have to reinstall Windows 7 again.

Enjoy :)