I installed windows 7 to a logical partition and then accidentaly deleted the primary partition with the boot files

Zane_10

Prominent
Jul 17, 2017
1
0
510
After reinstalling windows 7 I accidentally installed it on a logical drive. It is currently on /dev/sda5.
I didn't realize that it was a logical drive till it wouldn't boot after I reinstalled fedora. I think when I reinstalled fedora I deleted the primary partition that windows had used for its boot files. Now I have Linux mint 18.2 and windows 7 but grub only shows Linux mint and it shows Windows 7 (loader). My version of windows is genuine. I read somewhere that the loader means that it is not genuine, so im not sure why it says that. My main question is how to make windows 7 bootable. I don't want to have to do a fresh install. Is there a way to change the logical partition to a primary one without data loss? or some other way to add the bootable files to a different primary partition again?
 
Solution
As far as I know loader means that it will show the windows boot menu...
Creating a new boot partition with the needed files is pretty easy with easybcd but it will probably destroy grub,easybcd does support linux though so you could probably load both OSs from that.

In your place I would run a virtual machine to boot in to /dev/sda5 windows 7 run easybcd and use a spare usb flash drive,go to bcd deployment and write the proper MBR to the flash and install bcd to the flash then go to file select bcd store to read the bcd of the flash and under add new entry I would add both windows 7 and fedora.
If it boots from the flash and does everything the way it should then I would go and try the same with a partition on the HDD,doesn't need to...
As far as I know loader means that it will show the windows boot menu...
Creating a new boot partition with the needed files is pretty easy with easybcd but it will probably destroy grub,easybcd does support linux though so you could probably load both OSs from that.

In your place I would run a virtual machine to boot in to /dev/sda5 windows 7 run easybcd and use a spare usb flash drive,go to bcd deployment and write the proper MBR to the flash and install bcd to the flash then go to file select bcd store to read the bcd of the flash and under add new entry I would add both windows 7 and fedora.
If it boots from the flash and does everything the way it should then I would go and try the same with a partition on the HDD,doesn't need to be a new one you can choose the primary partition for this.
 
Solution

TRENDING THREADS