Answer the question
In order to leave comments, you need to log in
How to install windows from linux?
There is Linux on 1 disk, you need to install Windows on another disk, which has 200GB of free unallocated space, and a truecrypt volume. How to install Windows on disk 2 from Linux? 2 disk seems to be in mbr mode.
Answer the question
In order to leave comments, you need to log in
decided like this:
Insert a bootable USB flash drive into the computer and boot from it;
When a window appears with a disk selection, press the Shift + F10 keys to open the command line;
On the command line, write the command: diskpart;
The command line now uses the disk utility DISKPART, then we write the command: list disk. This command shows all disks connected to the computer. We are looking for the desired disk in the list (you can navigate by volume) and remember the number;
select disk=0. With this command we select a disk. The number 0 is the number of the dick from the previous command, it may be different for you.
When choosing a drive, be very careful, I recommend disconnecting other hard drives so that there are no problems later.
Next, we execute the create partition primary size=XXXXX command. In the place "XXXXX" you must enter the size of the system disk on which you will install Windows. In other words, a new partition will be created;
select partition=1. Displays the partition of the disk we have selected;
active. The selected section becomes active;
format fs=ntfs quick. This command will quickly format the drive to the NTFS file system;
assign. This command will assign a letter to the section, if it is not specified on its own, then the next free letter will be selected;
exit. Exit the DISKPART utility.
So, we have completed all the necessary commands to create a partition for installing Windows, but now we need to transfer the files from the flash drive to this partition.
Here the instruction did not work, and I did it my way: write notepad on the command line, press ctrl + o, and copy one file from the USB flash drive to the "c" section.
You need to go to the boot directory already on the partition itself, not the flash drive: cd boot;
Using the bootsect command, we will create a boot code on the system drive: bootsect /nt60 c:. Where c: is the system drive, be careful, you may have a different letter;
We have made the system partition the boot disk. Now you can remove the flash drive, restart the computer and install Windows on the same disk. After installation, you can delete the installation files.
Any virtual machine to choose from VirtualBox to qemu-kvm, specify your disk as your disk, just prepare a 100mb partition for boot in advance (be careful if you run linux in uefi mode, you already have such a partition, and install it inside the virtual machine. You don’t need to install drivers (the exception is if the disks are in ahci mode, then you need to set or switch to legacy ide for the disk controller), when you boot from pure hardware, then install it again.
The problem is that the windows installer will overwrite and break everything it finds, so back up your mbr and uefi boot partitions, then return it, and you will boot into windows via linux grub.
If you don't want problems due to windows (any major update can break the linux bootloader), keep it on another disk, even on a flash drive or even on another computer / router (network boot)
Boot from the installation media and install normally.
Or copy the prepared image to disk 2 with any suitable program from the Linux system without rebooting.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question