Cannot install Windows 7 over a Debian install


  1. Posts : 4
    Debian 7 x64 Jessie Distribution
       #1

    Cannot install Windows 7 over a Debian install


    Hello:

    I work in an office center that mainly uses Linux, particurlaly a Debian x64 distribution. The way the hard drive is partitioned (1 TB hard disk) is 30 GB for root, 1 GB for swap and 929 GB for the home directory. I repartitioned the home directory in two chunks of aprox 400 GB, so as to make room for a Windows installation, because certain programs require it.

    So I wanted to do it, so that the machine became a dual boot PC. When I try to install I get the following options in the "Where do you want to install Windows?" Screen:

    Disk 0 Partition 1 27.9 GB 0.0 MB System
    Disk 0 Partition 2 488.3 GB 0.0 MB Logical
    Disk 0 Partition 3 414.4 GB 414.3 GB Logical
    Disk 0 Partition 4 953.3 MB 0.0 MB Logical

    Partition 3 is where I want to install. I've deleted it and clicked on format multiple times. However I always get the message: Setup was unable to create a new system partition or locate an existing system partition. See the Setup log files for more information.

    I do not know what this means or how I can see those log files.

    I don't want to do a clean install because the machine already has valuable information that should not be lost.

    Any help would be greatly appreciated.
      My Computer

  2.    #2

    Win7 can be installed on a Logical partition but only if a Primary is available for housing the boot files and executing the boot. If you have Linux on the Primary it likely is not allowing this. I'd make your target space for Win7 at the end of the drive so you can create it to be Primary, using the booted Win7 installation media first to try creating and formatting during install from Unallocated Space (Free Space must be deleted again in Disk Mgmt to become Unallocated Primary), or if necessary use System Recovery Options Command Line DiskPart Command-Line Options to "Create Partition Primary" there.

    Otherwise you can use Partition Wizard boot CD to Create Partition with Partition Wizard - Video Help to create a Primary partition at the end of the drive since there can be three Primary and unlimited Logical but the Logical must be contiguous.

    If this fails you may have a conflict with GRUB. You can try uninstalling it but in the past especially with GRUB1 we have had to wipe these drives with Diskpart Clean Command to clear the partition table and boot code to overcome GRUB corruption.

    If it succeeds here is a way to Dual Boot - Windows 7 and Linux - Windows 7 Forums
    and an alternative Dual boot Ubuntu-Win7
      My Computer


  3. Posts : 4
    Debian 7 x64 Jessie Distribution
    Thread Starter
       #3

    Thanks for the advice.

    I tried to do what you told me but couldn't. Here is what I did. I used this page as I had no idea how to use diskpart: https://support.ca.com/cadocs/0/CA%2...m?2069258.html

    I went in to the console.
    The commands list volume
    Lists two volumes the DVD Rom and a 414 GB NTFS partition assigned the letter C. I select the disk (0) and the volume (1) and try the create partition primary size=400000 command. I get the really long message error

    "No usable free extent could be found. It may be that there is insufficient free space to create a partition at the specified size and offset. Specify different size and offset values or don't spcify either to create the maximum size partition. It may be that the disk is partitioned using the MBR disk partitioning format and the disk contains either 4 primary partitions (no more partitions may be created), or 3 primary partitions and one extended partition, (only logical drives may be created)" As far as I can tell neither of these options is my case.

    The list partition command lists the following: (The columns are Partition, Type, Size, Offset)
    Partition 1 Primary 27 GB 1024KB
    Partition 0 Extended 903 GB 27GB
    Partition 2 Logical 488 GB 27GB
    Partition 3 Logical 953 MB 516GB
    Partition 4 Logical 414 GB 517GB

    y did select partition 4
    active
    and I got: Virtual Disk Service error: The specified partition type is not valid for this operation.

    I've tried almost every variation I could think of and I got one of those two errors.

    Am I doing something wrong? By the way the grub being used is grub2.

    Thanks for your reply.
      My Computer

  4.    #4

    Did you miss that you must delete the empty Win7 target partition down to Unallocated space before creating a Primary partition there?

    Use Paartition Wizard CD to Resize your data partition to the left so the space for win7 Primary is at the end of the drive. Then create a new Primary partition there with PW and Modify>Set to active to make sure Win7 knows that's where you want it's boot files. Video in my last post
      My Computer


  5. Posts : 26,869
    Windows 11 Pro
       #5

    You also have the option to use VMware player and install it as a virtual machine. This is a tutorial of installing Zorin in a VM with VMware player, but windows can be installed the exact same way, you just may have to allocate more resources to it than Linux, but it works just fine. VMware Player - Install and Setup Zorin
    In your situation you would just download VMware player for Linux. It is free for personal use.
      My Computer

  6.    #6

    Good suggestion, Steve. This would allow him to wipe the HD to clear GRUB, Clean Install Windows 7 to the preferred left side of drive for faster reads/writes.
      My Computer


  7. Posts : 4
    Debian 7 x64 Jessie Distribution
    Thread Starter
       #7

    Hello:

    First thing. I'm not sure if Virtual machine was an option because the programs needed to be installed needed to download programs through USB port to certain development kits. The support for Linux for drivers and stuff is very limited for our kits.

    Second, I was able to do it. I used Partition Wizard as indicated. The key was that Partition Magic (and not GParted which was what I was using) allowed me to mark the partition as Primary. I also moved the partition to the end of the drive as suggested.

    Then Windows was installed. Obviously, the machine would only boot windows from then on. So what I did, is I downloaded SuperGrub2 Live CD and simply used it to boot the Debian installation. Once that was done, I was just a matter of reinstalling grub2 from the command line and then running: dpkg --reconfigure grub-pc, and That is it!!

    The machine is now dual boot and no previous information was ever touched.

    Thanks for all the help!
    Last edited by aarelovich; 30 May 2014 at 10:35.
      My Computer

  8.    #8

    Glad you got it sorted out but beware that Partition Magic is not compatble at all with Win7 and can cause problems. We prefer Partition Wizard which is why I suggested it.
      My Computer


  9. Posts : 4
    Debian 7 x64 Jessie Distribution
    Thread Starter
       #9

    jaja Yes!! I'm sorry!!! In my defesense they are similiar...... jajaja. Edited the post!
      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 18:05.
Find Us