Install Windows 7 via USB
Even though I am a Linux user, I often need to install Windows on some computer.
My university provides me access to Microsoft software through the MSDN. There I can download a .iso file of Windows, which is meant to be burned to a CD.
The problem is that burning CDs is a tedious and time-consuming process, and ultraportable computers, like my notebook, do not have a CD drive. The solution is to use a USB drive or an external hard drive to install new Operating Systems.
Instructions
The following step-by-step guide was prepared for Linux and is quite simple:
-
Install the dependencies to work with NTFS
julio@julio-acer ~> sudo pacman -S ntfsprogs ntfs-3g
-
Check the name of the device associated with your USB drive/external hard drive (/dev/sdb here)
julio@julio-acer ~> sudo fdisk -l
-
Delete all partitions, format the first one as NTFS, and mark it as bootable
julio@julio-acer ~> sudo cfdisk /dev/sdb
-
Create an NTFS file system:
julio@julio-acer ~> sudo mkfs.ntfs -f /dev/sdb1
-
Mount the .iso image and the USB drive:
julio@julio-acer ~> sudo mount -o loop win7.iso /media/iso julio@julio-acer ~> sudo mount /dev/sdb1 /media/usb
-
Copy all files from the .iso to the USB drive:
julio@julio-acer ~> sudo cp -r /media/iso/* /media/usb/
-
Write the Windows 7 MBR to the USB drive:
julio@julio-acer ~> sudo ms-sys -7 /dev/sdb
-
In the BIOS, configure your computer to boot from the USB drive.