Cannot boot Windows 7 after installing Linux


  1. Posts : 3
    Windows 7
       #1

    Cannot boot Windows 7 after installing Linux


    I recently got a new computer with Windows 7 Professional (64 bit) installed on C:. Everything worked great and this is what things were like back when everything worked: Two 500 MB disks in a RAID 1 array partitioned into C: (for Windows 7) and D: (for data etc.). The 100 MB partition that W7 creates was there as well. Also a 1.5 TB disk with two partitions (drive letters E: and F:).

    I then installed Ubuntu Linux in a partition I created on the 1.5 TB drive to get a dual boot configuration. This messed things up - apparently the Linux installer doesn't like RAIDs. I cannot boot Windows 7 now. I'm attempting to fix the MBR, BCD etc. and have read Recovering the Vista Bootloader from the DVD - NeoSmart Technologies Wiki and done lots of Googling.

    However, I'm not sure how to proceed because the drive letters are now messed up. The reason is that when I boot from the Windows 7 installation DVD to repair Windows 7, the RAID (i.e. originally C: and D:) cannot be accessed until I load drivers for the RAID from another DVD. Before I do that the partitions on the 1.5 TB drive show up as C: and D: (as previously mentioned, they originally were E: and F:). Once I have loaded the RAID drivers, the partitions on the RAID get the letters H: (the Windows 7 partition, originally C:), G: (the 100 MB partition that didn't have a drive letter) and F: (originally D:).

    In a nutshell:
    RAID: C -> H (Windows 7 is installed here)
    RAID: D -> F
    RAID: 100 MB -> G
    1.5 TB: E -> C
    1.5 TB: F -> D

    I have tried doing bootrec /fixmbr etc. but this didn't fix the problem and appears to have created/updated a boot\BCD file on what's now C:\ (was originally E:). There is another boot\BCD on what's currently G:\ (the 100 MB partition that originally didn't have a drive letter). From the date of the BCDs the one on G:\seems to be the one that got messed up by the Ubuntu installation.
    How do I get bootrec to fix the correct BCD? Do I need to reassign drive letters? There is no BCD on the partition where Windows 7 is installed (currently H:, it was C: before the mess). Is this normal? How should I proceed?
      My Computer


  2. whs
    Posts : 26,210
    Vista, Windows7, Mint Mate, Zorin, Windows 8
       #2

    What a mess. I would say the first order of the day is to get rid of Linux. Apparently the Grub took over. Then resort the drive letters (looks like your G with the MBR is still whole).
      My Computer


  3. Arc
    Posts : 35,373
    Microsoft Windows 10 Pro Insider Preview 64-bit
       #3

    Hi Bjorn ! Dont worry , pal There's nothing that can make you worry.
    I also got just the same situation when I installed linux for the first time in my machine. It was not possible to boot up in windows 7, even after recovering MBR. Then iseeuu suggested me to update GRUb, so that the windows boot entry is included in grub. That trick worked like a magic.

    But unfortunately i forgot the process to updating grub. Still I can recommend it to him. Hope he will help you as he helped me
      My Computer


  4. Arc
    Posts : 35,373
    Microsoft Windows 10 Pro Insider Preview 64-bit
       #4

    I could find out these two links those was helpful in my case
    MBR - Restore Windows 7 Master Boot Record
    Remove Grub - Restore Windows 7
      My Computer

  5.    #5

    The only thing that has worked in the past is to deep clean the HD of GRUB and install Win7 first, then Linux and GRUB if you want it to manage boot.

    Here's the tutorial that has worked for others: Dual-Boot Windows 7 and Ubuntu in Perfect Harmony - windows 7 - Lifehacker
    Last edited by gregrocker; 10 Apr 2010 at 13:57.
      My Computer


  6. Posts : 3
    Windows 7
    Thread Starter
       #6

    Thanks for the replies.

    I managed to get Windows 7 to boot again after hours of messing with the Windows 7 repair utilities, the MBR/BCD, diskpart etc. The problem was that when I did bootrec /fixmbr etc. it was always the MBR/BCD on the 1.5 TB disk that got modified. This turned out to be because that disk had become disk 0 and the RAID array became disk 1, i.e. the disk numbers were "swapped" compared to what they originally were. I succeeded in forcing a repair of the MBR/BCD on the RAID array (where Windows 7 is installed) by physically disconnecting the 1.5 TB disk and then fixing the MBR/BCD. After this I reconnected the 1.5 TB disk, booted up and voila! Windows 7 now works.

    However, now I cannot boot Linux. The original problem seems to have been that Grub doesn't handle RAID arrays correctly, at least not when there is an OS there that you want to be able to boot.

    I'm fairly optimistic though that I'll soon succeed in booting Linux via the Windows 7 bootloader.
      My Computer


  7. CB
    Posts : 2,076
    Windows 11 Prerelease
       #7

    Thx. I learned from that. I installed Windows 7 prior to Linux Mint 8 Helena. It work perfectly, but the only way to change the boot order is via linux command line. Assistance is is found at www.forums.linuxmint.com/. Just type boot loader on its search engine then got the topics.
      My Computers


  8. Posts : 3
    Windows 7
    Thread Starter
       #8

    Well, I managed to get a Windows 7/Linux dual boot by using the EasyBCD 2.0 beta to add a Linux entry to the Windows bootloader menu. Note: It is important to use the EasyBCD 2.0 beta and not the official version, at least on a complex system like mine (RAID and/or Linux not on the same disk as Windows).
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 23:30.
Find Us