A message for Linux.com registered users: We are in the process of making changes to the Linux forums. Starting Monday, 8/13/18 at 6:00 PM PT, you will be unable to access the forums. They will re-launch as soon as possible on Wednesday, 8/15/18 with new features and improved functionality. Thank you for your patience and stay tuned for the new improved forums.

November 15, 2014

Dual Boot of Windows 7 and Linux (Debian 7 or Centos 7)


I have been trying to Dual boot my Laptop with Windows 7 and a Linux distro between Debian 7 or Centos 7, but with both installation I am having problem. Also this is not the first time I am dual booting a system, so I am not a total newbee, but with new interface of installer and Grub2, I am struck with same probelm on both the distro

I have first installed win7 on a partition, and later installed Linux of other partition as I do regularly, but now this time neither the Grub at the time of installation asks to add another OS nor do I have a option after restart to log into win7

Next, I modified /boot/grub2/grub.cfg to add the following lines after some googling
menuentry "Something" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set=root
chainloader +1
with this I got Wondows 7 option, when loading I get message "BOOTMGR is missing press ctrl+alt+del to restart", so I recovered BOOTMGR from windows recovery, but then Then I coudn't boot into Linux and Grub was not present, So I resuced from Centos 7 USB and then I was again not able to boot into windows7 because on BOOTMGR message.

So, in effect what I understood is both the loaders are over writing each other, in the MBR sector, I know that this is because of new UEFI storage, so can anyone giude me to dual boot on a UEFI system.

Click Here!