PDA

View Full Version : [ubuntu] Unable to start Windows 7 after installing Ubuntu 12.04 LTS



ali8
July 14th, 2013, 12:22 AM
I hate starting new thread about a problem already encountered by others. But I tried the solutions and did not work:

1) sudo grub-update ==> Did NOT work
2) Boot Repair (Recommended settings) ==> Did NOT work
3) Boot Repair (Advanced Settings - "repair windows boot files") ==> option disabled ==> Did NOT work
4) Windows 7 repair ==> Did NOT work

I have a windows 7 Ultimate x64 plus Ubuntu 12.04 LTS, both on partition C. Partition D is for my files, Partition E is also for my files but encrypted with
BitLocker (I have the recovery key and know the password). All partitions are NTFS.

THE PROBLEM: after booting, 4 options appear: Ubuntu, Ubuntu Recovery Mode, Memory Test, Windows 7. Selecting windows 7 brings a black screen
for 2 seconds then I get back to grub menu.

What options do I have other than formatting C again and installing Windows...?

here's my boot-repair log: http://paste.ubuntu.com/5872398/

-------------------------------------------------------------------------------------------------------------------------------------------------------------

I want to try "restore MBR" in boot-repair, it is a good idea?

ali8
July 14th, 2013, 01:08 AM
I tried following one thread which said that drive C must be active befor windows can repair, so i made it active but now grub2 does not appear and i get ""no such partition". i am now using my mobile to respond.

ali8
July 14th, 2013, 02:54 AM
I finally formatted C and re-installed Windows 7.

Any ideas what was wrong?

oldfred
July 14th, 2013, 06:41 PM
Your BootInfo report showed you installed grub2's boot loader to the PBR or partition boot sector of Windows. All NTFS partitions have to have a NTFS boot signature which also has the same partition info as partition table and which boot loader ntldr(XP) or bootmgr(Vista/7/8) to use. When it has grub in PBR it is not valid.

NTFS does keep a backup and testdisk can usually restore from backup. Windows fixBoot which repairs PBR and chkdsk which reset size info in PBR also works from Windows repairCD.

You should have a Windows repairCD or flash drive and Ubuntu liveCD or flash for the current version of every install you have, so you can make repairs.

ali8
July 16th, 2013, 02:41 AM
I already had the Windows DVD and tried repair from there, but as I mentioned earlier it did not work.

So how do people install windows 7 plus Ubuntu without having such problems?

oldfred
July 16th, 2013, 04:36 AM
If you install grub2's boot loader to the MBR of the hard drive, you usually do not have issues.

A few with encryption or special DRM software used to have issues but most of those have been resolved. Some of those then used EasyBCD and installed grub to the PBR of the Ubuntu partition (not NTFS partition) and EasyBCD uses grub4dos to chainload to Ubuntu. But that compromises grub2 as it does not really fit into a PBR and converts to blocklists or hard coded links. If any of the other parts of grub in Ubuntu are updated and address on drive changes, you have to do major repairs to grub.

fantab
July 16th, 2013, 09:26 AM
I finally formatted C and re-installed Windows 7.

Any ideas what was wrong?

Although I don't really know what went wrong, Oldfred makes sense.


What options do I have other than formatting C again and installing Windows...?

You had installed Ubuntu 'inside' Windows using WUBI. You must seriously consider installing Ubuntu to its own partition if you want to continue using it. WUBI installs are not meant to be a permanent way to run Ubuntu.

ali8
July 17th, 2013, 12:14 AM
@fantab, no I did NOT. I installed a stand-alone Ubuntu from DVD.