- 1 year ago
How to make a bootable windows iso in linux using mkisofs
Comment
1 / 1
To create a bootable Windows ISO in Linux using mkisofs
, you can follow these steps:
Install the required tools:
- Open a terminal in your Linux distribution.
- Ensure that the
mkisofs
package is installed. If not, install it using the package manager specific to your Linux distribution. For example, on Debian-based systems, you can use the following command:arduinosudo apt-get install genisoimage
Prepare the Windows ISO files:
- Copy all the files and directories from the Windows installation media (DVD or extracted ISO) to a folder on your Linux system.
- Ensure that the folder structure is preserved. For example, if the Windows installation media contains a folder named
sources
at the root level, make sure it exists in the folder on your Linux system as well.
Create the bootable ISO using
mkisofs
:- In the terminal, navigate to the folder where you copied the Windows ISO files.
- Run the
mkisofs
command to create the ISO file. Here's an example command:arduinomkisofs -o windows.iso -b boot/etfsboot.com -no-emul-boot -boot-load-size 8 -iso-level 2 .
-o windows.iso
specifies the output file name as "windows.iso". You can change this to your desired output file name.-b boot/etfsboot.com
sets the boot image file to "boot/etfsboot.com".-no-emul-boot
specifies no emulation boot.-boot-load-size 8
sets the boot load size to 8 sectors.-iso-level 2
sets the ISO level to 2..
indicates that the current directory should be included in the ISO.
Wait for the
mkisofs
command to complete. It will generate the bootable Windows ISO file based on the provided parameters.
Once the process is finished, you will have a bootable Windows ISO file named "windows.iso" (or the name you specified) in the current directory. This ISO can be used to create bootable USB drives or burned to DVDs for installing Windows on a computer.