Install Windows 7 from USB

Even though I am a Linux user, I often have to install Windows on some computer.
My university gives me access to Microsoft software through MSDN. From there I can download a Windows .iso, which was made to be burned to a CD.
The problem is that burning CDs is a tedious, slow process, and ultraportable computers like my laptop do not have a CD drive. The solution is to use a flash drive or an external hard drive to install new operating systems.
Instructions
The following step-by-step was written for Linux and is quite simple:
Install the dependencies for working with NTFS
julio@julio-acer ~> sudo pacman -S ntfsprogs ntfs-3gCheck the device name assigned to your flash drive/external hard drive (/dev/sdb here)
julio@julio-acer ~> sudo fdisk -lDelete every partition, format the first one as NTFS, and mark it bootable
julio@julio-acer ~> sudo cfdisk /dev/sdbCreate an NTFS filesystem:
julio@julio-acer ~> sudo mkfs.ntfs -f /dev/sdb1Mount the .iso image and the flash drive:
julio@julio-acer ~> sudo mount -o loop win7.iso /media/iso julio@julio-acer ~> sudo mount /dev/sdb1 /media/usbCopy every file from the .iso to the USB disk:
julio@julio-acer ~> sudo cp -r /media/iso/* /media/usb/Write the Windows 7 MBR to the USB disk:
julio@julio-acer ~> sudo ms-sys -7 /dev/sdbIn the BIOS, set your computer to boot from USB.

I’m a Brazilian computer engineer based in Germany, passionate about tech, science, photography, and languages.
I’ve been programming for about two decades already, exploring everything from mobile apps and web development to machine learning. These days I focus on cloud SRE and data engineering.
I volunteer in the open source and Python communities, helping organize PyCon DE and PyData Berlin, mentoring, and contributing with code and translations.
On my blog, I share Linux tips, setup guides, and personal notes I’ve written for future reference. I hope others find them helpful as well. The content is available in multiple languages.
Browse my gallery for some of my photography.
Away from the keyboard, you’ll find me at concerts, playing clarinet, cycling, scuba diving, or exploring new places, cultures, and cuisines.
Always happy to connect! 🙂