0

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

2 Answers2

0

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.

ubfan1
  • 19,049
-1

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

update-grub

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? `