I followed these steps to install win7 on my ubuntu system-

  1. Created a logical ntfs partition. (dev/sda6)
  2. Installed win7 into that partition using a windows bootable usb. Now I lost the option to boot into ubuntu.
  3. Then I used an ubuntu live usb to run boot-repair. Now I can boot into ubuntu (on dev/sda3) but lost the option to boot into windows.

Can someone please help so that I can boot into either OS?

Here is the boot-info- https://paste2.org/LINU6Uyf

  • I always install windows first and then ubuntu, and it works every time ... – Greg May 11 '17 at 19:41
  • Could you please run Boot-Info and edit your question to include a link to its resulting info log? Thanks. – David Foerster May 11 '17 at 20:13
  • @DavidFoerster , Kindly take a look at boot-info – techno holick May 11 '17 at 21:22
  • Could you please disable secure Boot, run Boot-Repair with the suggested steps and try again? What happens when you try to boot Windows? What do you see on the screen? – David Foerster May 11 '17 at 22:23
  • 1
    You have a really mixed up system. Ubuntu was UEFI boot and probably was gpt partitioned. Then it looks like you installed Windows in BIOS boot mode converting system to BIOS with MBR partitioning.Then you installed grub to partition boot sectors as well as MBR. But in BIOS mode Windows will not boot directly from a logical partition. It only boots from a primary NTFS partition with Boot flag. Do you want UEFI/gpt or BIOS/MBR. And which ever you want you must be consist on how you boot install media. Windows 7 default install is BIOS only, but it can be copied to flash drive and made for UEFI. – oldfred May 11 '17 at 23:49

Windows needs a primary partition to boot from, not a logical partition like sda6. You might be able to use sda2 (converted to ntfs) as a Windows boot partition,and leave the bulk of the Windows on sda6, but instructions for that are inappropriate for this site. Backup, Wipe the disk partitions, install Windows first, shrink Windows partition, and install Ubuntu, which does not care if it is in a logical partition.


basically you boot into linux from hdd and inside of a root terminal execute


or you do a fast google search and from already answered posts you edit /boot/grub/grub.cfg and after the last menuentry you add

menuentry "Windows 7 (loader) (on /dev/sda1)" { insmod part_msdos insmod ntfs set root='(hd0,msdos1)' chainloader +1 }

taking care to specify the partition your windows is; found solution here

`How do I manually add windows 7 to grub list?

Add Windows 7 to boot menu

grub2 add entry for Windows 7

How to boot into Windows 7 when grub is installed in the Windows partition? `

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.