Install Windows 7 while running ubuntu












0















So I have ubuntu 12.04 installed on my pc. I have the windows 7 files on a flash drive (boot drive) and I also copied them to my desktop. Obviously I cant run the setup.exe because .exe is a windows command so how do I install windows?










share|improve this question























  • which type of .exe files do you have?If it was related to software then you can install it through wine.

    – Avinash Raj
    Feb 5 '14 at 6:44


















0















So I have ubuntu 12.04 installed on my pc. I have the windows 7 files on a flash drive (boot drive) and I also copied them to my desktop. Obviously I cant run the setup.exe because .exe is a windows command so how do I install windows?










share|improve this question























  • which type of .exe files do you have?If it was related to software then you can install it through wine.

    – Avinash Raj
    Feb 5 '14 at 6:44
















0












0








0








So I have ubuntu 12.04 installed on my pc. I have the windows 7 files on a flash drive (boot drive) and I also copied them to my desktop. Obviously I cant run the setup.exe because .exe is a windows command so how do I install windows?










share|improve this question














So I have ubuntu 12.04 installed on my pc. I have the windows 7 files on a flash drive (boot drive) and I also copied them to my desktop. Obviously I cant run the setup.exe because .exe is a windows command so how do I install windows?







windows






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 5 '14 at 6:20









user244758user244758

111




111













  • which type of .exe files do you have?If it was related to software then you can install it through wine.

    – Avinash Raj
    Feb 5 '14 at 6:44





















  • which type of .exe files do you have?If it was related to software then you can install it through wine.

    – Avinash Raj
    Feb 5 '14 at 6:44



















which type of .exe files do you have?If it was related to software then you can install it through wine.

– Avinash Raj
Feb 5 '14 at 6:44







which type of .exe files do you have?If it was related to software then you can install it through wine.

– Avinash Raj
Feb 5 '14 at 6:44












1 Answer
1






active

oldest

votes


















0














How to install Windows 7 from Ubuntu without burnning a disc



If you’re running on ubuntu and want to install Windows 7 without burning a disc, you can try following steps to install Windows 7 with the iso file.



Step1:



Download grub4dos from:http://download.gna.org/grub4dos/grub4dos-0.4.4-2009-06-20.zip Decompress the grub.exe and put this file into root directory of Ubuntu partition (“/”).



Step2:



Create a 4GB ntfs partition and paste all files from Windows7 iso into this partition.(use this GUI tool:sudo apt-get install gparted ntfsprogs.launch from system->administrator menu).
use this command to mount the Win7 iso(change “/path/to/your/iso”):



sudo mount /path/to/your/iso /mnt -o loop



then cope all files in /mnt and paste them into root directory of previous created ntfs partition.



Step3:



For Ubuntu 9.10 (use grub2):
run:



sudo gedit /etc/grub.d/40_custom



paste following into the end:



menuentry "Grub for Dos" { insmod ntfs



set root=(hdx,y)



linux /grub.exe
}



Note: here “set root=(hdx,y)” need change,my ubuntu was installed in /dev/sda11,so it



should be “set root=(hd0,11)”



then,run:



sudo update-grub



For ubuntu 9.04 and old versions(use old grub boot loader):



run:



sudo gedit /boot/grub/menu.lst



add following:



title grub4dos



root (hdx,y)



kernel /grub.exe



boot



Note:“root (hdx,y)” is different to previous one,my ubuntu partition:/dev/sda11,and here



it should be “root (hd0,10)” (without quotes).



Step4:



Reboot and there is a new entry in grub:”Grub for Dos”or”grub4dos”.Select it and press c



to access to grub>,then:



grub>find --set-root /bootmgr



grub>chainloader /bootmgr



grub>boot



Now,we get into Win7 installation guide interface.Press Shift+F10 to cmd command



line,and run following in X:/sources loation to start:



setup.exe



