Linux – After reinstalling Linux Mint, Windows 7 does not boot

dual-bootgrub2linux-mintwindows

Final edit: I tried each and every single fix on the question, but I ended up just restoring an image I made a year ago of the freshly installed system using clonezilla. After that, I ran rescatux to restore the grub and everything went back to "normal."

I had a dualboot setup in my computer: On one side, Linux Mint ( /dev/sda2 ), on the other, Windows 7 ( /dev/sda3 ). I ran into some weird problems with Mint, so I decided to install the last version and give it a try.

The thing is that, after install the new Linux Mint, Windows 7 don't boot. I got to the Grub screen, select Windows 7, accept and then grub appears again. Linux mint boots normally.

  • I downloaded rescatux and tried to restore grub (I battled time ago with similar problems). Nothing.
  • Also tried the MBR restore for windows. Nothing.
  • Boot-repair did nothing.
  • I installed grub customizer and put Windows 7 the first on the list and nothing.

So… I'm pretty much clueless. Most of the questions are the other way around (Installing Windows "hides" grub, then Linux Mint does not start), so it seems if someone has had the same problem that me, is very well hidden in the internet. Any idea?

Edited, this is the script for Windows:

insmod part_msdos
insmod ntfs
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 --hint='hd0,msdos3'  264CA3CF4CA39857
else
  search --no-floppy --fs-uuid --set=root 264CA3CF4CA39857
fi
parttool ${root} hidden-
chainloader +1

Second edit, after Firelord answer:

With the Windows installation disk, I went into the console and executed bootrec.exe /fixmbr and /fixboot. Everything seemed to be fine, so I rebooted and waited for Windows to launch.

Then, got an \Boot\ BCD Status: 0xc000000f error when starting Windows.
I Found this question on the topic and tried to follow the first 2 answers to no avail:

  • The first answer (delete and copy again bcd), gets a "Failure when attempting to copy boot files").
  • Trying bootrec .exe /fixmbr replies with success, trying with /fixboot ends with "The volyume does not contain a recognized file system. Please make sure that all required file system drivers are loaded and that the volume is not currupted."
  • It seems that rescatux can reinstall grub with no problem, but still, Windows does not boot.

Best Answer

You need to be certain whether the Windows loader is intact and readable by Linux or not in order to try Linux specific recovery. If you're certain that Linux Mint installation went fine and is working good, open the Terminal, and type

  • sudo os-prober, alternatively, you can press TAB key two times after writing os to see what is the actual command for os-prober on Mint.

It should return an output like this:

/dev/sda1:Windows 7 (loader):Windows:chain

It means that Linux detects your Windows loader, so let's proceed further. Since Mint uses Grub 2.0, fire up Terminal and type

  • sudo grub-mkconfig

It should print some configuration related output. Search your Windows entry after ### BEGIN /etc/grub.d/30_os-prober ###. If the output shows such entry, type in Terminal

  • grub-mkconfig -o /boot/grub/grub.cfg ,or the location of your grub.cfg, depending upon the installation.
  • Now type grub-install /dev/sda, where sda is the primary HDD for me.

Reboot your system normally, and select the Windows entry from Grub, it should boot.

If this doesn't work, then there must a problem with Windows loader, you need to recover it. Recovering Windows loader is trivial if Windows Installation Disk is provided. Boot into the installation Disk , proceed to the window where it shows Install, click the Repair option at the bottom of the same screen, wait for the Windows to do some searching, it will eventually show some output (irrelevant for now), click on Advanced Recovery, and find the Command Prompt from there. You can follow HTG guide here if you are uncertain where to go next. Open Command Prompt, and type

  • bootrec.exe /fixboot
  • bootrec.exe /fixmbr

Reboot the System and you should directly be able to boot into Windows. But now you can't boot into Linux Mint. To enable GRUB again, download the SuperGrub 2 disk, burn it, boot into it and it will show you a Grub Menu with OS it can find. You can boot into Mint from there, and repeat the aforementioned Grub steps to restore it.

If all else fails, Windows must be freshly installed. But, I'm always able to recover it from aforementioned techniques.

About SuperGrub 2 Disk :

Super GRUB2 Disk helps you to boot into most any Operating System (OS) even if you cannot boot into it by normal means...it’s a boot disk that will try to find all of your Operatings Systems and build a boot menu so that you can choose the one you want to boot from. From inside your booted Gnu/Linux you will be able to restore Grub by using one straight-forward command.

Link to SuperGrub 2 Disk :

Here. Choose the Stable one.

Related Question