hope it helps






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f416621%2finstall-windows-7-while-running-ubuntu%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    How to install Windows 7 from Ubuntu without burnning a disc



    If you’re running on ubuntu and want to install Windows 7 without burning a disc, you can try following steps to install Windows 7 with the iso file.



    Step1:



    Download grub4dos from:http://download.gna.org/grub4dos/grub4dos-0.4.4-2009-06-20.zip Decompress the grub.exe and put this file into root directory of Ubuntu partition (“/”).



    Step2:



    Create a 4GB ntfs partition and paste all files from Windows7 iso into this partition.(use this GUI tool:sudo apt-get install gparted ntfsprogs.launch from system->administrator menu).
    use this command to mount the Win7 iso(change “/path/to/your/iso”):



    sudo mount /path/to/your/iso /mnt -o loop



    then cope all files in /mnt and paste them into root directory of previous created ntfs partition.



    Step3:



    For Ubuntu 9.10 (use grub2):
    run:



    sudo gedit /etc/grub.d/40_custom



    paste following into the end:



    menuentry "Grub for Dos" { insmod ntfs



    set root=(hdx,y)



    linux /grub.exe
    }



    Note: here “set root=(hdx,y)” need change,my ubuntu was installed in /dev/sda11,so it



    should be “set root=(hd0,11)”



    then,run:



    sudo update-grub



    For ubuntu 9.04 and old versions(use old grub boot loader):



    run:



    sudo gedit /boot/grub/menu.lst



    add following:



    title grub4dos



    root (hdx,y)



    kernel /grub.exe



    boot



    Note:“root (hdx,y)” is different to previous one,my ubuntu partition:/dev/sda11,and here



    it should be “root (hd0,10)” (without quotes).



    Step4:



    Reboot and there is a new entry in grub:”Grub for Dos”or”grub4dos”.Select it and press c



    to access to grub>,then:



    grub>find --set-root /bootmgr



    grub>chainloader /bootmgr



    grub>boot



    Now,we get into Win7 installation guide interface.Press Shift+F10 to cmd command



    line,and run following in X:/sources loation to start:



    setup.exe



    hope it helps






    share|improve this answer




























      0














      How to install Windows 7 from Ubuntu without burnning a disc



      If you’re running on ubuntu and want to install Windows 7 without burning a disc, you can try following steps to install Windows 7 with the iso file.



      Step1:



      Download grub4dos from:http://download.gna.org/grub4dos/grub4dos-0.4.4-2009-06-20.zip Decompress the grub.exe and put this file into root directory of Ubuntu partition (“/”).



      Step2:



      Create a 4GB ntfs partition and paste all files from Windows7 iso into this partition.(use this GUI tool:sudo apt-get install gparted ntfsprogs.launch from system->administrator menu).
      use this command to mount the Win7 iso(change “/path/to/your/iso”):



      sudo mount /path/to/your/iso /mnt -o loop



      then cope all files in /mnt and paste them into root directory of previous created ntfs partition.



      Step3:



      For Ubuntu 9.10 (use grub2):
      run:



      sudo gedit /etc/grub.d/40_custom



      paste following into the end:



      menuentry "Grub for Dos" { insmod ntfs



      set root=(hdx,y)



      linux /grub.exe
      }



      Note: here “set root=(hdx,y)” need change,my ubuntu was installed in /dev/sda11,so it



      should be “set root=(hd0,11)”



      then,run:



      sudo update-grub



      For ubuntu 9.04 and old versions(use old grub boot loader):



      run:



      sudo gedit /boot/grub/menu.lst



      add following:



      title grub4dos



      root (hdx,y)



      kernel /grub.exe



      boot



      Note:“root (hdx,y)” is different to previous one,my ubuntu partition:/dev/sda11,and here



      it should be “root (hd0,10)” (without quotes).



      Step4:



      Reboot and there is a new entry in grub:”Grub for Dos”or”grub4dos”.Select it and press c



      to access to grub>,then:



      grub>find --set-root /bootmgr



      grub>chainloader /bootmgr



      grub>boot



      Now,we get into Win7 installation guide interface.Press Shift+F10 to cmd command



      line,and run following in X:/sources loation to start:



      setup.exe



      hope it helps






      share|improve this answer


























        0












        0








        0







        How to install Windows 7 from Ubuntu without burnning a disc



        If you’re running on ubuntu and want to install Windows 7 without burning a disc, you can try following steps to install Windows 7 with the iso file.



        Step1:



        Download grub4dos from:http://download.gna.org/grub4dos/grub4dos-0.4.4-2009-06-20.zip Decompress the grub.exe and put this file into root directory of Ubuntu partition (“/”).



        Step2:



        Create a 4GB ntfs partition and paste all files from Windows7 iso into this partition.(use this GUI tool:sudo apt-get install gparted ntfsprogs.launch from system->administrator menu).
        use this command to mount the Win7 iso(change “/path/to/your/iso”):



        sudo mount /path/to/your/iso /mnt -o loop



        then cope all files in /mnt and paste them into root directory of previous created ntfs partition.



        Step3:



        For Ubuntu 9.10 (use grub2):
        run:



        sudo gedit /etc/grub.d/40_custom



        paste following into the end:



        menuentry "Grub for Dos" { insmod ntfs



        set root=(hdx,y)



        linux /grub.exe
        }



        Note: here “set root=(hdx,y)” need change,my ubuntu was installed in /dev/sda11,so it



        should be “set root=(hd0,11)”



        then,run:



        sudo update-grub



        For ubuntu 9.04 and old versions(use old grub boot loader):



        run:



        sudo gedit /boot/grub/menu.lst



        add following:



        title grub4dos



        root (hdx,y)



        kernel /grub.exe



        boot



        Note:“root (hdx,y)” is different to previous one,my ubuntu partition:/dev/sda11,and here



        it should be “root (hd0,10)” (without quotes).



        Step4:



        Reboot and there is a new entry in grub:”Grub for Dos”or”grub4dos”.Select it and press c



        to access to grub>,then:



        grub>find --set-root /bootmgr



        grub>chainloader /bootmgr



        grub>boot



        Now,we get into Win7 installation guide interface.Press Shift+F10 to cmd command



        line,and run following in X:/sources loation to start:



        setup.exe



        hope it helps






        share|improve this answer













        How to install Windows 7 from Ubuntu without burnning a disc



        If you’re running on ubuntu and want to install Windows 7 without burning a disc, you can try following steps to install Windows 7 with the iso file.



        Step1:



        Download grub4dos from:http://download.gna.org/grub4dos/grub4dos-0.4.4-2009-06-20.zip Decompress the grub.exe and put this file into root directory of Ubuntu partition (“/”).



        Step2:



        Create a 4GB ntfs partition and paste all files from Windows7 iso into this partition.(use this GUI tool:sudo apt-get install gparted ntfsprogs.launch from system->administrator menu).
        use this command to mount the Win7 iso(change “/path/to/your/iso”):



        sudo mount /path/to/your/iso /mnt -o loop



        then cope all files in /mnt and paste them into root directory of previous created ntfs partition.



        Step3:



        For Ubuntu 9.10 (use grub2):
        run:



        sudo gedit /etc/grub.d/40_custom



        paste following into the end:



        menuentry "Grub for Dos" { insmod ntfs



        set root=(hdx,y)



        linux /grub.exe
        }



        Note: here “set root=(hdx,y)” need change,my ubuntu was installed in /dev/sda11,so it



        should be “set root=(hd0,11)”



        then,run:



        sudo update-grub



        For ubuntu 9.04 and old versions(use old grub boot loader):



        run:



        sudo gedit /boot/grub/menu.lst



        add following:



        title grub4dos



        root (hdx,y)



        kernel /grub.exe



        boot



        Note:“root (hdx,y)” is different to previous one,my ubuntu partition:/dev/sda11,and here



        it should be “root (hd0,10)” (without quotes).



        Step4:



        Reboot and there is a new entry in grub:”Grub for Dos”or”grub4dos”.Select it and press c



        to access to grub>,then:



        grub>find --set-root /bootmgr



        grub>chainloader /bootmgr



        grub>boot



        Now,we get into Win7 installation guide interface.Press Shift+F10 to cmd command



        line,and run following in X:/sources loation to start:



        setup.exe



        hope it helps







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 5 '14 at 8:46









        funny_linuxfunny_linux

        345




        345






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f416621%2finstall-windows-7-while-running-ubuntu%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

            Eduardo VII do Reino Unido